未验证 提交 2f24a6ce 编写于 作者: O openharmony_ci 提交者: Gitee

!5424 【窗口子系统】fix the errcode issue

Merge pull request !5424 from hekun/master
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
"test-timeout": "800000", "test-timeout": "800000",
"shell-timeout": "800000", "shell-timeout": "800000",
"bundle-name": "com.test.window", "bundle-name": "com.test.window",
"package-name": "com.test.window" "package-name": "com.test.window",
"testcase-timeout": "300000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -1482,7 +1482,7 @@ describe('window_test', function () { ...@@ -1482,7 +1482,7 @@ describe('window_test', function () {
wnd.moveTo(200, 200, (err) => { wnd.moveTo(200, 200, (err) => {
if (err.code) { if (err.code) {
console.log('windowTest moveTest1 moveTo callback fail' + JSON.stringify(err.code)); console.log('windowTest moveTest1 moveTo callback fail' + JSON.stringify(err.code));
expect(err.code).assertEqual(7); expect(err.code).assertEqual(6);
done(); done();
} else { } else {
console.log('windowTest moveTest1 moveTo callback success'); console.log('windowTest moveTest1 moveTo callback success');
...@@ -1508,7 +1508,7 @@ describe('window_test', function () { ...@@ -1508,7 +1508,7 @@ describe('window_test', function () {
done(); done();
}, (err) => { }, (err) => {
console.log('windowTest moveTest2 wnd.moveTo failed, err :' + JSON.stringify(err)); console.log('windowTest moveTest2 wnd.moveTo failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(7); expect(err.code).assertEqual(6);
done(); done();
}) })
}, (err) => { }, (err) => {
...@@ -1534,7 +1534,7 @@ describe('window_test', function () { ...@@ -1534,7 +1534,7 @@ describe('window_test', function () {
done(); done();
}, (err) => { }, (err) => {
console.log('windowTest moveTest3 wnd.moveTo failed, err :' + JSON.stringify(err)); console.log('windowTest moveTest3 wnd.moveTo failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(7); expect(err.code).assertEqual(6);
done(); done();
}) })
}, (err) => { }, (err) => {
...@@ -1560,7 +1560,7 @@ describe('window_test', function () { ...@@ -1560,7 +1560,7 @@ describe('window_test', function () {
done(); done();
}, (err) => { }, (err) => {
console.log('windowTest moveTest4 wnd.moveTo failed, err :' + JSON.stringify(err)); console.log('windowTest moveTest4 wnd.moveTo failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(7); expect(err.code).assertEqual(6);
done(); done();
}) })
}, (err) => { }, (err) => {
...@@ -1586,7 +1586,7 @@ describe('window_test', function () { ...@@ -1586,7 +1586,7 @@ describe('window_test', function () {
done(); done();
}, (err) => { }, (err) => {
console.log('windowTest moveTest5 wnd.moveTo failed, err :' + JSON.stringify(err)); console.log('windowTest moveTest5 wnd.moveTo failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(7); expect(err.code).assertEqual(6);
done(); done();
}) })
} }
...@@ -1610,7 +1610,7 @@ describe('window_test', function () { ...@@ -1610,7 +1610,7 @@ describe('window_test', function () {
wnd.moveTo(-200, -200, (err) => { wnd.moveTo(-200, -200, (err) => {
if (err) { if (err) {
console.log('windowTest moveTest6 wnd.moveTo failed, err :' + JSON.stringify(err)); console.log('windowTest moveTest6 wnd.moveTo failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(7); expect(err.code).assertEqual(6);
done(); done();
} else { } else {
console.log('windowTest moveTest6 wnd.moveTo success'); console.log('windowTest moveTest6 wnd.moveTo success');
...@@ -1641,7 +1641,7 @@ describe('window_test', function () { ...@@ -1641,7 +1641,7 @@ describe('window_test', function () {
done(); done();
}, (err) => { }, (err) => {
console.log('windowTest moveTestNegative moveTo failed, err :' + JSON.stringify(err)); console.log('windowTest moveTestNegative moveTo failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(7); expect(err.code).assertEqual(6);
done(); done();
}) })
}, (err) => { }, (err) => {
...@@ -1667,12 +1667,12 @@ describe('window_test', function () { ...@@ -1667,12 +1667,12 @@ describe('window_test', function () {
done(); done();
}, (err) => { }, (err) => {
console.log('windowTest moveTest8 create failed, err :' + JSON.stringify(err)); console.log('windowTest moveTest8 create failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(7); expect(err.code).assertEqual(6);
done(); done();
}) })
}, (err) => { }, (err) => {
console.log('windowTest moveTest8 create failed, err :' + JSON.stringify(err)); console.log('windowTest moveTest8 create failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(7); expect(err.code).assertEqual(6);
done(); done();
}) })
}, (err) => { }, (err) => {
...@@ -1698,7 +1698,7 @@ describe('window_test', function () { ...@@ -1698,7 +1698,7 @@ describe('window_test', function () {
done(); done();
}, (err) => { }, (err) => {
console.log('windowTest resetSizeTest1 wnd.resetSize failed, err :' + JSON.stringify(err)); console.log('windowTest resetSizeTest1 wnd.resetSize failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(7); expect(err.code).assertEqual(6);
done(); done();
}) })
}, (err) => { }, (err) => {
...@@ -1724,7 +1724,7 @@ describe('window_test', function () { ...@@ -1724,7 +1724,7 @@ describe('window_test', function () {
done(); done();
}, (err) => { }, (err) => {
console.log('windowTest resetSizeTest2 wnd.resetSize failed, err :' + JSON.stringify(err)); console.log('windowTest resetSizeTest2 wnd.resetSize failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(7); expect(err.code).assertEqual(6);
done(); done();
}) })
}, (err) => { }, (err) => {
...@@ -1803,7 +1803,7 @@ describe('window_test', function () { ...@@ -1803,7 +1803,7 @@ describe('window_test', function () {
done(); done();
},(err) => { },(err) => {
console.log('windowTest resetSizeTest5 wnd.resetSize failed, err :' + JSON.stringify(err)); console.log('windowTest resetSizeTest5 wnd.resetSize failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(7); expect(err.code).assertEqual(6);
done(); done();
}) })
} }
...@@ -1827,7 +1827,7 @@ describe('window_test', function () { ...@@ -1827,7 +1827,7 @@ describe('window_test', function () {
wnd.resetSize(200, 200, (err) => { wnd.resetSize(200, 200, (err) => {
if (err.code) { if (err.code) {
console.log('windowTest ResetSizeTest6 resetSize callback fail' + JSON.stringify(err.code)); console.log('windowTest ResetSizeTest6 resetSize callback fail' + JSON.stringify(err.code));
expect(err.code).assertEqual(7); expect(err.code).assertEqual(6);
done(); done();
} else { } else {
console.log('windowTest ResetSizeTest6 resetSize callback success'); console.log('windowTest ResetSizeTest6 resetSize callback success');
...@@ -1859,7 +1859,7 @@ describe('window_test', function () { ...@@ -1859,7 +1859,7 @@ describe('window_test', function () {
done(); done();
},(err) => { },(err) => {
console.log('windowTest resetSizeLoop resetSize failed, err :' + JSON.stringify(err)); console.log('windowTest resetSizeLoop resetSize failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(7); expect(err.code).assertEqual(6);
done(); done();
}) })
} }
...@@ -3160,11 +3160,11 @@ describe('window_test', function () { ...@@ -3160,11 +3160,11 @@ describe('window_test', function () {
}) })
/** /**
* @tc.number SUB_WMS_SETBACKGROUNDCOLORBACK_JSAPI_004 * @tc.number SUB_WMS_SETBACKGROUNDCOLORCallBACK_JSAPI_004
* @tc.name Test setBackgroundColorBack_Test_004 * @tc.name Test setBackgroundColorCallBack_Test_004
* @tc.desc Set the background color input parameter as an outlier * @tc.desc Set the background color input parameter as an outlier
*/ */
it('setBackgroundColorBack_Test_004', 0, async function (done) { it('setBackgroundColorCallBack_Test_004', 0, async function (done) {
console.info('windowTest setBackgroundColorCallBackTest4 begin'); console.info('windowTest setBackgroundColorCallBackTest4 begin');
window.getTopWindow().then(wnd => { window.getTopWindow().then(wnd => {
console.info('windowTest setBackgroundColorTestCallBack4 getTopWindow wnd' + wnd); console.info('windowTest setBackgroundColorTestCallBack4 getTopWindow wnd' + wnd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册