diff --git a/graphic/windowStage/entry/src/main/ets/test/windowCallback.test.ets b/graphic/windowStage/entry/src/main/ets/test/windowCallback.test.ets index 076dce5c9bb5c91e681c0a4d28b130de12709939..dce7f4108f8f31d52e07dad48e7d6e31ca4639c0 100644 --- a/graphic/windowStage/entry/src/main/ets/test/windowCallback.test.ets +++ b/graphic/windowStage/entry/src/main/ets/test/windowCallback.test.ets @@ -46,7 +46,8 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) 'TYPE_KEYGUARD': 5, 'TYPE_VOLUME_OVERLAY': 6, 'TYPE_NAVIGATION_BAR': 7, - 'TYPE_FLOAT': 8 + 'TYPE_FLOAT': 8, + 'TYPE_FLOAT_CAMERA':9 } var windowLayoutModeArr = []; var windowLayoutModeDic = { diff --git a/graphic/windowStage/entry/src/main/ets/test/windowPromise.test.ets b/graphic/windowStage/entry/src/main/ets/test/windowPromise.test.ets index c53a7905e8384dc78a298ab786ca81a464b76c84..22239b673d9bdd81dfc341c1bdd602b73e4ac194 100644 --- a/graphic/windowStage/entry/src/main/ets/test/windowPromise.test.ets +++ b/graphic/windowStage/entry/src/main/ets/test/windowPromise.test.ets @@ -45,7 +45,8 @@ export default function windowPromiseTest(context, windowStage, abilityStorage) 'TYPE_KEYGUARD': 5, 'TYPE_VOLUME_OVERLAY': 6, 'TYPE_NAVIGATION_BAR': 7, - 'TYPE_FLOAT': 8 + 'TYPE_FLOAT': 8, + 'TYPE_FLOAT_CAMERA':9 } var windowLayoutModeArr = []; var windowLayoutModeDic = { diff --git a/graphic/windowstandard/src/main/js/test/window.test.js b/graphic/windowstandard/src/main/js/test/window.test.js index 9589657ddc84aa254f50420ba5dd980ea517b4f7..698f69158b924f8c2bf8d59db6d77affd220c725 100644 --- a/graphic/windowstandard/src/main/js/test/window.test.js +++ b/graphic/windowstandard/src/main/js/test/window.test.js @@ -176,6 +176,7 @@ describe('window_test', function () { expect(wnd != null).assertTrue(); wnd.getAvoidArea(window.AvoidAreaType.TYPE_SYSTEM).then((data) => { console.log('windowTest getAvoidAreaTest1 wnd.getAvoidArea success, data :' + JSON.stringify(data)); + expect(data.visible).assertTrue(); expect(data.rightRect != null).assertTrue(); expect(data.topRect != null).assertTrue(); expect(data.bottomRect != null).assertTrue(); @@ -205,6 +206,7 @@ describe('window_test', function () { expect(wnd != null).assertTrue(); wnd.getAvoidArea(window.AvoidAreaType.TYPE_CUTOUT).then((data) => { console.log('windowTest getAvoidAreaTest2 wnd.getAvoidArea success, data :' + JSON.stringify(data)); + expect(!data.visible).assertTrue(); expect(data.rightRect != null).assertTrue(); expect(data.topRect != null).assertTrue(); expect(data.bottomRect != null).assertTrue(); @@ -234,6 +236,7 @@ describe('window_test', function () { expect(wnd != null).assertTrue(); wnd.getAvoidArea(avoidAreaType).then((data) => { console.log('windowTest getAvoidAreaTest3 wnd.getAvoidArea success, data :' + JSON.stringify(data)); + expect(data.visible).assertTrue(); expect(data.rightRect != null).assertTrue(); expect(data.topRect != null).assertTrue(); expect(data.bottomRect != null).assertTrue(); @@ -267,6 +270,7 @@ describe('window_test', function () { expect().assertFail(); done(); } else { + expect(data.visible).assertTrue(); expect(data.topRect != null).assertTrue(); expect(data.rightRect != null).assertTrue(); expect(data.bottomRect != null).assertTrue(); @@ -293,6 +297,7 @@ describe('window_test', function () { expect().assertFail(); done(); } else { + expect(!data.visible).assertTrue(); expect(data.topRect != null).assertTrue(); expect(data.rightRect != null).assertTrue(); expect(data.bottomRect != null).assertTrue(); @@ -324,6 +329,7 @@ describe('window_test', function () { expect().assertFail(); done(); } else { + expect(data.visible).assertTrue(); expect(data.topRect != null).assertTrue(); expect(data.rightRect != null).assertTrue(); expect(data.bottomRect != null).assertTrue(); @@ -3489,6 +3495,7 @@ describe('window_test', function () { expect().assertFail(); done(); } else { + expect(data.visible).assertTrue(); expect(data.topRect != null).assertTrue(); expect(data.rightRect != null).assertTrue(); expect(data.bottomRect != null).assertTrue();