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 8467688eaee59f5771cc753066a796e93609088e..3608477f15e019074a0827a9564d8c1116875df4 100755 --- a/graphic/windowstandard/src/main/js/default/test/window.test.js +++ b/graphic/windowstandard/src/main/js/default/test/window.test.js @@ -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)); + } + }) + })