From 0027f657b405902ae1a67c4cbe2108a5c4748485 Mon Sep 17 00:00:00 2001 From: xiongwei Date: Fri, 5 Aug 2022 20:42:45 +0800 Subject: [PATCH] Fix effectKit's xts test compilation error Signed-off-by: xiongwei --- .../effectKit/entry/src/main/ets/MainAbility/MainAbility.ts | 1 - graphic/effectKit/entry/src/main/ets/pages/index/index.ets | 4 ++-- graphic/effectKit/entry/src/main/ets/test/List.test.ets | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/graphic/effectKit/entry/src/main/ets/MainAbility/MainAbility.ts b/graphic/effectKit/entry/src/main/ets/MainAbility/MainAbility.ts index ed9de5ac3..8b12c6e3c 100644 --- a/graphic/effectKit/entry/src/main/ets/MainAbility/MainAbility.ts +++ b/graphic/effectKit/entry/src/main/ets/MainAbility/MainAbility.ts @@ -16,7 +16,6 @@ export default class MainAbility extends Ability { // Main window is created, set main page for this ability console.log("[Demo] MainAbility onWindowStageCreate windowStage="+ windowStage) globalThis.windowStage = windowStage - globalThis.abilityStorage = this.storage globalThis.abilityContext = this.context windowStage.setUIContent(this.context, "pages/index/index", null) } diff --git a/graphic/effectKit/entry/src/main/ets/pages/index/index.ets b/graphic/effectKit/entry/src/main/ets/pages/index/index.ets index b2523a0a1..610c8424b 100644 --- a/graphic/effectKit/entry/src/main/ets/pages/index/index.ets +++ b/graphic/effectKit/entry/src/main/ets/pages/index/index.ets @@ -14,8 +14,8 @@ */ import file from '@system.file'; -import {Core, ExpectExtend, InstrumentLog, ReportExtend} from "deccjsunit/index.ets" -import testsuite from "../../test/List.test.ets" +import {Core, ExpectExtend, InstrumentLog, ReportExtend} from "deccjsunit/index" +import testsuite from "../../test/List.test" @Entry diff --git a/graphic/effectKit/entry/src/main/ets/test/List.test.ets b/graphic/effectKit/entry/src/main/ets/test/List.test.ets index 02fcdcb19..fa74eac51 100644 --- a/graphic/effectKit/entry/src/main/ets/test/List.test.ets +++ b/graphic/effectKit/entry/src/main/ets/test/List.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import effectKitTest from './effectKit.test.ets' +import effectKitTest from './effectKit.test' export default function testsuite(context, windowStage, abilityStorage) { effectKitTest() -- GitLab