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

add enum api test case

Signed-off-by: Nhekun18@huawei.com <hekun18@huawei.com>
上级 b4711ae1
...@@ -1918,10 +1918,10 @@ describe('window_test', function () { ...@@ -1918,10 +1918,10 @@ describe('window_test', function () {
it('enumWindowStageEventType_Test_001', 0, async function (done) { it('enumWindowStageEventType_Test_001', 0, async function (done) {
console.log('test the enum value of WindowStageEventType begin'); console.log('test the enum value of WindowStageEventType begin');
try { try {
expect(-1).assertEquals(window.WindowStageEventType.FOREGROUND); expect(1).assertEqual(window.WindowStageEventType.FOREGROUND);
expect(0).assertEquals(window.WindowStageEventType.ACTIVE); expect(2).assertEqual(window.WindowStageEventType.ACTIVE);
expect(1).assertEquals(window.WindowStageEventType.INACTIVE); expect(3).assertEqual(window.WindowStageEventType.INACTIVE);
expect(2).assertEquals(window.WindowStageEventType.ACTIVE); expect(4).assertEqual(window.WindowStageEventType.BACKGROUND);
done(); done();
} catch (err) { } catch (err) {
console.log('test enum value of windowStageEventType error ' + JSON.stringify(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.
先完成此消息的编辑!
想要评论请 注册