From f6b37ee9ae3635779341730e85691921285fdadd Mon Sep 17 00:00:00 2001 From: chengxingzhen Date: Fri, 4 Nov 2022 19:48:24 +0800 Subject: [PATCH] =?UTF-8?q?xts--=E7=BC=96=E8=AF=91=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chengxingzhen --- .../src/main/ets/MainAbility3/MainAbility3.ts | 1 - .../src/main/ets/MainAbility3/MainAbility3.ts | 1 - .../src/main/ets/MainAbility2/MainAbility2.ts | 1 - .../src/main/ets/MainAbility3/MainAbility3.ts | 1 - .../src/main/ets/MainAbility/pages/index.ets | 1 - .../ets/MainAbility/test/callTest.test.ets | 3 -- .../src/main/ets/MainAbility/pages/index.ets | 1 - .../src/main/ets/MainAbility3/MainAbility3.ts | 3 +- .../src/main/ets/MainAbility4/MainAbility4.ts | 3 +- .../entry/src/main/ets/test/Ability.test.ets | 1 - .../entry/src/main/ets/test/Ability.test.ets | 1 - .../entry/src/main/ets/test/Ability.test.ets | 1 - .../entry/src/main/ets/test/Ability.test.ets | 3 -- .../entry/src/main/ets/test/Ability.test.ets | 1 - .../entry/src/main/ets/test/Ability.test.ets | 9 ---- .../entry/src/main/ets/test/Ability.test.ets | 1 - .../entry/src/main/ets/test/Ability.test.ets | 3 -- .../entry/src/main/ets/test/Ability.test.ets | 1 - .../entry/src/main/ets/test/Ability.test.ets | 1 - .../entry/src/main/ets/test/Ability.test.ets | 1 - .../src/main/ets/MainAbility2/MainAbility2.ts | 1 - .../src/main/ets/MainAbility3/MainAbility3.ts | 1 - .../entry/src/main/ets/test/Ability.test.ets | 1 - .../entry/src/main/ets/test/Ability.test.ets | 1 - .../pages/MainAbility_pages.ets | 4 +- .../pages/MainAbility_pages.ets | 2 +- .../MainAbility/pages/MainAbility_pages.ets | 1 - .../SecondAbility/pages/MainAbility_pages.ets | 1 - .../src/main/ets/MainAbility/pages/index.ets | 1 - .../src/main/ets/MainAbility/pages/index.ets | 1 - .../src/main/ets/MainAbility/pages/index.ets | 1 - .../MainAbility/test/ConnectAbilityTest.ets | 2 - .../MainAbility/test/ConnectAbilityTest1.ets | 2 - .../test/connectAbilityTest_PA.ets | 1 - .../entry/src/main/ets/pages/index.ets | 1 - .../src/main/ets/test/ConnectAbilityTest.ets | 2 - .../main/ets/test/ConnectAbilityTest_Ext.ets | 1 - .../src/main/ets/MainAbility/pages/index.ets | 2 - .../MainAbility/test/StartAbility.test2.ets | 2 - .../src/main/ets/MainAbility/test/Utils.ets | 17 ++++---- .../src/main/ets/MainAbility/pages/index.ets | 2 - .../MainAbility/test/StartAbility.test.ets | 2 - .../src/main/ets/MainAbility/test/Utils.ets | 17 ++++---- .../src/main/ets/MainAbility/pages/index.ets | 2 - .../test/StartAbilityForResult.test.ets | 41 +++++++++---------- .../test/StartAbilityForResult2.test.ets | 3 -- .../src/main/ets/MainAbility/test/Utils.ets | 17 ++++---- .../src/main/ets/MainAbility/pages/index.ets | 2 - .../test/StartAbilityForResult.test.ets | 2 - .../src/main/ets/MainAbility/test/Utils.ets | 17 ++++---- .../entry/src/main/ets/pages/index.ets | 1 - .../main/ets/test/StartAbilityForResult.ets | 1 - .../entry/src/main/ets/pages/index.ets | 1 - .../main/ets/test/StartAbilityForResult.ets | 1 - .../entry/src/main/ets/pages/index.ets | 1 - .../entry/src/main/ets/pages/second.ets | 1 - .../src/main/ets/test/StartAbilityTest.ets | 3 -- .../entry/src/main/ets/pages/index.ets | 2 - .../src/main/ets/test/StartAbilityTest.ets | 2 - .../main/ets/test/AbilityPermission.test.ets | 1 - .../MainAbility/pages/MainAbility1_pages.ets | 1 - .../MainAbility/pages/MainAbility2_pages.ets | 1 - .../MainAbility/pages/MainAbility4_pages.ets | 1 - .../MainAbility/pages/MainAbility5_pages.ets | 1 - .../MainAbility/pages/MainAbility6_pages.ets | 1 - .../MainAbility/pages/MainAbility7_pages.ets | 1 - .../MainAbility/pages/MainAbility_pages.ets | 1 - .../entry/src/main/ets/test/LifecycleTest.ets | 1 - .../src/main/ets/MainAbility/pages/index.ets | 1 - .../entry/src/main/ets/test/LifeCycleTest.ets | 3 +- .../entry/src/main/ets/test/Test.ets | 1 - .../MainAbility/pages/MainAbility1_pages.ets | 1 - .../MainAbility/pages/MainAbility2_pages.ets | 1 - .../MainAbility/pages/MainAbility4_pages.ets | 1 - .../MainAbility/pages/MainAbility5_pages.ets | 1 - .../MainAbility/pages/MainAbility6_pages.ets | 1 - .../MainAbility/pages/MainAbility7_pages.ets | 1 - .../MainAbility/pages/MainAbility_pages.ets | 1 - .../entry/src/main/ets/test/LifecycleTest.ets | 1 - .../src/main/ets/MainAbility/pages/index.ets | 1 - .../entry/src/main/ets/test/LifeCycleTest.ets | 3 +- 81 files changed, 62 insertions(+), 165 deletions(-) diff --git a/ability/ability_runtime/aacommand/AACommand07/entry/src/main/ets/MainAbility3/MainAbility3.ts b/ability/ability_runtime/aacommand/AACommand07/entry/src/main/ets/MainAbility3/MainAbility3.ts index 80bd7e7d7..94f44e976 100644 --- a/ability/ability_runtime/aacommand/AACommand07/entry/src/main/ets/MainAbility3/MainAbility3.ts +++ b/ability/ability_runtime/aacommand/AACommand07/entry/src/main/ets/MainAbility3/MainAbility3.ts @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/aacommand/AACommand08/entry/src/main/ets/MainAbility3/MainAbility3.ts b/ability/ability_runtime/aacommand/AACommand08/entry/src/main/ets/MainAbility3/MainAbility3.ts index 94d27f27b..3bb29f831 100644 --- a/ability/ability_runtime/aacommand/AACommand08/entry/src/main/ets/MainAbility3/MainAbility3.ts +++ b/ability/ability_runtime/aacommand/AACommand08/entry/src/main/ets/MainAbility3/MainAbility3.ts @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/actsabilityusertest/entry/src/main/ets/MainAbility2/MainAbility2.ts b/ability/ability_runtime/actsabilityusertest/entry/src/main/ets/MainAbility2/MainAbility2.ts index 6674afce3..0c1e446dc 100644 --- a/ability/ability_runtime/actsabilityusertest/entry/src/main/ets/MainAbility2/MainAbility2.ts +++ b/ability/ability_runtime/actsabilityusertest/entry/src/main/ets/MainAbility2/MainAbility2.ts @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/actsabilityusertest/entry/src/main/ets/MainAbility3/MainAbility3.ts b/ability/ability_runtime/actsabilityusertest/entry/src/main/ets/MainAbility3/MainAbility3.ts index b58a1d2e2..e9055fc2d 100644 --- a/ability/ability_runtime/actsabilityusertest/entry/src/main/ets/MainAbility3/MainAbility3.ts +++ b/ability/ability_runtime/actsabilityusertest/entry/src/main/ets/MainAbility3/MainAbility3.ts @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/actscalldataabilitytest/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/actscalldataabilitytest/entry/src/main/ets/MainAbility/pages/index.ets index 22bb82767..9cb1ad6a4 100644 --- a/ability/ability_runtime/actscalldataabilitytest/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/actscalldataabilitytest/entry/src/main/ets/MainAbility/pages/index.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/actscalldataabilitytest/entry/src/main/ets/MainAbility/test/callTest.test.ets b/ability/ability_runtime/actscalldataabilitytest/entry/src/main/ets/MainAbility/test/callTest.test.ets index ea9106e1f..7609a3a2d 100644 --- a/ability/ability_runtime/actscalldataabilitytest/entry/src/main/ets/MainAbility/test/callTest.test.ets +++ b/ability/ability_runtime/actscalldataabilitytest/entry/src/main/ets/MainAbility/test/callTest.test.ets @@ -1,6 +1,3 @@ -// @ts-nocheck - - /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/MainAbility/pages/index.ets index 8eccbf99b..b878fe92c 100644 --- a/ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/MainAbility/pages/index.ets @@ -13,7 +13,6 @@ * limitations under the License. */ -// @ts-nocheck import router from '@ohos.router'; import file from '@system.file'; import testsuite from "../../test/List.test" diff --git a/ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/MainAbility3/MainAbility3.ts b/ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/MainAbility3/MainAbility3.ts index cce40226d..7e4b57e67 100644 --- a/ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/MainAbility3/MainAbility3.ts +++ b/ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/MainAbility3/MainAbility3.ts @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -21,7 +20,7 @@ export default class MainAbility3 extends Ability { console.log("MainAbility3 onCreate") } - onDestroy(want) { + onDestroy() { // Ability is destroying, release resources for this ability console.log("MainAbility3 onDestroy") } diff --git a/ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/MainAbility4/MainAbility4.ts b/ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/MainAbility4/MainAbility4.ts index 5ea48b09b..dd7e032b6 100644 --- a/ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/MainAbility4/MainAbility4.ts +++ b/ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/MainAbility4/MainAbility4.ts @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -21,7 +20,7 @@ export default class MainAbility4 extends Ability { console.log("MainAbility4 onCreate") } - onDestroy(want) { + onDestroy() { // Ability is destroying, release resources for this ability console.log("MainAbility4 onDestroy") } diff --git a/ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/test/Ability.test.ets index 06b6e8e82..dac97ad34 100644 --- a/ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/test/Ability.test.ets +++ b/ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/entry/src/main/ets/test/Ability.test.ets @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// @ts-nocheck import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' const START_ABILITY_TIMEOUT = 4000; diff --git a/ability/ability_runtime/actsqueryfunctiontest/actsgetcurrenttopabilitystageatest/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/actsqueryfunctiontest/actsgetcurrenttopabilitystageatest/entry/src/main/ets/test/Ability.test.ets index 78d3d346c..722aa88a4 100644 --- a/ability/ability_runtime/actsqueryfunctiontest/actsgetcurrenttopabilitystageatest/entry/src/main/ets/test/Ability.test.ets +++ b/ability/ability_runtime/actsqueryfunctiontest/actsgetcurrenttopabilitystageatest/entry/src/main/ets/test/Ability.test.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/actsqueryfunctiontest/actsgetcurrenttopabilitystagebtest/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/actsqueryfunctiontest/actsgetcurrenttopabilitystagebtest/entry/src/main/ets/test/Ability.test.ets index 0e8ea307c..6fb43496f 100644 --- a/ability/ability_runtime/actsqueryfunctiontest/actsgetcurrenttopabilitystagebtest/entry/src/main/ets/test/Ability.test.ets +++ b/ability/ability_runtime/actsqueryfunctiontest/actsgetcurrenttopabilitystagebtest/entry/src/main/ets/test/Ability.test.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/actssingleton/SystemSingleton/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/actssingleton/SystemSingleton/entry/src/main/ets/test/Ability.test.ets index 07952ce07..5c1e7ca45 100644 --- a/ability/ability_runtime/actssingleton/SystemSingleton/entry/src/main/ets/test/Ability.test.ets +++ b/ability/ability_runtime/actssingleton/SystemSingleton/entry/src/main/ets/test/Ability.test.ets @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// @ts-nocheck import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' const START_ABILITY_TIMEOUT = 2000; @@ -259,7 +258,6 @@ export default function singleusermodelTest() { let temp let cmd = 'aa dump -a' await abilityDelegator.executeShellCommand(cmd).then((data) => { - console.info('executeShellCommand 0800: err : ' + JSON.stringify(err)); console.info('executeShellCommand 0800: data : ' + JSON.stringify(data)); temp = data["stdResult"]; expect(temp.indexOf("SingleUserModel1800") == -1).assertTrue() @@ -269,7 +267,6 @@ export default function singleusermodelTest() { }) cmd = 'aa dump -a -u 0' await abilityDelegator.executeShellCommand(cmd).then((data) => { - console.info('executeShellCommand 0: err : ' + JSON.stringify(err)); console.info('executeShellCommand : data 0: ' + JSON.stringify(data)); temp = data["stdResult"]; expect(temp.indexOf("SingleUserModel1800") == -1).assertTrue() diff --git a/ability/ability_runtime/actssingleton/SystemSingletonExtension/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/actssingleton/SystemSingletonExtension/entry/src/main/ets/test/Ability.test.ets index efbb1f09e..e2fe2fcbd 100644 --- a/ability/ability_runtime/actssingleton/SystemSingletonExtension/entry/src/main/ets/test/Ability.test.ets +++ b/ability/ability_runtime/actssingleton/SystemSingletonExtension/entry/src/main/ets/test/Ability.test.ets @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// @ts-nocheck import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' diff --git a/ability/ability_runtime/actssingleton/SystemSingletonExtensionFalse/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/actssingleton/SystemSingletonExtensionFalse/entry/src/main/ets/test/Ability.test.ets index db8014fd7..88bd4a30c 100644 --- a/ability/ability_runtime/actssingleton/SystemSingletonExtensionFalse/entry/src/main/ets/test/Ability.test.ets +++ b/ability/ability_runtime/actssingleton/SystemSingletonExtensionFalse/entry/src/main/ets/test/Ability.test.ets @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// @ts-nocheck import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' const ABILITY_TIMEOUT=5000; @@ -137,7 +136,6 @@ export default function singleusermodelTest() { let temp let cmd ='aa dump -e' await abilityDelegator.executeShellCommand(cmd).then((data) => { - console.info('executeShellCommand : err : ' + JSON.stringify(err)); console.info('executeShellCommand : data : ' + JSON.stringify(data)); temp = data["stdResult"]; expect(temp.indexOf("ServiceAbility2") == -1).assertTrue() @@ -147,7 +145,6 @@ export default function singleusermodelTest() { }) cmd ='aa dump -e -u 0' await abilityDelegator.executeShellCommand(cmd).then((data) => { - console.info('executeShellCommand 0: err : ' + JSON.stringify(err)); console.info('executeShellCommand : data 0: ' + JSON.stringify(data)); temp = data["stdResult"]; expect(temp.indexOf("ServiceAbility2") == -1).assertTrue() @@ -215,7 +212,6 @@ export default function singleusermodelTest() { let temp let cmd ='aa dump -e' await abilityDelegator.executeShellCommand(cmd).then((data) => { - console.info('executeShellCommand : err : ' + JSON.stringify(err)); console.info('executeShellCommand : data : ' + JSON.stringify(data)); temp = data["stdResult"]; expect(temp.indexOf("ServiceAbility3") == -1).assertTrue() @@ -225,7 +221,6 @@ export default function singleusermodelTest() { }) cmd ='aa dump -e -u 0' await abilityDelegator.executeShellCommand(cmd).then((data) => { - console.info('executeShellCommand 0: err : ' + JSON.stringify(err)); console.info('executeShellCommand : data 0: ' + JSON.stringify(data)); temp = data["stdResult"]; expect(temp.indexOf("ServiceAbility3") == -1).assertTrue() @@ -284,7 +279,6 @@ export default function singleusermodelTest() { let temp let cmd ='aa dump -e' await abilityDelegator.executeShellCommand(cmd).then((data) => { - console.info('executeShellCommand : err : ' + JSON.stringify(err)); console.info('executeShellCommand : data : ' + JSON.stringify(data)); temp = data["stdResult"]; expect(temp.indexOf("ServiceAbility4") == -1).assertTrue() @@ -294,7 +288,6 @@ export default function singleusermodelTest() { }) cmd ='aa dump -e -u 0' await abilityDelegator.executeShellCommand(cmd).then((data) => { - console.info('executeShellCommand 0: err : ' + JSON.stringify(err)); console.info('executeShellCommand : data 0: ' + JSON.stringify(data)); temp = data["stdResult"]; expect(temp.indexOf("ServiceAbility4") == -1).assertTrue() @@ -361,7 +354,6 @@ export default function singleusermodelTest() { let temp let cmd ='aa dump -e' await abilityDelegator.executeShellCommand(cmd).then((data) => { - console.info('executeShellCommand : err : ' + JSON.stringify(err)); console.info('executeShellCommand : data : ' + JSON.stringify(data)); temp = data["stdResult"]; expect(temp.indexOf("ServiceAbility5") == -1).assertTrue() @@ -371,7 +363,6 @@ export default function singleusermodelTest() { }) cmd ='aa dump -e -u 0' await abilityDelegator.executeShellCommand(cmd).then((data) => { - console.info('executeShellCommand 0: err : ' + JSON.stringify(err)); console.info('executeShellCommand : data 0: ' + JSON.stringify(data)); temp = data["stdResult"]; expect(temp.indexOf("ServiceAbility5") == -1).assertTrue() diff --git a/ability/ability_runtime/actssingleton/SystemSingletonFalse/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/actssingleton/SystemSingletonFalse/entry/src/main/ets/test/Ability.test.ets index 25b920c54..2c25bf792 100644 --- a/ability/ability_runtime/actssingleton/SystemSingletonFalse/entry/src/main/ets/test/Ability.test.ets +++ b/ability/ability_runtime/actssingleton/SystemSingletonFalse/entry/src/main/ets/test/Ability.test.ets @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// @ts-nocheck import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' const START_ABILITY_TIMEOUT = 3000; diff --git a/ability/ability_runtime/actssingleton/ThirdSingleton/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/actssingleton/ThirdSingleton/entry/src/main/ets/test/Ability.test.ets index 67d8b75a6..9c36c0847 100644 --- a/ability/ability_runtime/actssingleton/ThirdSingleton/entry/src/main/ets/test/Ability.test.ets +++ b/ability/ability_runtime/actssingleton/ThirdSingleton/entry/src/main/ets/test/Ability.test.ets @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// @ts-nocheck import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' const START_ABILITY_TIMEOUT = 3000; @@ -41,7 +40,6 @@ export default function singleusermodelTest() { let temp let cmd = 'aa dump -a' await abilityDelegator.executeShellCommand(cmd).then((data) => { - console.info('executeShellCommand : err : ' + JSON.stringify(err)); console.info('executeShellCommand : data : ' + JSON.stringify(data)); temp = data["stdResult"]; expect(temp.indexOf("SingleUserModel1900") >= 0).assertTrue() @@ -51,7 +49,6 @@ export default function singleusermodelTest() { }) cmd = 'aa dump -a -u 0' await abilityDelegator.executeShellCommand(cmd).then((data) => { - console.info('executeShellCommand 0: err : ' + JSON.stringify(err)); console.info('executeShellCommand 0: data : ' + JSON.stringify(data)); temp = data["stdResult"]; expect(temp.indexOf("SingleUserModel1900") == -1).assertTrue() diff --git a/ability/ability_runtime/actssingleton/ThirdSingletonExtension/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/actssingleton/ThirdSingletonExtension/entry/src/main/ets/test/Ability.test.ets index 43e4ce151..926203ee5 100644 --- a/ability/ability_runtime/actssingleton/ThirdSingletonExtension/entry/src/main/ets/test/Ability.test.ets +++ b/ability/ability_runtime/actssingleton/ThirdSingletonExtension/entry/src/main/ets/test/Ability.test.ets @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// @ts-nocheck import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' diff --git a/ability/ability_runtime/actssingleton/ThirdSingletonExtensionFalse/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/actssingleton/ThirdSingletonExtensionFalse/entry/src/main/ets/test/Ability.test.ets index d41cb5a5d..b7f9c6390 100644 --- a/ability/ability_runtime/actssingleton/ThirdSingletonExtensionFalse/entry/src/main/ets/test/Ability.test.ets +++ b/ability/ability_runtime/actssingleton/ThirdSingletonExtensionFalse/entry/src/main/ets/test/Ability.test.ets @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// @ts-nocheck import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' diff --git a/ability/ability_runtime/actssingleton/ThirdSingletonFalse/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/actssingleton/ThirdSingletonFalse/entry/src/main/ets/test/Ability.test.ets index a26d9852c..54fa11345 100644 --- a/ability/ability_runtime/actssingleton/ThirdSingletonFalse/entry/src/main/ets/test/Ability.test.ets +++ b/ability/ability_runtime/actssingleton/ThirdSingletonFalse/entry/src/main/ets/test/Ability.test.ets @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// @ts-nocheck import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' const START_ABILITY_TIMEOUT = 3000; diff --git a/ability/ability_runtime/actsstartrunnertest/entry/src/main/ets/MainAbility2/MainAbility2.ts b/ability/ability_runtime/actsstartrunnertest/entry/src/main/ets/MainAbility2/MainAbility2.ts index 2434f4776..9bd2b8ce2 100644 --- a/ability/ability_runtime/actsstartrunnertest/entry/src/main/ets/MainAbility2/MainAbility2.ts +++ b/ability/ability_runtime/actsstartrunnertest/entry/src/main/ets/MainAbility2/MainAbility2.ts @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/actsstartrunnertest/entry/src/main/ets/MainAbility3/MainAbility3.ts b/ability/ability_runtime/actsstartrunnertest/entry/src/main/ets/MainAbility3/MainAbility3.ts index 4c810084a..a50f21965 100644 --- a/ability/ability_runtime/actsstartrunnertest/entry/src/main/ets/MainAbility3/MainAbility3.ts +++ b/ability/ability_runtime/actsstartrunnertest/entry/src/main/ets/MainAbility3/MainAbility3.ts @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/amscontextualinforquery/actsamsstaticinformationmultipletest/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/amscontextualinforquery/actsamsstaticinformationmultipletest/entry/src/main/ets/test/Ability.test.ets index a0f82d4c5..696af0228 100644 --- a/ability/ability_runtime/amscontextualinforquery/actsamsstaticinformationmultipletest/entry/src/main/ets/test/Ability.test.ets +++ b/ability/ability_runtime/amscontextualinforquery/actsamsstaticinformationmultipletest/entry/src/main/ets/test/Ability.test.ets @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// @ts-nocheck import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium" import commonEvent from '@ohos.commonEvent'; diff --git a/ability/ability_runtime/amscontextualinforquery/actsamsstaticinformationmultitest/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/amscontextualinforquery/actsamsstaticinformationmultitest/entry/src/main/ets/test/Ability.test.ets index 96b50083a..66f469c11 100644 --- a/ability/ability_runtime/amscontextualinforquery/actsamsstaticinformationmultitest/entry/src/main/ets/test/Ability.test.ets +++ b/ability/ability_runtime/amscontextualinforquery/actsamsstaticinformationmultitest/entry/src/main/ets/test/Ability.test.ets @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// @ts-nocheck import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium" import commonEvent from '@ohos.commonEvent'; diff --git a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/CreateFormAbility/pages/MainAbility_pages.ets b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/CreateFormAbility/pages/MainAbility_pages.ets index 56d5f67e6..c8c641826 100644 --- a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/CreateFormAbility/pages/MainAbility_pages.ets +++ b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/CreateFormAbility/pages/MainAbility_pages.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -29,6 +28,7 @@ struct Index { @State ability: string = "FormAbility"; @State moduleName: string = "phone"; @State name: string = "form1"; + @State allowUpate: boolean = true; private dimension: FormDimension = FormDimension.Dimension_2_2; private temporary = false; @@ -49,7 +49,7 @@ struct Index { dimension: this.dimension, temporary: this.temporary, }) - .allowUpdate(this.allowUpate) + .allowUpdate(this.allowUpate ) .visibility(this.isShowing ? Visibility.Visible : Visibility.Hidden) .onAcquired((form) => { console.log("[FormComponent.host] get form, form id:" + form.id); diff --git a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/FormHostAbility/pages/MainAbility_pages.ets b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/FormHostAbility/pages/MainAbility_pages.ets index 6d8586760..5d83f39e7 100644 --- a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/FormHostAbility/pages/MainAbility_pages.ets +++ b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/FormHostAbility/pages/MainAbility_pages.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -26,6 +25,7 @@ struct Index { @State ability: string = "FormAbility"; @State moduleName: string = "phone"; @State name: string = "widget"; + @State allowUpate: boolean = true; private dimension: FormDimension = FormDimension.Dimension_2_1; private temporary = false; diff --git a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets index ecf02975d..393cf84cc 100644 --- a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets +++ b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/SecondAbility/pages/MainAbility_pages.ets b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/SecondAbility/pages/MainAbility_pages.ets index 351e255f1..5df223331 100644 --- a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/SecondAbility/pages/MainAbility_pages.ets +++ b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/SecondAbility/pages/MainAbility_pages.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostk/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostk/entry/src/main/ets/MainAbility/pages/index.ets index 12d7ad236..e691b929e 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostk/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostk/entry/src/main/ets/MainAbility/pages/index.ets @@ -18,7 +18,6 @@ import formHost from '@ohos.application.formHost'; import commonEvent from '@ohos.commonEvent'; import systemTime from '@ohos.systemTime'; -// @ts-nocheck @Entry @Component struct Index { diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostl/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostl/entry/src/main/ets/MainAbility/pages/index.ets index 279ca3158..add33ce25 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostl/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostl/entry/src/main/ets/MainAbility/pages/index.ets @@ -17,7 +17,6 @@ import commonEvent from '@ohos.commonEvent'; import featureAbility from '@ohos.ability.featureAbility'; import formHost from '@ohos.application.formHost'; -// @ts-nocheck @Entry @Component struct Index { diff --git a/ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/pages/index.ets index 71c6c1298..dfa9c3eb0 100644 --- a/ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/pages/index.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/ConnectAbilityTest.ets b/ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/ConnectAbilityTest.ets index 3d26b0327..60cc2ceb4 100644 --- a/ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/ConnectAbilityTest.ets +++ b/ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/ConnectAbilityTest.ets @@ -1,5 +1,3 @@ -// @ts-nocheck - /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/ConnectAbilityTest1.ets b/ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/ConnectAbilityTest1.ets index 38282979c..2adb8fc3b 100644 --- a/ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/ConnectAbilityTest1.ets +++ b/ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/ConnectAbilityTest1.ets @@ -1,5 +1,3 @@ -// @ts-nocheck - /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/connectAbilityTest_PA.ets b/ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/connectAbilityTest_PA.ets index eb881f329..c2412e525 100644 --- a/ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/connectAbilityTest_PA.ets +++ b/ability/ability_runtime/freeinstalltest/connectabilityfatest/actsfreeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/connectAbilityTest_PA.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/connectabilitystagetest/actsfreeinstallconnectabilitystagetest/entry/src/main/ets/pages/index.ets b/ability/ability_runtime/freeinstalltest/connectabilitystagetest/actsfreeinstallconnectabilitystagetest/entry/src/main/ets/pages/index.ets index 9f1d4ceb5..cd2173be0 100644 --- a/ability/ability_runtime/freeinstalltest/connectabilitystagetest/actsfreeinstallconnectabilitystagetest/entry/src/main/ets/pages/index.ets +++ b/ability/ability_runtime/freeinstalltest/connectabilitystagetest/actsfreeinstallconnectabilitystagetest/entry/src/main/ets/pages/index.ets @@ -13,7 +13,6 @@ * limitations under the License. */ -// @ts-nocheck import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import { Hypium } from '@ohos/hypium' import testsuite from '../test/ListTest' diff --git a/ability/ability_runtime/freeinstalltest/connectabilitystagetest/actsfreeinstallconnectabilitystagetest/entry/src/main/ets/test/ConnectAbilityTest.ets b/ability/ability_runtime/freeinstalltest/connectabilitystagetest/actsfreeinstallconnectabilitystagetest/entry/src/main/ets/test/ConnectAbilityTest.ets index 51f4370a7..15b2a6289 100644 --- a/ability/ability_runtime/freeinstalltest/connectabilitystagetest/actsfreeinstallconnectabilitystagetest/entry/src/main/ets/test/ConnectAbilityTest.ets +++ b/ability/ability_runtime/freeinstalltest/connectabilitystagetest/actsfreeinstallconnectabilitystagetest/entry/src/main/ets/test/ConnectAbilityTest.ets @@ -1,5 +1,3 @@ -// @ts-nocheck - /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/connectabilitystagetest/actsfreeinstallconnectabilitystagetest/entry/src/main/ets/test/ConnectAbilityTest_Ext.ets b/ability/ability_runtime/freeinstalltest/connectabilitystagetest/actsfreeinstallconnectabilitystagetest/entry/src/main/ets/test/ConnectAbilityTest_Ext.ets index 6e1a28e73..48b982f48 100644 --- a/ability/ability_runtime/freeinstalltest/connectabilitystagetest/actsfreeinstallconnectabilitystagetest/entry/src/main/ets/test/ConnectAbilityTest_Ext.ets +++ b/ability/ability_runtime/freeinstalltest/connectabilitystagetest/actsfreeinstallconnectabilitystagetest/entry/src/main/ets/test/ConnectAbilityTest_Ext.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/startabilityfatest/actsfreeinstallstartabilityfatest/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/freeinstalltest/startabilityfatest/actsfreeinstallstartabilityfatest/entry/src/main/ets/MainAbility/pages/index.ets index 60d7d89b3..7161ba8b7 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityfatest/actsfreeinstallstartabilityfatest/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/freeinstalltest/startabilityfatest/actsfreeinstallstartabilityfatest/entry/src/main/ets/MainAbility/pages/index.ets @@ -1,5 +1,3 @@ -// @ts-nocheck - /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/startabilityfatest/actsfreeinstallstartabilityfatest/entry/src/main/ets/MainAbility/test/StartAbility.test2.ets b/ability/ability_runtime/freeinstalltest/startabilityfatest/actsfreeinstallstartabilityfatest/entry/src/main/ets/MainAbility/test/StartAbility.test2.ets index fdb535cd8..e69cef2a3 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityfatest/actsfreeinstallstartabilityfatest/entry/src/main/ets/MainAbility/test/StartAbility.test2.ets +++ b/ability/ability_runtime/freeinstalltest/startabilityfatest/actsfreeinstallstartabilityfatest/entry/src/main/ets/MainAbility/test/StartAbility.test2.ets @@ -1,5 +1,3 @@ -// @ts-nocheck - /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/startabilityfatest/actsfreeinstallstartabilityfatest/entry/src/main/ets/MainAbility/test/Utils.ets b/ability/ability_runtime/freeinstalltest/startabilityfatest/actsfreeinstallstartabilityfatest/entry/src/main/ets/MainAbility/test/Utils.ets index 4d9553a5c..d1741e627 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityfatest/actsfreeinstallstartabilityfatest/entry/src/main/ets/MainAbility/test/Utils.ets +++ b/ability/ability_runtime/freeinstalltest/startabilityfatest/actsfreeinstallstartabilityfatest/entry/src/main/ets/MainAbility/test/Utils.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /** * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -24,7 +23,7 @@ export default class Utils { static sleep(time) { return new Promise((resolve, reject) => { setTimeout(() => { - resolve() + resolve(reject) }, time) }).then(() => { console.info(`sleep ${time} over...`) @@ -76,6 +75,8 @@ export default class Utils { x: downX, y: downY, type: TouchType.Down, + screenX: 0, + screenY: 1, } console.info('down touch started: ' + JSON.stringify(downPonit)) sendTouchEvent(downPonit); @@ -88,7 +89,9 @@ export default class Utils { id: 1, x: downX + (xStep * i), y: downY + (yStep * i), - type: TouchType.Move + type: TouchType.Move, + screenX: 0, + screenY: 1, } console.info('move touch started: ' + JSON.stringify(movePoint)) ret = sendTouchEvent(movePoint) @@ -106,6 +109,8 @@ export default class Utils { x: upX, y: upY, type: TouchType.Up, + screenX: 0, + screenY: 1, } console.info('up touch started: ' + JSON.stringify(upPoint)) sendTouchEvent(upPoint) @@ -123,8 +128,4 @@ export default class Utils { console.info("Get Interface duration: " + duration); return duration; } -} - - - - +} \ No newline at end of file diff --git a/ability/ability_runtime/freeinstalltest/startabilityfatest/actsstartabilitynotargetbundlelistfatest/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/freeinstalltest/startabilityfatest/actsstartabilitynotargetbundlelistfatest/entry/src/main/ets/MainAbility/pages/index.ets index b2f7c90c1..582a7b57c 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityfatest/actsstartabilitynotargetbundlelistfatest/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/freeinstalltest/startabilityfatest/actsstartabilitynotargetbundlelistfatest/entry/src/main/ets/MainAbility/pages/index.ets @@ -1,5 +1,3 @@ -// @ts-nocheck - /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/startabilityfatest/actsstartabilitynotargetbundlelistfatest/entry/src/main/ets/MainAbility/test/StartAbility.test.ets b/ability/ability_runtime/freeinstalltest/startabilityfatest/actsstartabilitynotargetbundlelistfatest/entry/src/main/ets/MainAbility/test/StartAbility.test.ets index 06e87987a..2de02227a 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityfatest/actsstartabilitynotargetbundlelistfatest/entry/src/main/ets/MainAbility/test/StartAbility.test.ets +++ b/ability/ability_runtime/freeinstalltest/startabilityfatest/actsstartabilitynotargetbundlelistfatest/entry/src/main/ets/MainAbility/test/StartAbility.test.ets @@ -1,5 +1,3 @@ -// @ts-nocheck - /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/startabilityfatest/actsstartabilitynotargetbundlelistfatest/entry/src/main/ets/MainAbility/test/Utils.ets b/ability/ability_runtime/freeinstalltest/startabilityfatest/actsstartabilitynotargetbundlelistfatest/entry/src/main/ets/MainAbility/test/Utils.ets index 59a63137a..b1a932cd5 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityfatest/actsstartabilitynotargetbundlelistfatest/entry/src/main/ets/MainAbility/test/Utils.ets +++ b/ability/ability_runtime/freeinstalltest/startabilityfatest/actsstartabilitynotargetbundlelistfatest/entry/src/main/ets/MainAbility/test/Utils.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -24,7 +23,7 @@ export default class Utils { static sleep(time) { return new Promise((resolve, reject) => { setTimeout(() => { - resolve() + resolve(reject) }, time) }).then(() => { console.info(`sleep ${time} over...`) @@ -76,6 +75,8 @@ export default class Utils { x: downX, y: downY, type: TouchType.Down, + screenX: 0, + screenY: 1, } console.info('down touch started: ' + JSON.stringify(downPonit)) sendTouchEvent(downPonit); @@ -88,7 +89,9 @@ export default class Utils { id: 1, x: downX + (xStep * i), y: downY + (yStep * i), - type: TouchType.Move + type: TouchType.Move, + screenX: 0, + screenY: 1, } console.info('move touch started: ' + JSON.stringify(movePoint)) ret = sendTouchEvent(movePoint) @@ -106,6 +109,8 @@ export default class Utils { x: upX, y: upY, type: TouchType.Up, + screenX: 0, + screenY: 1, } console.info('up touch started: ' + JSON.stringify(upPoint)) sendTouchEvent(upPoint) @@ -123,8 +128,4 @@ export default class Utils { console.info("Get Interface duration: " + duration); return duration; } -} - - - - +} \ No newline at end of file diff --git a/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/pages/index.ets index ccab691e3..81a4a8a51 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/pages/index.ets @@ -1,5 +1,3 @@ -// @ts-nocheck - /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/test/StartAbilityForResult.test.ets b/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/test/StartAbilityForResult.test.ets index 4b4355984..3959e80a6 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/test/StartAbilityForResult.test.ets +++ b/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/test/StartAbilityForResult.test.ets @@ -1,6 +1,3 @@ -// @ts-nocheck - - /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -753,15 +750,15 @@ export default function StartAbilityForResult() { console.log("------------start FreeInstall_FA_StartAbilityForResult_1800-------------"); TAG = "FreeInstall_FA_StartAbilityForResult_1800"; let wrong; - var str = { - 'want': { - "bundleName": "com.example.qianyiyingyong.hmservice", - "abilityName": "com.example.qianyiyingyong.MainAbility", - "moduleName": "entry", - 'flags': '11' + let startAbilityParameter = { + want: { + bundleName: "com.example.qianyiyingyong.hmservice", + abilityName: "com.example.qianyiyingyong.MainAbility", + moduleName: "entry", + flags: 11 } } - await featureAbility.startAbilityForResult(str) + await featureAbility.startAbilityForResult(startAbilityParameter) .then((data) => { console.info(TAG + ' StartAbilityForResultPromise successful. Data: ' + JSON.stringify(data)) }).catch((error) => { @@ -793,15 +790,15 @@ export default function StartAbilityForResult() { }) await Utils.sleep(500); let details; - var str = { - 'want': { + let startAbilityParameter = { + want: { "bundleName": "com.example.qianyiyingyong.hmservice", "abilityName": "com.example.qianyiyingyong.MainAbility", "moduleName": "entry", - 'flags': '11' + 'flags': 11 } } - await featureAbility.startAbilityForResult(str) + await featureAbility.startAbilityForResult(startAbilityParameter) .then((data) => { details = data; console.info(TAG + ' StartAbilityForResultPromise successful. Data: ' + JSON.stringify(data)) @@ -824,15 +821,15 @@ export default function StartAbilityForResult() { console.log("------------start FreeInstall_FA_StartAbilityForResult_2000-------------"); TAG = "FreeInstall_FA_StartAbilityForResult_2000"; let wrong; - var str = { - 'want': { + let startAbilityParameter = { + want: { "bundleName": "com.example.qianyiyingyong.hmservice", "abilityName": "com.example.qianyiyingyong.MainAbility", "moduleName": "entry", - 'flags': '' + 'flags': 0 } } - await featureAbility.startAbilityForResult(str) + await featureAbility.startAbilityForResult(startAbilityParameter) .then((data) => { console.info(TAG + ' StartAbilityForResultPromise successful. Data: ' + JSON.stringify(data)) }).catch((error) => { @@ -859,15 +856,15 @@ export default function StartAbilityForResult() { }) await Utils.sleep(1000); let details; - var str = { - 'want': { + let startAbilityParameter = { + want: { "bundleName": "com.example.qianyiyingyong.hmservice", "abilityName": "com.example.qianyiyingyong.MainAbility", "moduleName": "entry", - 'flags': '' + 'flags': 2 } } - await featureAbility.startAbilityForResult(str) + await featureAbility.startAbilityForResult(startAbilityParameter) .then((data) => { details = data; console.info(TAG + ' StartAbilityForResultPromise successful. Data: ' + JSON.stringify(data)) diff --git a/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/test/StartAbilityForResult2.test.ets b/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/test/StartAbilityForResult2.test.ets index 7f45dc03b..8ffc6deee 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/test/StartAbilityForResult2.test.ets +++ b/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/test/StartAbilityForResult2.test.ets @@ -1,6 +1,3 @@ -// @ts-nocheck - - /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/test/Utils.ets b/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/test/Utils.ets index 4d9553a5c..d1741e627 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/test/Utils.ets +++ b/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsfreeinstallstartabilityforresultfatest/entry/src/main/ets/MainAbility/test/Utils.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /** * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -24,7 +23,7 @@ export default class Utils { static sleep(time) { return new Promise((resolve, reject) => { setTimeout(() => { - resolve() + resolve(reject) }, time) }).then(() => { console.info(`sleep ${time} over...`) @@ -76,6 +75,8 @@ export default class Utils { x: downX, y: downY, type: TouchType.Down, + screenX: 0, + screenY: 1, } console.info('down touch started: ' + JSON.stringify(downPonit)) sendTouchEvent(downPonit); @@ -88,7 +89,9 @@ export default class Utils { id: 1, x: downX + (xStep * i), y: downY + (yStep * i), - type: TouchType.Move + type: TouchType.Move, + screenX: 0, + screenY: 1, } console.info('move touch started: ' + JSON.stringify(movePoint)) ret = sendTouchEvent(movePoint) @@ -106,6 +109,8 @@ export default class Utils { x: upX, y: upY, type: TouchType.Up, + screenX: 0, + screenY: 1, } console.info('up touch started: ' + JSON.stringify(upPoint)) sendTouchEvent(upPoint) @@ -123,8 +128,4 @@ export default class Utils { console.info("Get Interface duration: " + duration); return duration; } -} - - - - +} \ No newline at end of file diff --git a/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsstartabilityforresultnotargetfatest/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsstartabilityforresultnotargetfatest/entry/src/main/ets/MainAbility/pages/index.ets index 8d2b19fc5..5f5a4e397 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsstartabilityforresultnotargetfatest/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsstartabilityforresultnotargetfatest/entry/src/main/ets/MainAbility/pages/index.ets @@ -1,5 +1,3 @@ -// @ts-nocheck - /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsstartabilityforresultnotargetfatest/entry/src/main/ets/MainAbility/test/StartAbilityForResult.test.ets b/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsstartabilityforresultnotargetfatest/entry/src/main/ets/MainAbility/test/StartAbilityForResult.test.ets index 62743ea45..23d857312 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsstartabilityforresultnotargetfatest/entry/src/main/ets/MainAbility/test/StartAbilityForResult.test.ets +++ b/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsstartabilityforresultnotargetfatest/entry/src/main/ets/MainAbility/test/StartAbilityForResult.test.ets @@ -1,5 +1,3 @@ -// @ts-nocheck - /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsstartabilityforresultnotargetfatest/entry/src/main/ets/MainAbility/test/Utils.ets b/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsstartabilityforresultnotargetfatest/entry/src/main/ets/MainAbility/test/Utils.ets index 59a63137a..b1a932cd5 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsstartabilityforresultnotargetfatest/entry/src/main/ets/MainAbility/test/Utils.ets +++ b/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/actsstartabilityforresultnotargetfatest/entry/src/main/ets/MainAbility/test/Utils.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -24,7 +23,7 @@ export default class Utils { static sleep(time) { return new Promise((resolve, reject) => { setTimeout(() => { - resolve() + resolve(reject) }, time) }).then(() => { console.info(`sleep ${time} over...`) @@ -76,6 +75,8 @@ export default class Utils { x: downX, y: downY, type: TouchType.Down, + screenX: 0, + screenY: 1, } console.info('down touch started: ' + JSON.stringify(downPonit)) sendTouchEvent(downPonit); @@ -88,7 +89,9 @@ export default class Utils { id: 1, x: downX + (xStep * i), y: downY + (yStep * i), - type: TouchType.Move + type: TouchType.Move, + screenX: 0, + screenY: 1, } console.info('move touch started: ' + JSON.stringify(movePoint)) ret = sendTouchEvent(movePoint) @@ -106,6 +109,8 @@ export default class Utils { x: upX, y: upY, type: TouchType.Up, + screenX: 0, + screenY: 1, } console.info('up touch started: ' + JSON.stringify(upPoint)) sendTouchEvent(upPoint) @@ -123,8 +128,4 @@ export default class Utils { console.info("Get Interface duration: " + duration); return duration; } -} - - - - +} \ No newline at end of file diff --git a/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsfreeinstallstartabilityforresultstagetest/entry/src/main/ets/pages/index.ets b/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsfreeinstallstartabilityforresultstagetest/entry/src/main/ets/pages/index.ets index 3826d4124..e4f5fddd4 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsfreeinstallstartabilityforresultstagetest/entry/src/main/ets/pages/index.ets +++ b/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsfreeinstallstartabilityforresultstagetest/entry/src/main/ets/pages/index.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsfreeinstallstartabilityforresultstagetest/entry/src/main/ets/test/StartAbilityForResult.ets b/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsfreeinstallstartabilityforresultstagetest/entry/src/main/ets/test/StartAbilityForResult.ets index 3eb0e037d..525be4fcb 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsfreeinstallstartabilityforresultstagetest/entry/src/main/ets/test/StartAbilityForResult.ets +++ b/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsfreeinstallstartabilityforresultstagetest/entry/src/main/ets/test/StartAbilityForResult.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsstartabilityforresultnotargetbundleliststagetest/entry/src/main/ets/pages/index.ets b/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsstartabilityforresultnotargetbundleliststagetest/entry/src/main/ets/pages/index.ets index 24a615244..033d4482b 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsstartabilityforresultnotargetbundleliststagetest/entry/src/main/ets/pages/index.ets +++ b/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsstartabilityforresultnotargetbundleliststagetest/entry/src/main/ets/pages/index.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsstartabilityforresultnotargetbundleliststagetest/entry/src/main/ets/test/StartAbilityForResult.ets b/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsstartabilityforresultnotargetbundleliststagetest/entry/src/main/ets/test/StartAbilityForResult.ets index 0854f5d1f..a9609dd37 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsstartabilityforresultnotargetbundleliststagetest/entry/src/main/ets/test/StartAbilityForResult.ets +++ b/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsstartabilityforresultnotargetbundleliststagetest/entry/src/main/ets/test/StartAbilityForResult.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/pages/index.ets b/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/pages/index.ets index cf044dab7..632b83a18 100644 --- a/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/pages/index.ets +++ b/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/pages/index.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/pages/second.ets b/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/pages/second.ets index d5b979d2f..d80628c92 100644 --- a/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/pages/second.ets +++ b/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/pages/second.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/test/StartAbilityTest.ets b/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/test/StartAbilityTest.ets index 22757545e..a56b2aa2d 100644 --- a/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/test/StartAbilityTest.ets +++ b/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/test/StartAbilityTest.ets @@ -1,6 +1,3 @@ -// @ts-nocheck - - /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsstartabilitynotargetbundleliststagetest/entry/src/main/ets/pages/index.ets b/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsstartabilitynotargetbundleliststagetest/entry/src/main/ets/pages/index.ets index ac8ffd4da..fbc1488ca 100644 --- a/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsstartabilitynotargetbundleliststagetest/entry/src/main/ets/pages/index.ets +++ b/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsstartabilitynotargetbundleliststagetest/entry/src/main/ets/pages/index.ets @@ -1,5 +1,3 @@ -// @ts-nocheck - /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsstartabilitynotargetbundleliststagetest/entry/src/main/ets/test/StartAbilityTest.ets b/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsstartabilitynotargetbundleliststagetest/entry/src/main/ets/test/StartAbilityTest.ets index 0885d2aca..a66291b36 100644 --- a/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsstartabilitynotargetbundleliststagetest/entry/src/main/ets/test/StartAbilityTest.ets +++ b/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsstartabilitynotargetbundleliststagetest/entry/src/main/ets/test/StartAbilityTest.ets @@ -1,5 +1,3 @@ -// @ts-nocheck - /** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/non_concurrent/acts_systemappa_test/entry/src/main/ets/test/AbilityPermission.test.ets b/ability/ability_runtime/non_concurrent/acts_systemappa_test/entry/src/main/ets/test/AbilityPermission.test.ets index 552a99bcb..23b6d64de 100644 --- a/ability/ability_runtime/non_concurrent/acts_systemappa_test/entry/src/main/ets/test/AbilityPermission.test.ets +++ b/ability/ability_runtime/non_concurrent/acts_systemappa_test/entry/src/main/ets/test/AbilityPermission.test.ets @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// @ts-nocheck import osaccount from '@ohos.account.osAccount' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium" import commonEvent from '@ohos.commonEvent' diff --git a/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility1_pages.ets b/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility1_pages.ets index cd58b54c8..3a676f1f5 100644 --- a/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility1_pages.ets +++ b/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility1_pages.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility2_pages.ets b/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility2_pages.ets index 22622e435..dd412a1c9 100644 --- a/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility2_pages.ets +++ b/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility2_pages.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility4_pages.ets b/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility4_pages.ets index c64d72d2f..bca7279f8 100644 --- a/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility4_pages.ets +++ b/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility4_pages.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility5_pages.ets b/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility5_pages.ets index 5f6831fe3..0ad9b1b9d 100644 --- a/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility5_pages.ets +++ b/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility5_pages.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility6_pages.ets b/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility6_pages.ets index a87efdbed..cabd575e5 100644 --- a/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility6_pages.ets +++ b/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility6_pages.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility7_pages.ets b/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility7_pages.ets index a4de25428..9a5e1c5b6 100644 --- a/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility7_pages.ets +++ b/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility7_pages.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets b/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets index b2da5c11f..2796b8748 100644 --- a/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets +++ b/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/test/LifecycleTest.ets b/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/test/LifecycleTest.ets index d24f150fb..dd0e02bc8 100644 --- a/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/test/LifecycleTest.ets +++ b/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/test/LifecycleTest.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/MainAbility/pages/index.ets index c73003d9e..609f9351e 100644 --- a/ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/MainAbility/pages/index.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets b/ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets index 1e84d94fb..ce1662b7e 100644 --- a/ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets +++ b/ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -62,7 +61,7 @@ export default function lifecycleTest() { }); var TAG = ""; - var listKeyTemp = "" + var listKeyTemp; var tempCallbackId; function sleep(time) { diff --git a/ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/test/Test.ets b/ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/test/Test.ets index 2e2d8152b..58cb0362d 100644 --- a/ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/test/Test.ets +++ b/ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/test/Test.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility1_pages.ets b/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility1_pages.ets index cd58b54c8..3a676f1f5 100755 --- a/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility1_pages.ets +++ b/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility1_pages.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility2_pages.ets b/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility2_pages.ets index 22622e435..dd412a1c9 100755 --- a/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility2_pages.ets +++ b/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility2_pages.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility4_pages.ets b/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility4_pages.ets index c64d72d2f..bca7279f8 100755 --- a/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility4_pages.ets +++ b/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility4_pages.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility5_pages.ets b/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility5_pages.ets index 5f6831fe3..0ad9b1b9d 100755 --- a/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility5_pages.ets +++ b/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility5_pages.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility6_pages.ets b/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility6_pages.ets index a87efdbed..cabd575e5 100755 --- a/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility6_pages.ets +++ b/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility6_pages.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility7_pages.ets b/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility7_pages.ets index a4de25428..9a5e1c5b6 100755 --- a/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility7_pages.ets +++ b/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility7_pages.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets b/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets index b2da5c11f..2796b8748 100755 --- a/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets +++ b/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/test/LifecycleTest.ets b/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/test/LifecycleTest.ets index f235c47d5..851136dfc 100755 --- a/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/test/LifecycleTest.ets +++ b/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/test/LifecycleTest.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actswindowstagelifecyclesinglehaptest/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/stage/actswindowstagelifecyclesinglehaptest/entry/src/main/ets/MainAbility/pages/index.ets index c73003d9e..609f9351e 100755 --- a/ability/ability_runtime/stage/actswindowstagelifecyclesinglehaptest/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/stage/actswindowstagelifecyclesinglehaptest/entry/src/main/ets/MainAbility/pages/index.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ability/ability_runtime/stage/actswindowstagelifecyclesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets b/ability/ability_runtime/stage/actswindowstagelifecyclesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets index 52691b5b2..b63c9f502 100755 --- a/ability/ability_runtime/stage/actswindowstagelifecyclesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets +++ b/ability/ability_runtime/stage/actswindowstagelifecyclesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets @@ -1,4 +1,3 @@ -// @ts-nocheck /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -62,7 +61,7 @@ export default function lifecycleTest() { }); var TAG = ""; - var listKeyTemp = "" + var listKeyTemp; var tempCallbackId; function sleep(time) { -- GitLab