diff --git a/arkui/ace_ets_web_dev_webviewController/entry/src/main/ets/MainAbility/pages/onWindowNew.ets b/arkui/ace_ets_web_dev_webviewController/entry/src/main/ets/MainAbility/pages/onWindowNew.ets index f9e9f3deb817d61201d76748f87661fde4500dac..6a3995510ab56574073779e12d654d969c164ba8 100644 --- a/arkui/ace_ets_web_dev_webviewController/entry/src/main/ets/MainAbility/pages/onWindowNew.ets +++ b/arkui/ace_ets_web_dev_webviewController/entry/src/main/ets/MainAbility/pages/onWindowNew.ets @@ -167,7 +167,7 @@ struct OnWindowNew { console.log(`getOrigins call`); length = origins.length; console.log(`length is: ${length}`); - Utils.emitEvent(length, 7166); + Utils.emitEventTwo(1, length, 7166); console.log(`getOrigins call end`); }) },2000) diff --git a/arkui/ace_ets_web_dev_webviewController/entry/src/main/ets/test/List.test.ets b/arkui/ace_ets_web_dev_webviewController/entry/src/main/ets/test/List.test.ets index c5544d726d8ead322363b25cc79caba15d2005e9..05e46a1b0c2202991aa2eabf4e5183ffa1d9ea57 100644 --- a/arkui/ace_ets_web_dev_webviewController/entry/src/main/ets/test/List.test.ets +++ b/arkui/ace_ets_web_dev_webviewController/entry/src/main/ets/test/List.test.ets @@ -57,7 +57,6 @@ import webViewOnAudioStateChanged from './webViewOnAudioStateChanged.test' import webViewMediaOption from './webViewMediaOption.test' export default function testsuite() { webViewControllerJsunit() - webViewOnWindowNewJsunit() webViewOnErrorReceive02Jsunit() webViewOnErrorReceive03Jsunit() webViewHasImageJsunit() @@ -99,4 +98,5 @@ export default function testsuite() { webViewGetAccessibleGeolocation() //webViewOnAudioStateChanged() //webViewMediaOption() + webViewOnWindowNewJsunit() } \ No newline at end of file diff --git a/arkui/ace_ets_web_dev_webviewController/entry/src/main/ets/test/WebViewOnWindowNewJsunit.test.ets b/arkui/ace_ets_web_dev_webviewController/entry/src/main/ets/test/WebViewOnWindowNewJsunit.test.ets index 17894e2a725cf4e152cad4a228b31fb2ca56644b..264a83a3bb06b51a1c3df4783d51bf975c8f135f 100644 --- a/arkui/ace_ets_web_dev_webviewController/entry/src/main/ets/test/WebViewOnWindowNewJsunit.test.ets +++ b/arkui/ace_ets_web_dev_webviewController/entry/src/main/ets/test/WebViewOnWindowNewJsunit.test.ets @@ -160,8 +160,7 @@ export default function webViewOnWindowNewJsunit() { */ it('testGetOriginsPromiseLoadLocalHtml01', 0, async function(done){ emitKey = 'emitGetOriginsPromiseLoadLocalHtml01'; - let length = 1; - Utils.registerEvent("testGetOriginsPromiseLoadLocalHtml01", length, 7166, done); + Utils.registerLargerEvent("testGetOriginsPromiseLoadLocalHtml01", 7166, done); sendEventByKey('onWindowNew', 10, ''); }) })