From 8aced71273f94be579cedf993360e4f67568ae30 Mon Sep 17 00:00:00 2001 From: "hekun18@huawei.com" Date: Sun, 24 Apr 2022 21:17:41 +0800 Subject: [PATCH] add enum api test case Signed-off-by: hekun18@huawei.com --- .../src/main/js/default/test/window.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/graphic/windowstandard/src/main/js/default/test/window.test.js b/graphic/windowstandard/src/main/js/default/test/window.test.js index 3608477f1..c9d3143fb 100755 --- a/graphic/windowstandard/src/main/js/default/test/window.test.js +++ b/graphic/windowstandard/src/main/js/default/test/window.test.js @@ -1918,10 +1918,10 @@ describe('window_test', function () { 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); + 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)); -- GitLab