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 3608477f15e019074a0827a9564d8c1116875df4..c9d3143fbd22cc6a20f364c4ea84b4d201bb7187 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));