From 26fe850516569dedcc2e57c43fe9ade0d3ba9d9e Mon Sep 17 00:00:00 2001 From: ywx1211260 Date: Mon, 9 Jan 2023 19:29:10 +0800 Subject: [PATCH] revise_file_18 Signed-off-by: ywx1211260 --- .../entry/src/main/ets/test/alphabetIndexer.test.ets | 2 +- .../entry/src/main/ets/test/ImageJsunit.test.ets | 4 ++-- .../entry/src/main/ets/MainAbility/pages/button.ets | 2 +- arkui/ace_ets_component_two/Test.json | 4 +++- arkui/ace_js_attribute_api/Test.json | 3 ++- arkui/ace_standard_video/Test.json | 3 ++- 6 files changed, 11 insertions(+), 7 deletions(-) diff --git a/arkui/ace_ets_component_apilack/entry/src/main/ets/test/alphabetIndexer.test.ets b/arkui/ace_ets_component_apilack/entry/src/main/ets/test/alphabetIndexer.test.ets index 896dea30e..bffd448cd 100644 --- a/arkui/ace_ets_component_apilack/entry/src/main/ets/test/alphabetIndexer.test.ets +++ b/arkui/ace_ets_component_apilack/entry/src/main/ets/test/alphabetIndexer.test.ets @@ -92,7 +92,7 @@ export default function alphabetIndexerOnSelectJsunit() { console.info("[testalphabetIndexerColor0003] component fontSize strJson:" + strJson); let obj = JSON.parse(strJson); expect(obj.$type).assertEqual('AlphabetIndexer'); - expect(obj.$attrs.color).assertEqual(undefined); + expect(obj.$attrs.color).assertEqual('#FFFF0000'); console.info("[testalphabetIndexerColor0003] color value :" + obj.$attrs.color); done(); }); diff --git a/arkui/ace_ets_component_four/entry/src/main/ets/test/ImageJsunit.test.ets b/arkui/ace_ets_component_four/entry/src/main/ets/test/ImageJsunit.test.ets index 8fd4a9ce5..3b298bc4f 100644 --- a/arkui/ace_ets_component_four/entry/src/main/ets/test/ImageJsunit.test.ets +++ b/arkui/ace_ets_component_four/entry/src/main/ets/test/ImageJsunit.test.ets @@ -66,12 +66,12 @@ export default function imageJsunit() { let obj = JSON.parse(strJson); console.info("imageTest_0200 obj.$attrs.src is: " + obj.$attrs.src); console.info("imageTest_0200 obj.obj.$type is: " + obj.$type); - var res = obj.$attrs.src.indexOf('rawfile/test.png'); + var res = obj.$attrs.src.indexOf('RAWFILE/test.png'); console.info("imageTest_0200 result is: " + res); var sres = obj.$attrs.src.slice(res, res + 16); console.info("imageTest_0200 slice result is: " + sres); expect(obj.$type).assertEqual('Image'); - expect(obj.$attrs.src.slice(res, res + 16)).assertEqual('rawfile/test.png'); + expect(obj.$attrs.src.slice(res, res + 16)).assertEqual('RAWFILE/test.png'); console.info('imageTest_0200 END'); done(); }); diff --git a/arkui/ace_ets_component_three/entry/src/main/ets/MainAbility/pages/button.ets b/arkui/ace_ets_component_three/entry/src/main/ets/MainAbility/pages/button.ets index 1c5ea7150..6fb068ebe 100644 --- a/arkui/ace_ets_component_three/entry/src/main/ets/MainAbility/pages/button.ets +++ b/arkui/ace_ets_component_three/entry/src/main/ets/MainAbility/pages/button.ets @@ -66,7 +66,7 @@ struct ButtonExample { Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Start, justifyContent: FlexAlign.SpaceBetween }) { Button('Ok', { type: this.buttonTypeValue, stateEffect: true }) .borderRadius(8).backgroundColor(0x317aff).width(90).key('button') - Button('ok').type(`${this.buttonTypeValue}`).key('button1') + Button('ok').type(this.buttonTypeValue).key('button1') .backgroundColor(0x317aff).width(90) Button('ok') .type(this.buttonTypeValue) diff --git a/arkui/ace_ets_component_two/Test.json b/arkui/ace_ets_component_two/Test.json index 37bc0626f..f4a4516e4 100644 --- a/arkui/ace_ets_component_two/Test.json +++ b/arkui/ace_ets_component_two/Test.json @@ -5,7 +5,9 @@ "test-timeout": "700000", "bundle-name": "com.open.harmony.acetesttwo", "package-name": "com.open.harmony.acetesttwo", - "shell-timeout": "700000" + "shell-timeout": "700000", + "testcase-timeout":"10000" + }, "kits": [ { diff --git a/arkui/ace_js_attribute_api/Test.json b/arkui/ace_js_attribute_api/Test.json index 5346e8a88..98bb2d19f 100644 --- a/arkui/ace_js_attribute_api/Test.json +++ b/arkui/ace_js_attribute_api/Test.json @@ -5,7 +5,8 @@ "test-timeout": "1000000", "shell-timeout": "1000000", "bundle-name": "com.example.acejsapi", - "package-name": "com.example.acejsapi" + "package-name": "com.example.acejsapi", + "testcase-timeout":"10000" }, "kits": [ { diff --git a/arkui/ace_standard_video/Test.json b/arkui/ace_standard_video/Test.json index 4a8190455..b0709ae81 100644 --- a/arkui/ace_standard_video/Test.json +++ b/arkui/ace_standard_video/Test.json @@ -5,7 +5,8 @@ "test-timeout": "1000000", "shell-timeout": "1000000", "bundle-name": "com.example.acevideo", - "package-name": "com.example.acevideo" + "package-name": "com.example.acevideo", + "testcase-timeout":"10000" }, "kits": [ { -- GitLab