From eb855a0e49bcc2ec5601d00cc3ece46876e67f94 Mon Sep 17 00:00:00 2001 From: zhangjing Date: Sat, 29 Jul 2023 10:29:19 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=904.0Beta2=E3=80=91=E3=80=90Web=E5=AD=90?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E3=80=91=E3=80=90TOD=E3=80=91=E3=80=90rk3568?= =?UTF-8?q?=E3=80=91=E3=80=90=E5=BF=85=E7=8E=B0=E3=80=91=E4=BF=AE=E6=94=B9?= =?UTF-8?q?xts=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangjing --- .../entry/src/main/ets/MainAbility/pages/onWindowNew.ets | 2 +- .../entry/src/main/ets/test/List.test.ets | 2 +- .../entry/src/main/ets/test/WebViewOnWindowNewJsunit.test.ets | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) 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 f9e9f3deb..6a3995510 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 c5544d726..05e46a1b0 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 17894e2a7..264a83a3b 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, ''); }) }) -- GitLab