未验证 提交 61fdfd09 编写于 作者: O openharmony_ci 提交者: Gitee

!3273 窗口接口用例修改

Merge pull request !3273 from hk_js/master
...@@ -1893,9 +1893,9 @@ describe('window_test', function () { ...@@ -1893,9 +1893,9 @@ describe('window_test', function () {
console.log('screenshotTest setScreenActiveModeTest1 getAllScreen src' + src); console.log('screenshotTest setScreenActiveModeTest1 getAllScreen src' + src);
expect(src[0] != null).assertTrue(); expect(src[0] != null).assertTrue();
let screenIndex = src[0]; let screenIndex = src[0];
screenIndex.setScreenActiveMode(0).then(res => { screenIndex.setScreenActiveMode(0).then(() => {
console.log('screenshotTest setScreenActiveModeTest1 setScreenActiveMode 0 res: ' + res); console.log('screenshotTest setScreenActiveModeTest1 setScreenActiveMode 0 success ');
expect(res).assertTrue(); expect(TRUE_WINDOW).assertTrue()
done(); done();
},(err) => { },(err) => {
console.log('screenshotTest setScreenActiveModeTest1 setScreenActiveMode 0 failed: err' + JSON.stringify(err)); console.log('screenshotTest setScreenActiveModeTest1 setScreenActiveMode 0 failed: err' + JSON.stringify(err));
...@@ -1925,7 +1925,7 @@ describe('window_test', function () { ...@@ -1925,7 +1925,7 @@ describe('window_test', function () {
done(); done();
},(err) => { },(err) => {
console.log('screenshotTest setScreenActiveModeTest2 setScreenActiveMode -5 failed: err' + JSON.stringify(err)); console.log('screenshotTest setScreenActiveModeTest2 setScreenActiveMode -5 failed: err' + JSON.stringify(err));
expect(err.code).assertEqual(0); expect(err.code).assertEqual(-1);
done(); done();
}) })
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册