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

!3045 窗口子系统API覆盖

Merge pull request !3045 from hk_js/master
...@@ -1910,4 +1910,22 @@ describe('window_test', function () { ...@@ -1910,4 +1910,22 @@ describe('window_test', function () {
}) })
}) })
/**
* @tc.number SUB_WMS_ENUM_WINDOWSTAGEEVENTTYPE_JSAPI_001
* @tc.name Test enumWindowStageEventType_Test_001.
* @tc.desc To test the enum value of WindowStageEventType.
*/
it('enumWindowStageEventType_Test_001', 0, async function (done) {
console.log('test the enum value of WindowStageEventType begin');
try {
expect(1).assertEqual(window.WindowStageEventType.FOREGROUND);
expect(2).assertEqual(window.WindowStageEventType.ACTIVE);
expect(3).assertEqual(window.WindowStageEventType.INACTIVE);
expect(4).assertEqual(window.WindowStageEventType.BACKGROUND);
done();
} catch (err) {
console.log('test enum value of windowStageEventType error ' + JSON.stringify(err));
}
})
}) })
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册