提交 b4711ae1 编写于 作者: H hekun18@huawei.com

add enum value fo test case

Signed-off-by: Nhekun18@huawei.com <hekun18@huawei.com>
上级 14313bbe
......@@ -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).assertEquals(window.WindowStageEventType.FOREGROUND);
expect(0).assertEquals(window.WindowStageEventType.ACTIVE);
expect(1).assertEquals(window.WindowStageEventType.INACTIVE);
expect(2).assertEquals(window.WindowStageEventType.ACTIVE);
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.
先完成此消息的编辑!
想要评论请 注册