From d0b97fb28a8e6cfa17dd9a00615f2c79eb879153 Mon Sep 17 00:00:00 2001 From: quyue00807312 Date: Tue, 4 Nov 2025 17:22:57 +0800 Subject: [PATCH 1/2] sample entry 3 Signed-off-by: quyue00807312 --- .../entry/src/ohosTest/ets/test/Ability.test.ets | 2 +- .../entry/src/ohosTest/ets/test/Ability.test.ets | 2 +- .../entry3/src/main/ets/entry3ability/Entry3Ability.ets | 2 -- .../entry3/src/main/ets/pages/common.ets | 2 +- .../SetBasicAttrsEvtsOne/build-profile.json5 | 4 ++-- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ArkWebKit/LifecycleWebComp/entry/src/ohosTest/ets/test/Ability.test.ets b/ArkWebKit/LifecycleWebComp/entry/src/ohosTest/ets/test/Ability.test.ets index 72a538fe0..55df11efb 100644 --- a/ArkWebKit/LifecycleWebComp/entry/src/ohosTest/ets/test/Ability.test.ets +++ b/ArkWebKit/LifecycleWebComp/entry/src/ohosTest/ets/test/Ability.test.ets @@ -56,7 +56,7 @@ export default function abilityTest() { const type = await driver.findComponent(ON.type('Web')); let src: string = await type.getText(); - expect(src).assertContain('index.html'); + expect(src).assertContain('www.example.com'); done(); }) diff --git a/ArkWebKit/ManageWebPageInteracts/entry/src/ohosTest/ets/test/Ability.test.ets b/ArkWebKit/ManageWebPageInteracts/entry/src/ohosTest/ets/test/Ability.test.ets index e0920e04b..11063cac9 100755 --- a/ArkWebKit/ManageWebPageInteracts/entry/src/ohosTest/ets/test/Ability.test.ets +++ b/ArkWebKit/ManageWebPageInteracts/entry/src/ohosTest/ets/test/Ability.test.ets @@ -126,7 +126,7 @@ export default function abilityTest() { const web1 = await driver.findComponent(ON.type('Web')); let src: string = await web1.getText(); - expect(src).assertContain('SetSKBModeIndex.html'); + expect(src).assertContain('index.html'); await driver.pressBack(); console.info('uitest: SetSKBMode_one end'); diff --git a/ArkWebKit/ManageWebPageLoadBrowse/NetReqInterceptCacheWinOps/entry3/src/main/ets/entry3ability/Entry3Ability.ets b/ArkWebKit/ManageWebPageLoadBrowse/NetReqInterceptCacheWinOps/entry3/src/main/ets/entry3ability/Entry3Ability.ets index 344e072d3..28909b8cf 100644 --- a/ArkWebKit/ManageWebPageLoadBrowse/NetReqInterceptCacheWinOps/entry3/src/main/ets/entry3ability/Entry3Ability.ets +++ b/ArkWebKit/ManageWebPageLoadBrowse/NetReqInterceptCacheWinOps/entry3/src/main/ets/entry3ability/Entry3Ability.ets @@ -31,8 +31,6 @@ export default class Entry3Ability extends UIAbility { } // [EndExclude create_main_window] -// ... - onWindowStageCreate(windowStage: window.WindowStage): void { hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate'); diff --git a/ArkWebKit/ManageWebPageLoadBrowse/NetReqInterceptCacheWinOps/entry3/src/main/ets/pages/common.ets b/ArkWebKit/ManageWebPageLoadBrowse/NetReqInterceptCacheWinOps/entry3/src/main/ets/pages/common.ets index 1e09441c7..7c0f0225d 100644 --- a/ArkWebKit/ManageWebPageLoadBrowse/NetReqInterceptCacheWinOps/entry3/src/main/ets/pages/common.ets +++ b/ArkWebKit/ManageWebPageLoadBrowse/NetReqInterceptCacheWinOps/entry3/src/main/ets/pages/common.ets @@ -20,7 +20,7 @@ import { UIContext, NodeController, BuilderNode, FrameNode } from '@kit.ArkUI'; import { webview } from '@kit.ArkWeb'; import { hilog } from '@kit.PerformanceAnalysisKit'; -export const defaultUrl : string = 'www.example.com'; +export const defaultUrl : string = 'https://www.example.com'; // Data为入参封装类 class Data{ diff --git a/ArkWebKit/SetBasicAttrsEvts/SetBasicAttrsEvtsOne/build-profile.json5 b/ArkWebKit/SetBasicAttrsEvts/SetBasicAttrsEvtsOne/build-profile.json5 index a72104fcc..2c92f5d4a 100644 --- a/ArkWebKit/SetBasicAttrsEvts/SetBasicAttrsEvtsOne/build-profile.json5 +++ b/ArkWebKit/SetBasicAttrsEvts/SetBasicAttrsEvtsOne/build-profile.json5 @@ -20,8 +20,8 @@ { "name": "default", "signingConfig": "default", - "compatibleSdkVersion": "5.0.2(14)", - "targetSdkVersion": "5.0.2(14)", + "targetSdkVersion": "6.0.0(20)", + "compatibleSdkVersion": "6.0.0(20)", "runtimeOS": "HarmonyOS", } ], -- Gitee From a8a0307c4bfc9d9ca7a2fb83cdd2a2853f6939c8 Mon Sep 17 00:00:00 2001 From: quyue00807312 Date: Tue, 4 Nov 2025 09:29:56 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20ArkW?= =?UTF-8?q?ebKit/SetBasicAttrsEvts/SetBasicAttrsEvtsOne/build-profile.json?= =?UTF-8?q?5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SetBasicAttrsEvtsOne/build-profile.json5 | 51 ------------------- 1 file changed, 51 deletions(-) delete mode 100644 ArkWebKit/SetBasicAttrsEvts/SetBasicAttrsEvtsOne/build-profile.json5 diff --git a/ArkWebKit/SetBasicAttrsEvts/SetBasicAttrsEvtsOne/build-profile.json5 b/ArkWebKit/SetBasicAttrsEvts/SetBasicAttrsEvtsOne/build-profile.json5 deleted file mode 100644 index 2c92f5d4a..000000000 --- a/ArkWebKit/SetBasicAttrsEvts/SetBasicAttrsEvtsOne/build-profile.json5 +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -{ - "app": { - "signingConfigs": [], - "products": [ - { - "name": "default", - "signingConfig": "default", - "targetSdkVersion": "6.0.0(20)", - "compatibleSdkVersion": "6.0.0(20)", - "runtimeOS": "HarmonyOS", - } - ], - "buildModeSet": [ - { - "name": "debug", - }, - { - "name": "release" - } - ] - }, - "modules": [ - { - "name": "entry", - "srcPath": "./entry", - "targets": [ - { - "name": "default", - "applyToProducts": [ - "default" - ] - } - ] - } - ] -} \ No newline at end of file -- Gitee