提交 22ad0d27 编写于 作者: H hk_js

submit code

Signed-off-by: Nhk_js <hekun18@huawei.com>
上级 dd9808e9
...@@ -1898,54 +1898,6 @@ describe('window_test', function () { ...@@ -1898,54 +1898,6 @@ describe('window_test', function () {
}) })
}) })
/**
* @tc.number SUB_WMS_SETSCREENACTIVEMODE_JSAPI_001
* @tc.name Test setScreenActiveMode_Test_001.
* @tc.desc To set the function of setting screen parameters
*/
it('setScreenActiveMode_Test_001', 0, async function (done) {
console.log('screenshotTest setScreenActiveModeTest1 begin');
screen.getAllScreen().then(src => {
console.log('screenshotTest setScreenActiveModeTest1 getAllScreen src' + src);
expect(src[0] != null).assertTrue();
let screenIndex = src[0];
screenIndex.setScreenActiveMode(0).then(res => {
console.log('screenshotTest setScreenActiveModeTest1 setScreenActiveMode 0 res: ' + res);
expect(res).assertTrue();
done();
},(err) => {
console.log('screenshotTest setScreenActiveModeTest1 setScreenActiveMode 0 failed: err' + JSON.stringify(err));
expect().assertFail();
done();
})
}, (err) => {
console.log('screenshotTest setScreenActiveModeTest1 failed: err: ' + JSON.stringify(err));
done();
})
})
/**
* @tc.number SUB_WMS_SETSCREENACTIVEMODE_JSAPI_002
* @tc.name Test setScreenActiveMode_Test_002.
* @tc.desc To set the function of screen parameters to abnormal values.
*/
it('setScreenActiveMode_Test_002', 0, async function (done) {
console.log('screenshotTest setScreenActiveModeTest2 begin');
screen.getAllScreen().then(src => {
console.log('screenshotTest setScreenActiveModeTest2 getAllScreen src' + src);
expect(src[0] != null).assertTrue();
let screenIndex = src[0];
screenIndex.setScreenActiveMode(-5).then(res => {
console.log('screenshotTest setScreenActiveModeTest2 setScreenActiveMode -5 res: ' + res);
expect().assertFail();
done();
},(err) => {
console.log('screenshotTest setScreenActiveModeTest2 setScreenActiveMode -5 failed: err' + JSON.stringify(err));
expect(err.code).assertEqual(0);
done();
})
})
})
/** /**
* @tc.number SUB_WMS_ENUM_WINDOWSTAGEEVENTTYPE_JSAPI_001 * @tc.number SUB_WMS_ENUM_WINDOWSTAGEEVENTTYPE_JSAPI_001
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册