diff --git a/arkui/ace_ets_components_ux/ace_ets_component_badge/src/main/ets/TestAbility/pages/Index.ets b/arkui/ace_ets_components_ux/ace_ets_component_badge/src/main/ets/TestAbility/pages/Index.ets index 45940cc054d01b85d3e296fada57a29058717c38..02b0977e5ab0372d5887cd2b62f4a2441bda68af 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_badge/src/main/ets/TestAbility/pages/Index.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_badge/src/main/ets/TestAbility/pages/Index.ets @@ -370,6 +370,7 @@ struct badgeTest { .width(200).height(50).backgroundColor(0x317aff) } .key("ArkUX_Stage_Badge_BorderColor_0600").height(20) + .backgroundColor($r("sys.color.ohos_id_color_badge_red")) .margin({ top: 10 }) @@ -387,6 +388,7 @@ struct badgeTest { .width(200).height(50).backgroundColor(0x317aff) } .key("ArkUX_Stage_Badge_BorderColor_0700").height(20) + .backgroundColor($r("sys.color.ohos_id_color_badge_red")) .margin({ top: 10 }) @@ -404,6 +406,7 @@ struct badgeTest { .width(200).height(50).backgroundColor(0x317aff) } .key("ArkUX_Stage_Badge_BorderColor_0800").height(20) + .backgroundColor($r("sys.color.ohos_id_color_badge_red")) .margin({ top: 10 }) @@ -439,6 +442,7 @@ struct badgeTest { }) .width(200).height(50).backgroundColor(0x317aff) } + .backgroundColor($r("sys.color.ohos_id_color_badge_red")) .key("ArkUX_Stage_Badge_BorderColor_1000").height(20) .margin({ top: 10 @@ -457,6 +461,7 @@ struct badgeTest { }) .width(200).height(50).backgroundColor(0x317aff) } + .backgroundColor($r("sys.color.ohos_id_color_badge_red")) .key("ArkUX_Stage_Badge_BorderColor_1100").height(20) .margin({ top: 10 @@ -705,6 +710,7 @@ struct badgeTest { .width(200).height(50).backgroundColor(0x317aff) } .key("ArkUX_Stage_Badge_BorderWidth_1300").height(20) + .backgroundColor($r("sys.color.ohos_id_color_badge_red")) .margin({ top: 10 }) diff --git a/arkui/ace_ets_components_ux/ace_ets_component_badge/src/main/ets/test/badge.ets b/arkui/ace_ets_components_ux/ace_ets_component_badge/src/main/ets/test/badge.ets index c83d58bbd0cc124b31d4413febd50fa3111ce2a6..68046eabbf2b23ef8c530cf6c2a8a4588e470456 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_badge/src/main/ets/test/badge.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_badge/src/main/ets/test/badge.ets @@ -635,7 +635,7 @@ export default function badgeTest() { console.info("ArkUX_Stage_Badge_BorderColor_0600 component obj.$attrs.style is: " + JSON.stringify(obj.$attrs.style)); let style = JSON.parse(obj.$attrs.style); - expect(style.borderColor).assertEqual("#FFFA2A2D"); + expect(style.borderColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_Badge_BorderColor_0600 END '); done(); } catch (err) { @@ -663,7 +663,7 @@ export default function badgeTest() { console.info("ArkUX_Stage_Badge_BorderColor_0700 component obj.$attrs.style is: " + JSON.stringify(obj.$attrs.style)); let style = JSON.parse(obj.$attrs.style); - expect(style.borderColor).assertEqual("#FFFA2A2D"); + expect(style.borderColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_Badge_BorderColor_0700 END '); done(); } catch (err) { @@ -691,7 +691,7 @@ export default function badgeTest() { console.info("ArkUX_Stage_Badge_BorderColor_0800 component obj.$attrs.style is: " + JSON.stringify(obj.$attrs.style)); let style = JSON.parse(obj.$attrs.style); - expect(style.borderColor).assertEqual("#FFFA2A2D"); + expect(style.borderColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_Badge_BorderColor_0800 END '); done(); } catch (err) { @@ -749,7 +749,7 @@ export default function badgeTest() { console.info("ArkUX_Stage_Badge_BorderColor_0900 component obj.$attrs.style is: " + JSON.stringify(obj.$attrs.style)); let style = JSON.parse(obj.$attrs.style); - expect(style.borderColor).assertEqual("#FFFA2A2D"); + expect(style.borderColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_Badge_BorderColor_1000 END '); done(); } catch (err) { @@ -777,7 +777,7 @@ export default function badgeTest() { console.info("ArkUX_Stage_Badge_BorderColor_1100 component obj.$attrs.style is: " + JSON.stringify(obj.$attrs.style)); let style = JSON.parse(obj.$attrs.style); - expect(style.borderColor).assertEqual("#FFFA2A2D"); + expect(style.borderColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_Badge_BorderColor_1100 END '); done(); } catch (err) { @@ -1177,7 +1177,7 @@ export default function badgeTest() { let style = JSON.parse(obj.$attrs.style); expect(style.borderWidth).assertEqual("1.00vp"); expect(style.fontWeight).assertEqual("FontWeight.Normal"); - expect(style.borderColor).assertEqual("#FFFA2A2D"); + expect(style.borderColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_Badge_BorderWidth_1300 END '); done(); } catch (err) { diff --git a/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/TestAbility/pages/CheckBox.ets b/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/TestAbility/pages/CheckBox.ets index b2ff24e6c28785d59e839f0dcf06b91a9298858e..8c3d3e105ebbb799f754b289f9caadf2ab79cb39 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/TestAbility/pages/CheckBox.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/TestAbility/pages/CheckBox.ets @@ -82,6 +82,7 @@ struct checkBoxTest { ListItem(){ Checkbox({name: 'checkbox6', group: 'checkboxGroup2'}) .key("ArkUX_Stage_Checkbox_unselectedColor_0600") + .backgroundColor($r("sys.color.ohos_id_color_switch_outline_off")) .select(false) .selectedColor(0xed6f21) .unselectedColor("") @@ -92,6 +93,7 @@ struct checkBoxTest { ListItem(){ Checkbox({name: 'checkbox7', group: 'checkboxGroup3'}) .key("ArkUX_Stage_Checkbox_unselectedColor_0700") + .backgroundColor($r("sys.color.ohos_id_color_switch_outline_off")) .select(false) .selectedColor(0xed6f21) .unselectedColor(null) @@ -102,6 +104,7 @@ struct checkBoxTest { ListItem(){ Checkbox({name: 'checkbox8', group: 'checkboxGroup3'}) .key("ArkUX_Stage_Checkbox_unselectedColor_0800") + .backgroundColor($r("sys.color.ohos_id_color_switch_outline_off")) .select(false) .selectedColor(0xed6f21) .unselectedColor(undefined) @@ -123,6 +126,7 @@ struct checkBoxTest { ListItem(){ Checkbox({name: 'checkbox10', group: 'checkboxGroup13'}) .key("ArkUX_Stage_Checkbox_unselectedColor_1000") + .backgroundColor($r("sys.color.ohos_id_color_switch_outline_off")) .select(false) .selectedColor(0xed6f21) .unselectedColor(Color.Pink) @@ -134,6 +138,7 @@ struct checkBoxTest { ListItem(){ Checkbox({name: 'checkbox11', group: 'checkboxGroup13'}) .key("ArkUX_Stage_Checkbox_unselectedColor_1100") + .backgroundColor($r("sys.color.ohos_id_color_switch_outline_off")) .select(false) .selectedColor(0xed6f21) .unselectedColor('bgr(138,43,226)') @@ -205,6 +210,7 @@ struct checkBoxTest { ListItem(){ Checkbox({name: 'checkbox18', group: 'checkboxGroup15'}) .key("ArkUX_Stage_Checkbox_CheckMarkColor_0600") + .backgroundColor($r("sys.color.ohos_id_color_foreground_contrary")) .select(true) .selectedColor(0xed6f21) .mark({strokeColor:""}) @@ -215,6 +221,7 @@ struct checkBoxTest { ListItem(){ Checkbox({name: 'checkbox19', group: 'checkboxGroup25'}) .key("ArkUX_Stage_Checkbox_CheckMarkColor_0700") + .backgroundColor($r("sys.color.ohos_id_color_foreground_contrary")) .select(true) .selectedColor(0xed6f21) .mark({strokeColor:null}) @@ -225,6 +232,7 @@ struct checkBoxTest { ListItem(){ Checkbox({name: 'checkbox20', group: 'checkboxGroup25'}) .key("ArkUX_Stage_Checkbox_CheckMarkColor_0800") + .backgroundColor($r("sys.color.ohos_id_color_foreground_contrary")) .select(true) .selectedColor(0xed6f21) .mark({strokeColor:undefined}) @@ -246,6 +254,7 @@ struct checkBoxTest { ListItem(){ Checkbox({name: 'checkbox22', group: 'checkboxGroup26'}) .key("ArkUX_Stage_Checkbox_CheckMarkColor_1000") + .backgroundColor($r("sys.color.ohos_id_color_foreground_contrary")) .select(true) .selectedColor(0xed6f21) .mark({strokeColor:Color.Pink}) @@ -257,6 +266,7 @@ struct checkBoxTest { ListItem(){ Checkbox({name: 'checkbox23', group: 'checkboxGroup26'}) .key("ArkUX_Stage_Checkbox_CheckMarkColor_1100") + .backgroundColor($r("sys.color.ohos_id_color_foreground_contrary")) .select(true) .selectedColor(0xed6f21) .mark({strokeColor:'bgr(138,43,226)'}) diff --git a/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/TestAbility/pages/CheckBoxGroup.ets b/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/TestAbility/pages/CheckBoxGroup.ets index 31bd593f5b87c22505a8fc897203a597eafd9ec1..0fe524cf8cdb1722450009f576de5409ac43a09c 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/TestAbility/pages/CheckBoxGroup.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/TestAbility/pages/CheckBoxGroup.ets @@ -97,6 +97,7 @@ struct checkBoxTest { ListItem(){ CheckboxGroup({group: 'checkboxGroup6'}) .key("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0600") + .backgroundColor($r("sys.color.ohos_id_color_foreground_contrary")) .selectedColor(0xed6f21) .mark({strokeColor:""}) .onChange((value: boolean) => { @@ -106,6 +107,7 @@ struct checkBoxTest { ListItem(){ CheckboxGroup({group: 'checkboxGroup7'}) .key("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0700") + .backgroundColor($r("sys.color.ohos_id_color_foreground_contrary")) .selectedColor(0xed6f21) .mark({strokeColor:null}) .onChange((value: boolean) => { @@ -115,6 +117,7 @@ struct checkBoxTest { ListItem(){ CheckboxGroup({group: 'checkboxGroup8'}) .key("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0800") + .backgroundColor($r("sys.color.ohos_id_color_foreground_contrary")) .selectedColor(0xed6f21) .mark({strokeColor:undefined}) .onChange((value: boolean) => { @@ -134,6 +137,7 @@ struct checkBoxTest { ListItem(){ CheckboxGroup({group: 'checkboxGroup10'}) .key("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1000") + .backgroundColor($r("sys.color.ohos_id_color_foreground_contrary")) .selectedColor(0xed6f21) .mark({strokeColor:Color.Pink}) .mark({strokeColor:'bgr(138,43,226)'}) @@ -144,6 +148,7 @@ struct checkBoxTest { ListItem(){ CheckboxGroup({group: 'checkboxGroup11'}) .key("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1100") + .backgroundColor($r("sys.color.ohos_id_color_foreground_contrary")) .selectedColor(0xed6f21) .mark({strokeColor:'bgr(138,43,226)'}) .onChange((value: boolean) => { @@ -468,6 +473,7 @@ struct checkBoxTest { ListItem(){ CheckboxGroup({group: 'checkboxGroup43'}) .key("ArkUX_Stage_CheckboxGroup_unselectedColor_0600") + .backgroundColor($r("sys.color.ohos_id_color_switch_outline_off")) .selectedColor(0xed6f21) .unselectedColor("") .onChange((value: boolean) => { @@ -477,6 +483,7 @@ struct checkBoxTest { ListItem(){ CheckboxGroup({group: 'checkboxGroup44'}) .key("ArkUX_Stage_CheckboxGroup_unselectedColor_0700") + .backgroundColor($r("sys.color.ohos_id_color_switch_outline_off")) .selectedColor(0xed6f21) .unselectedColor(null) .onChange((value: boolean) => { @@ -486,6 +493,7 @@ struct checkBoxTest { ListItem(){ CheckboxGroup({group: 'checkboxGroup45'}) .key("ArkUX_Stage_CheckboxGroup_unselectedColor_0800") + .backgroundColor($r("sys.color.ohos_id_color_switch_outline_off")) .selectedColor(0xed6f21) .unselectedColor(undefined) .onChange((value: boolean) => { @@ -505,6 +513,7 @@ struct checkBoxTest { ListItem(){ CheckboxGroup({group: 'checkboxGroup47'}) .key("ArkUX_Stage_CheckboxGroup_unselectedColor_1000") + .backgroundColor($r("sys.color.ohos_id_color_switch_outline_off")) .selectedColor(0xed6f21) .unselectedColor(Color.Pink) .unselectedColor(undefined) @@ -515,6 +524,7 @@ struct checkBoxTest { ListItem(){ CheckboxGroup({group: 'checkboxGroup48'}) .key("ArkUX_Stage_CheckboxGroup_unselectedColor_1100") + .backgroundColor($r("sys.color.ohos_id_color_switch_outline_off")) .selectedColor(0xed6f21) .unselectedColor('bgr(138,43,226)') .onChange((value: boolean) => { @@ -543,7 +553,9 @@ struct checkBoxTest { ListItem(){ CheckboxGroup({group: 'checkboxGroupNO'}) .key("checkboxGroupNO") + .backgroundColor($r("sys.color.ohos_id_color_switch_outline_off")) .selectedColor(0xed6f21) + .borderColor($r("sys.color.ohos_id_color_foreground_contrary")) .onChange((value: boolean) => { console.info('Checkbox1 change is'+ value) }) @@ -551,6 +563,8 @@ struct checkBoxTest { ListItem(){ Checkbox({name: 'checkbox3', group: 'checkboxGroupNO'}) .key("checkboxNO") + .backgroundColor($r("sys.color.ohos_id_color_switch_outline_off")) + .borderColor($r("sys.color.ohos_id_color_foreground_contrary")) .select(true) .selectedColor(0xed6f21) .onChange((value: boolean) => { diff --git a/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/test/checkBox.ets b/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/test/checkBox.ets index 1b94e0bd16b429d8e97df255ebb328a64ade60c0..e3867fc9599ebdf52d1abf7bb9f1fa98e34ec703 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/test/checkBox.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/test/checkBox.ets @@ -190,7 +190,7 @@ export default function checkBoxTest() { JSON.stringify(obj.$attrs)); console.info("ArkUX_Stage_Checkbox_unselectedColor_0600 component obj.$attrs.unselectedColor is: " + JSON.stringify(obj.$attrs.unselectedColor)); - expect(obj.$attrs.unselectedColor).assertEqual("#66182431"); + expect(obj.$attrs.unselectedColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_Checkbox_unselectedColor_0600 END '); } catch (err) { expect().assertFail(); @@ -217,7 +217,7 @@ export default function checkBoxTest() { JSON.stringify(obj.$attrs)); console.info("ArkUX_Stage_Checkbox_unselectedColor_0700 component obj.$attrs.unselectedColor is: " + JSON.stringify(obj.$attrs.unselectedColor)); - expect(obj.$attrs.unselectedColor).assertEqual("#66182431"); + expect(obj.$attrs.unselectedColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_Checkbox_unselectedColor_0700 END '); } catch (err) { expect().assertFail(); @@ -244,7 +244,7 @@ export default function checkBoxTest() { JSON.stringify(obj.$attrs)); console.info("ArkUX_Stage_Checkbox_unselectedColor_0800 component obj.$attrs.unselectedColor is: " + JSON.stringify(obj.$attrs.unselectedColor)); - expect(obj.$attrs.unselectedColor).assertEqual("#66182431"); + expect(obj.$attrs.unselectedColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_Checkbox_unselectedColor_0800 END '); } catch (err) { expect().assertFail(); @@ -300,7 +300,7 @@ export default function checkBoxTest() { JSON.stringify(obj.$attrs)); console.info("ArkUX_Stage_Checkbox_unselectedColor_1000 component obj.$attrs.unselectedColor is: " + JSON.stringify(obj.$attrs.unselectedColor)); - expect(obj.$attrs.unselectedColor).assertEqual("#66182431"); + expect(obj.$attrs.unselectedColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_Checkbox_unselectedColor_1000 END '); } catch (err) { expect().assertFail(); @@ -327,7 +327,7 @@ export default function checkBoxTest() { JSON.stringify(obj.$attrs)); console.info("ArkUX_Stage_Checkbox_unselectedColor_1100 component obj.$attrs.unselectedColor is: " + JSON.stringify(obj.$attrs.unselectedColor)); - expect(obj.$attrs.unselectedColor).assertEqual("#66182431"); + expect(obj.$attrs.unselectedColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_Checkbox_unselectedColor_1100 END '); } catch (err) { expect().assertFail(); @@ -541,7 +541,7 @@ export default function checkBoxTest() { console.info("ArkUX_Stage_Checkbox_CheckMarkColor_0600 component markObj is: " + JSON.stringify(markObj)); console.info("ArkUX_Stage_Checkbox_CheckMarkColor_0600 component markObj.strokeColor is: " + JSON.stringify(markObj.strokeColor)); - expect(markObj.strokeColor).assertEqual("#FFFFFFFF"); + expect(markObj.strokeColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_Checkbox_CheckMarkColor_0600 END '); } catch (err) { expect().assertFail(); @@ -572,7 +572,7 @@ export default function checkBoxTest() { console.info("ArkUX_Stage_Checkbox_CheckMarkColor_0700 component markObj is: " + JSON.stringify(markObj)); console.info("ArkUX_Stage_Checkbox_CheckMarkColor_0700 component markObj.strokeColor is: " + JSON.stringify(markObj.strokeColor)); - expect(markObj.strokeColor).assertEqual("#FFFFFFFF"); + expect(markObj.strokeColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_Checkbox_CheckMarkColor_0700 END '); } catch (err) { expect().assertFail(); @@ -603,7 +603,7 @@ export default function checkBoxTest() { console.info("ArkUX_Stage_Checkbox_CheckMarkColor_0800 component markObj is: " + JSON.stringify(markObj)); console.info("ArkUX_Stage_Checkbox_CheckMarkColor_0800 component markObj.strokeColor is: " + JSON.stringify(markObj.strokeColor)); - expect(markObj.strokeColor).assertEqual("#FFFFFFFF"); + expect(markObj.strokeColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_Checkbox_CheckMarkColor_0800 END '); } catch (err) { expect().assertFail(); @@ -667,7 +667,7 @@ export default function checkBoxTest() { console.info("ArkUX_Stage_Checkbox_CheckMarkColor_1000 component markObj is: " + JSON.stringify(markObj)); console.info("ArkUX_Stage_Checkbox_CheckMarkColor_1000 component markObj.strokeColor is: " + JSON.stringify(markObj.strokeColor)); - expect(markObj.strokeColor).assertEqual("#FFFFFFFF"); + expect(markObj.strokeColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_Checkbox_CheckMarkColor_1000 END '); } catch (err) { expect().assertFail(); @@ -698,7 +698,7 @@ export default function checkBoxTest() { console.info("ArkUX_Stage_Checkbox_CheckMarkColor_1100 component markObj is: " + JSON.stringify(markObj)); console.info("ArkUX_Stage_Checkbox_CheckMarkColor_1100 component markObj.strokeColor is: " + JSON.stringify(markObj.strokeColor)); - expect(markObj.strokeColor).assertEqual("#FFFFFFFF"); + expect(markObj.strokeColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_Checkbox_CheckMarkColor_1100 END '); } catch (err) { expect().assertFail(); diff --git a/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/test/checkBoxGroup.ets b/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/test/checkBoxGroup.ets index 46c0f47d2c3791578b49aa230c5e21c17c242e20..61350aad294c316294f2f0935cedf1eb4c8caaca 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/test/checkBoxGroup.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/test/checkBoxGroup.ets @@ -190,7 +190,7 @@ export default function checkBoxGroupTest() { JSON.stringify(obj.$attrs)); console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0600 component obj.$attrs.unselectedColor is: " + JSON.stringify(obj.$attrs.unselectedColor)); - expect(obj.$attrs.unselectedColor).assertEqual("#66182431"); + expect(obj.$attrs.unselectedColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0600 END '); } catch (err) { expect().assertFail(); @@ -217,7 +217,7 @@ export default function checkBoxGroupTest() { JSON.stringify(obj.$attrs)); console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0700 component obj.$attrs.unselectedColor is: " + JSON.stringify(obj.$attrs.unselectedColor)); - expect(obj.$attrs.unselectedColor).assertEqual("#66182431"); + expect(obj.$attrs.unselectedColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0700 END '); } catch (err) { expect().assertFail(); @@ -244,7 +244,7 @@ export default function checkBoxGroupTest() { JSON.stringify(obj.$attrs)); console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0800 component obj.$attrs.unselectedColor is: " + JSON.stringify(obj.$attrs.unselectedColor)); - expect(obj.$attrs.unselectedColor).assertEqual("#66182431"); + expect(obj.$attrs.unselectedColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0800 END '); } catch (err) { expect().assertFail(); @@ -300,7 +300,7 @@ export default function checkBoxGroupTest() { JSON.stringify(obj.$attrs)); console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_1000 component obj.$attrs.unselectedColor is: " + JSON.stringify(obj.$attrs.unselectedColor)); - expect(obj.$attrs.unselectedColor).assertEqual("#66182431"); + expect(obj.$attrs.unselectedColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_1000 END '); } catch (err) { expect().assertFail(); @@ -327,7 +327,7 @@ export default function checkBoxGroupTest() { JSON.stringify(obj.$attrs)); console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_1100 component obj.$attrs.unselectedColor is: " + JSON.stringify(obj.$attrs.unselectedColor)); - expect(obj.$attrs.unselectedColor).assertEqual("#66182431"); + expect(obj.$attrs.unselectedColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_1100 END '); } catch (err) { expect().assertFail(); @@ -547,7 +547,7 @@ export default function checkBoxGroupTest() { JSON.stringify(markObj)); console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0600 component markObj.strokeColor is: " + JSON.stringify(markObj.strokeColor)); - expect(markObj.strokeColor).assertEqual("#FFFFFFFF"); + expect(markObj.strokeColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0600 END '); } catch (err) { expect().assertFail(); @@ -579,7 +579,7 @@ export default function checkBoxGroupTest() { JSON.stringify(markObj)); console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0700 component markObj.strokeColor is: " + JSON.stringify(markObj.strokeColor)); - expect(markObj.strokeColor).assertEqual("#FFFFFFFF"); + expect(markObj.strokeColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0700 END '); } catch (err) { expect().assertFail(); @@ -611,7 +611,7 @@ export default function checkBoxGroupTest() { JSON.stringify(markObj)); console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0800 component markObj.strokeColor is: " + JSON.stringify(markObj.strokeColor)); - expect(markObj.strokeColor).assertEqual("#FFFFFFFF"); + expect(markObj.strokeColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0800 END '); } catch (err) { expect().assertFail(); @@ -677,7 +677,7 @@ export default function checkBoxGroupTest() { JSON.stringify(markObj)); console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1000 component markObj.strokeColor is: " + JSON.stringify(markObj.strokeColor)); - expect(markObj.strokeColor).assertEqual("#FFFFFFFF"); + expect(markObj.strokeColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1000 END '); } catch (err) { expect().assertFail(); @@ -709,7 +709,7 @@ export default function checkBoxGroupTest() { JSON.stringify(markObj)); console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1100 component markObj.strokeColor is: " + JSON.stringify(markObj.strokeColor)); - expect(markObj.strokeColor).assertEqual("#FFFFFFFF"); + expect(markObj.strokeColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1100 END '); } catch (err) { expect().assertFail(); @@ -1655,8 +1655,8 @@ export default function checkBoxGroupTest() { let markObj = JSON.parse(obj.$attrs.mark); expect(markObj.strokeWidth).assertEqual("2.00vp"); expect(markObj.size).assertEqual("0.00vp"); - expect(markObj.strokeColor).assertEqual("#FFFFFFFF"); - expect(obj.$attrs.unselectedColor).assertEqual("#66182431"); + expect(markObj.strokeColor).assertEqual(obj.$attrs.borderColor); + expect(obj.$attrs.unselectedColor).assertEqual(obj.$attrs.backgroundColor); let strJsonGroup = getInspectorByKey('checkboxGroupNO'); console.info('ArkUX_Stage_CheckboxGroup_CheckMarkWidth_1500 strJsonGroup :' + JSON.stringify(strJsonGroup)); let objGroup = JSON.parse(strJsonGroup); @@ -1667,8 +1667,8 @@ export default function checkBoxGroupTest() { let markObjGroup = JSON.parse(objGroup.$attrs.mark); expect(markObjGroup.strokeWidth).assertEqual("2.00vp"); expect(markObjGroup.size).assertEqual("0.00vp"); - expect(markObjGroup.strokeColor).assertEqual("#FFFFFFFF"); - expect(objGroup.$attrs.unselectedColor).assertEqual("#66182431"); + expect(markObjGroup.strokeColor).assertEqual(obj.$attrs.borderColor); + expect(objGroup.$attrs.unselectedColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_CheckboxGroup_CheckMarkWidth_1500 END '); } catch (err) { expect().assertFail(); diff --git a/arkui/ace_ets_components_ux/ace_ets_component_datapanel/src/main/ets/TestAbility/pages/Index.ets b/arkui/ace_ets_components_ux/ace_ets_component_datapanel/src/main/ets/TestAbility/pages/Index.ets index 2f1e2a30c74e76be497328d4824618e8e9ec7505..1d29a81a4376b4bc1bb99bfefd34323a3edb1bbc 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_datapanel/src/main/ets/TestAbility/pages/Index.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_datapanel/src/main/ets/TestAbility/pages/Index.ets @@ -377,6 +377,7 @@ struct DatapanelTest { DataPanel({ values: [20, 10, 10], max: 80, type: DataPanelType.Circle }) .width(200) .height(200) + .borderColor($r("sys.color.ohos_id_color_subheading_separator")) .trackBackgroundColor('') .key("ArkUX_Stage_DataPanel_TrackBackgroundColor_0700") } @@ -384,6 +385,7 @@ struct DatapanelTest { DataPanel({ values: [20, 10, 10], max: 80, type: DataPanelType.Circle }) .width(200) .height(200) + .borderColor($r("sys.color.ohos_id_color_subheading_separator")) .trackBackgroundColor(null) .key("ArkUX_Stage_DataPanel_TrackBackgroundColor_0800") } @@ -391,6 +393,7 @@ struct DatapanelTest { DataPanel({ values: [20, 10, 10], max: 80, type: DataPanelType.Circle }) .width(200) .height(200) + .borderColor($r("sys.color.ohos_id_color_subheading_separator")) .trackBackgroundColor(undefined) .key("ArkUX_Stage_DataPanel_TrackBackgroundColor_0900") } @@ -398,6 +401,7 @@ struct DatapanelTest { DataPanel({ values: [20, 10, 10], max: 80, type: DataPanelType.Circle }) .width(200) .height(200) + .borderColor($r("sys.color.ohos_id_color_subheading_separator")) .trackBackgroundColor("#FF00FF00") .trackBackgroundColor(undefined) .key("ArkUX_Stage_DataPanel_TrackBackgroundColor_1000") @@ -406,6 +410,7 @@ struct DatapanelTest { DataPanel({ values: [20, 10, 10], max: 80, type: DataPanelType.Circle }) .width(200) .height(200) + .borderColor($r("sys.color.ohos_id_color_subheading_separator")) .trackBackgroundColor('color') .key("ArkUX_Stage_DataPanel_TrackBackgroundColor_1100") } @@ -585,27 +590,6 @@ struct DatapanelTest { $r("app.color.DataPanel_TrackShadow3")] }) .key("ArkUX_Stage_DataPanel_TrackShadow_1900") } - ListItem() { - DataPanel({ values: [20, 10, 10], max: 80, type: DataPanelType.Circle }) - .width(200) - .height(200) - .trackShadow({ colors: '' }) - .key("ArkUX_Stage_DataPanel_TrackShadow_2000") - } - ListItem() { - DataPanel({ values: [20, 10, 10], max: 80, type: DataPanelType.Circle }) - .width(200) - .height(200) - .trackShadow({ colors: null }) - .key("ArkUX_Stage_DataPanel_TrackShadow_2100") - } - ListItem() { - DataPanel({ values: [20, 10, 10], max: 80, type: DataPanelType.Circle }) - .width(200) - .height(200) - .trackShadow({ colors: undefined }) - .key("ArkUX_Stage_DataPanel_TrackShadow_2200") - } ListItem() { DataPanel({ values: [20, 10, 10], max: 80, type: DataPanelType.Circle }) .width(200) @@ -636,27 +620,6 @@ struct DatapanelTest { $r("app.color.DataPanel_TrackShadow8"), $r("app.color.DataPanel_TrackShadow9")]}) .key("ArkUX_Stage_DataPanel_TrackShadow_2600") } - ListItem() { - DataPanel({ values: [20, 10, 10], max: 80, type: DataPanelType.Circle }) - .width(200) - .height(200) - .trackShadow({ colors: '' }) - .key("ArkUX_Stage_DataPanel_TrackShadow_2700") - } - ListItem() { - DataPanel({ values: [20, 10, 10], max: 80, type: DataPanelType.Circle }) - .width(200) - .height(200) - .trackShadow({ colors: null }) - .key("ArkUX_Stage_DataPanel_TrackShadow_2800") - } - ListItem() { - DataPanel({ values: [20, 10, 10], max: 80, type: DataPanelType.Circle }) - .width(200) - .height(200) - .trackShadow({ colors: undefined }) - .key("ArkUX_Stage_DataPanel_TrackShadow_2900") - } ListItem() { DataPanel({ values: [20, 10, 10], max: 80, type: DataPanelType.Circle }) .width(200) @@ -686,27 +649,6 @@ struct DatapanelTest { $r("app.color.DataPanel_TrackShadow12")]}) .key("ArkUX_Stage_DataPanel_TrackShadow_3300") } - ListItem() { - DataPanel({ values: [20, 10, 10], max: 80, type: DataPanelType.Circle }) - .width(200) - .height(200) - .trackShadow({ colors: '' }) - .key("ArkUX_Stage_DataPanel_TrackShadow_3400") - } - ListItem() { - DataPanel({ values: [20, 10, 10], max: 80, type: DataPanelType.Circle }) - .width(200) - .height(200) - .trackShadow({ colors: null }) - .key("ArkUX_Stage_DataPanel_TrackShadow_3500") - } - ListItem() { - DataPanel({ values: [20, 10, 10], max: 80, type: DataPanelType.Circle }) - .width(200) - .height(200) - .trackShadow({ colors: undefined }) - .key("ArkUX_Stage_DataPanel_TrackShadow_3600") - } } } .width('100%') diff --git a/arkui/ace_ets_components_ux/ace_ets_component_datapanel/src/main/ets/test/datapanel.ets b/arkui/ace_ets_components_ux/ace_ets_component_datapanel/src/main/ets/test/datapanel.ets index 7be45e5645b569b19002e30e1e8fb717064d750d..50146c8cebabc78d043564a7a8a64139b1d80d17 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_datapanel/src/main/ets/test/datapanel.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_datapanel/src/main/ets/test/datapanel.ets @@ -1596,7 +1596,7 @@ export default function datapanelTest() { JSON.stringify(obj.$attrs)); console.info("ArkUX_Stage_DataPanel_TrackBackgroundColor_0700 component obj.$attrs.trackBackgroundColor is:" + JSON.stringify(obj.$attrs.trackBackgroundColor)); - expect(obj.$attrs.trackBackgroundColor).assertEqual('#08182431'); + expect(obj.$attrs.trackBackgroundColor).assertEqual(obj.$attrs.borderColor); console.info('ArkUX_Stage_DataPanel_TrackBackgroundColor_0700 END '); done(); } catch (err) { @@ -1624,7 +1624,7 @@ export default function datapanelTest() { JSON.stringify(obj.$attrs)); console.info("ArkUX_Stage_DataPanel_TrackBackgroundColor_0800 component obj.$attrs.trackBackgroundColor is:" + JSON.stringify(obj.$attrs.trackBackgroundColor)); - expect(obj.$attrs.trackBackgroundColor).assertEqual('#08182431'); + expect(obj.$attrs.trackBackgroundColor).assertEqual(obj.$attrs.borderColor); console.info('ArkUX_Stage_DataPanel_TrackBackgroundColor_0800 END '); done(); } catch (err) { @@ -1652,7 +1652,7 @@ export default function datapanelTest() { JSON.stringify(obj.$attrs)); console.info("ArkUX_Stage_DataPanel_TrackBackgroundColor_0900 component obj.$attrs.trackBackgroundColor is:" + JSON.stringify(obj.$attrs.trackBackgroundColor)); - expect(obj.$attrs.trackBackgroundColor).assertEqual('#08182431'); + expect(obj.$attrs.trackBackgroundColor).assertEqual(obj.$attrs.borderColor); console.info('ArkUX_Stage_DataPanel_TrackBackgroundColor_0900 END '); done(); } catch (err) { @@ -1681,7 +1681,7 @@ export default function datapanelTest() { JSON.stringify(obj.$attrs)); console.info("ArkUX_Stage_DataPanel_TrackBackgroundColor_1000 component obj.$attrs.trackBackgroundColor is:" + JSON.stringify(obj.$attrs.trackBackgroundColor)); - expect(obj.$attrs.trackBackgroundColor).assertEqual('#08182431'); + expect(obj.$attrs.trackBackgroundColor).assertEqual(obj.$attrs.borderColor); console.info('ArkUX_Stage_DataPanel_TrackBackgroundColor_1000 END '); done(); } catch (err) { @@ -1709,7 +1709,7 @@ export default function datapanelTest() { JSON.stringify(obj.$attrs)); console.info("ArkUX_Stage_DataPanel_TrackBackgroundColor_1100 component obj.$attrs.trackBackgroundColor is:" + JSON.stringify(obj.$attrs.trackBackgroundColor)); - expect(obj.$attrs.trackBackgroundColor).assertEqual('#08182431'); + expect(obj.$attrs.trackBackgroundColor).assertEqual(obj.$attrs.borderColor); console.info('ArkUX_Stage_DataPanel_TrackBackgroundColor_1100 END '); done(); } catch (err) { @@ -2454,201 +2454,6 @@ export default function datapanelTest() { }, 500) }); - /** - * @tc.number ArkUX_Stage_DataPanel_TrackShadow_2000 - * @tc.name Tests the trackShadow property of the DataPanel component - * @tc.desc DataPanel common components, set trackShadow property parameter to trackShadow.colors : '' - */ - it('ArkUX_Stage_DataPanel_TrackShadow_2000', 0, async function (done) { - console.info('ArkUX_Stage_DataPanel_TrackShadow_2000 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_DataPanel_TrackShadow_2000'); - console.info('ArkUX_Stage_DataPanel_TrackShadow_2000 strJson :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - let trackShadow = obj.$attrs.trackShadow; - console.info("ArkUX_Stage_DataPanel_TrackShadow_2000 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_DataPanel_TrackShadow_2000 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_DataPanel_TrackShadow_2000 component obj.$attrs.trackShadow is: " + - JSON.stringify(obj.$attrs.trackShadow)); - hilog.info(0x0000, 'testTag', '%{public}s', JSON.stringify(obj.$attrs.trackShadow.colors)); - expect(obj.$attrs.trackShadow.colors[0][0].color).assertEqual("#FFF7CE00"); - expect(obj.$attrs.trackShadow.colors[0][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[0][1].color).assertEqual("#FFF99B11"); - expect(obj.$attrs.trackShadow.colors[0][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[1][0].color).assertEqual("#FFF76223"); - expect(obj.$attrs.trackShadow.colors[1][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[1][1].color).assertEqual("#FFF2400A"); - expect(obj.$attrs.trackShadow.colors[1][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[2][0].color).assertEqual("#FFF772AC"); - expect(obj.$attrs.trackShadow.colors[2][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[2][1].color).assertEqual("#FFE65392"); - expect(obj.$attrs.trackShadow.colors[2][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[3][0].color).assertEqual("#FFA575EB"); - expect(obj.$attrs.trackShadow.colors[3][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[3][1].color).assertEqual("#FFA12DF7"); - expect(obj.$attrs.trackShadow.colors[3][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[4][0].color).assertEqual("#FF7B79F7"); - expect(obj.$attrs.trackShadow.colors[4][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[4][1].color).assertEqual("#FF4B48F7"); - expect(obj.$attrs.trackShadow.colors[4][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[5][0].color).assertEqual("#FF4B8AF3"); - expect(obj.$attrs.trackShadow.colors[5][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[5][1].color).assertEqual("#FF007DFF"); - expect(obj.$attrs.trackShadow.colors[5][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[6][0].color).assertEqual("#FF73C1E6"); - expect(obj.$attrs.trackShadow.colors[6][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[6][1].color).assertEqual("#FF4FB4E3"); - expect(obj.$attrs.trackShadow.colors[6][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[7][0].color).assertEqual("#FFA5D61D"); - expect(obj.$attrs.trackShadow.colors[7][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[7][1].color).assertEqual("#FF69D14F"); - expect(obj.$attrs.trackShadow.colors[7][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[8][0].color).assertEqual("#FFA2A2B0"); - expect(obj.$attrs.trackShadow.colors[8][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[8][1].color).assertEqual("#FF8E8E93"); - expect(obj.$attrs.trackShadow.colors[8][1].offset).assertEqual("1.000000"); - console.info('ArkUX_Stage_DataPanel_TrackShadow_2000 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_DataPanel_TrackShadow_2000 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); - - /** - * @tc.number ArkUX_Stage_DataPanel_TrackShadow_2100 - * @tc.name Tests the trackShadow property of the DataPanel component - * @tc.desc DataPanel common components, set trackShadow property parameter to trackShadow.colors : null - */ - it('ArkUX_Stage_DataPanel_TrackShadow_2100', 0, async function (done) { - console.info('ArkUX_Stage_DataPanel_TrackShadow_2100 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_DataPanel_TrackShadow_2100'); - console.info('ArkUX_Stage_DataPanel_TrackShadow_2100 strJson :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - let trackShadow = obj.$attrs.trackShadow; - console.info("ArkUX_Stage_DataPanel_TrackShadow_2100 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_DataPanel_TrackShadow_2100 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_DataPanel_TrackShadow_2100 component obj.$attrs.trackShadow is: " + - JSON.stringify(obj.$attrs.trackShadow)); - hilog.info(0x0000, 'testTag', '%{public}s', JSON.stringify(obj.$attrs.trackShadow.colors)); - expect(obj.$attrs.trackShadow.colors[0][0].color).assertEqual("#FFF7CE00"); - expect(obj.$attrs.trackShadow.colors[0][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[0][1].color).assertEqual("#FFF99B11"); - expect(obj.$attrs.trackShadow.colors[0][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[1][0].color).assertEqual("#FFF76223"); - expect(obj.$attrs.trackShadow.colors[1][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[1][1].color).assertEqual("#FFF2400A"); - expect(obj.$attrs.trackShadow.colors[1][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[2][0].color).assertEqual("#FFF772AC"); - expect(obj.$attrs.trackShadow.colors[2][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[2][1].color).assertEqual("#FFE65392"); - expect(obj.$attrs.trackShadow.colors[2][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[3][0].color).assertEqual("#FFA575EB"); - expect(obj.$attrs.trackShadow.colors[3][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[3][1].color).assertEqual("#FFA12DF7"); - expect(obj.$attrs.trackShadow.colors[3][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[4][0].color).assertEqual("#FF7B79F7"); - expect(obj.$attrs.trackShadow.colors[4][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[4][1].color).assertEqual("#FF4B48F7"); - expect(obj.$attrs.trackShadow.colors[4][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[5][0].color).assertEqual("#FF4B8AF3"); - expect(obj.$attrs.trackShadow.colors[5][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[5][1].color).assertEqual("#FF007DFF"); - expect(obj.$attrs.trackShadow.colors[5][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[6][0].color).assertEqual("#FF73C1E6"); - expect(obj.$attrs.trackShadow.colors[6][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[6][1].color).assertEqual("#FF4FB4E3"); - expect(obj.$attrs.trackShadow.colors[6][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[7][0].color).assertEqual("#FFA5D61D"); - expect(obj.$attrs.trackShadow.colors[7][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[7][1].color).assertEqual("#FF69D14F"); - expect(obj.$attrs.trackShadow.colors[7][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[8][0].color).assertEqual("#FFA2A2B0"); - expect(obj.$attrs.trackShadow.colors[8][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[8][1].color).assertEqual("#FF8E8E93"); - expect(obj.$attrs.trackShadow.colors[8][1].offset).assertEqual("1.000000"); - console.info('ArkUX_Stage_DataPanel_TrackShadow_2100 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_DataPanel_TrackShadow_2100 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); - - /** - * @tc.number ArkUX_Stage_DataPanel_TrackShadow_2200 - * @tc.name Tests the trackShadow property of the DataPanel component - * @tc.desc DataPanel common components, set trackShadow property parameter to trackShadow.colors : undefined - */ - it('ArkUX_Stage_DataPanel_TrackShadow_2200', 0, async function (done) { - console.info('ArkUX_Stage_DataPanel_TrackShadow_2200 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_DataPanel_TrackShadow_2200'); - console.info('ArkUX_Stage_DataPanel_TrackShadow_2200 strJson :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - let trackShadow = obj.$attrs.trackShadow; - console.info("ArkUX_Stage_DataPanel_TrackShadow_2200 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_DataPanel_TrackShadow_2200 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_DataPanel_TrackShadow_2200 component obj.$attrs.trackShadow is: " + - JSON.stringify(obj.$attrs.trackShadow)); - hilog.info(0x0000, 'testTag', '%{public}s', JSON.stringify(obj.$attrs.trackShadow.colors)); - expect(obj.$attrs.trackShadow.colors[0][0].color).assertEqual("#FFF7CE00"); - expect(obj.$attrs.trackShadow.colors[0][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[0][1].color).assertEqual("#FFF99B11"); - expect(obj.$attrs.trackShadow.colors[0][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[1][0].color).assertEqual("#FFF76223"); - expect(obj.$attrs.trackShadow.colors[1][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[1][1].color).assertEqual("#FFF2400A"); - expect(obj.$attrs.trackShadow.colors[1][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[2][0].color).assertEqual("#FFF772AC"); - expect(obj.$attrs.trackShadow.colors[2][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[2][1].color).assertEqual("#FFE65392"); - expect(obj.$attrs.trackShadow.colors[2][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[3][0].color).assertEqual("#FFA575EB"); - expect(obj.$attrs.trackShadow.colors[3][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[3][1].color).assertEqual("#FFA12DF7"); - expect(obj.$attrs.trackShadow.colors[3][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[4][0].color).assertEqual("#FF7B79F7"); - expect(obj.$attrs.trackShadow.colors[4][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[4][1].color).assertEqual("#FF4B48F7"); - expect(obj.$attrs.trackShadow.colors[4][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[5][0].color).assertEqual("#FF4B8AF3"); - expect(obj.$attrs.trackShadow.colors[5][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[5][1].color).assertEqual("#FF007DFF"); - expect(obj.$attrs.trackShadow.colors[5][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[6][0].color).assertEqual("#FF73C1E6"); - expect(obj.$attrs.trackShadow.colors[6][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[6][1].color).assertEqual("#FF4FB4E3"); - expect(obj.$attrs.trackShadow.colors[6][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[7][0].color).assertEqual("#FFA5D61D"); - expect(obj.$attrs.trackShadow.colors[7][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[7][1].color).assertEqual("#FF69D14F"); - expect(obj.$attrs.trackShadow.colors[7][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[8][0].color).assertEqual("#FFA2A2B0"); - expect(obj.$attrs.trackShadow.colors[8][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[8][1].color).assertEqual("#FF8E8E93"); - expect(obj.$attrs.trackShadow.colors[8][1].offset).assertEqual("1.000000"); - console.info('ArkUX_Stage_DataPanel_TrackShadow_2200 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_DataPanel_TrackShadow_2200 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); - /** * @tc.number ArkUX_Stage_DataPanel_TrackShadow_2300 * @tc.name Tests the trackShadow property of the DataPanel component @@ -2829,201 +2634,6 @@ export default function datapanelTest() { }, 500) }); - /** - * @tc.number ArkUX_Stage_DataPanel_TrackShadow_2700 - * @tc.name Tests the trackShadow property of the DataPanel component - * @tc.desc DataPanel common components, set trackShadow property parameter to trackShadow.colors : '' - */ - it('ArkUX_Stage_DataPanel_TrackShadow_2700', 0, async function (done) { - console.info('ArkUX_Stage_DataPanel_TrackShadow_2700 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_DataPanel_TrackShadow_2700'); - console.info('ArkUX_Stage_DataPanel_TrackShadow_2700 strJson :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - let trackShadow = obj.$attrs.trackShadow; - console.info("ArkUX_Stage_DataPanel_TrackShadow_2700 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_DataPanel_TrackShadow_2700 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_DataPanel_TrackShadow_2700 component obj.$attrs.trackShadow is: " + - JSON.stringify(obj.$attrs.trackShadow)); - hilog.info(0x0000, 'testTag', '%{public}s', JSON.stringify(obj.$attrs.trackShadow.colors)); - expect(obj.$attrs.trackShadow.colors[0][0].color).assertEqual("#FFF7CE00"); - expect(obj.$attrs.trackShadow.colors[0][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[0][1].color).assertEqual("#FFF99B11"); - expect(obj.$attrs.trackShadow.colors[0][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[1][0].color).assertEqual("#FFF76223"); - expect(obj.$attrs.trackShadow.colors[1][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[1][1].color).assertEqual("#FFF2400A"); - expect(obj.$attrs.trackShadow.colors[1][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[2][0].color).assertEqual("#FFF772AC"); - expect(obj.$attrs.trackShadow.colors[2][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[2][1].color).assertEqual("#FFE65392"); - expect(obj.$attrs.trackShadow.colors[2][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[3][0].color).assertEqual("#FFA575EB"); - expect(obj.$attrs.trackShadow.colors[3][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[3][1].color).assertEqual("#FFA12DF7"); - expect(obj.$attrs.trackShadow.colors[3][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[4][0].color).assertEqual("#FF7B79F7"); - expect(obj.$attrs.trackShadow.colors[4][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[4][1].color).assertEqual("#FF4B48F7"); - expect(obj.$attrs.trackShadow.colors[4][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[5][0].color).assertEqual("#FF4B8AF3"); - expect(obj.$attrs.trackShadow.colors[5][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[5][1].color).assertEqual("#FF007DFF"); - expect(obj.$attrs.trackShadow.colors[5][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[6][0].color).assertEqual("#FF73C1E6"); - expect(obj.$attrs.trackShadow.colors[6][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[6][1].color).assertEqual("#FF4FB4E3"); - expect(obj.$attrs.trackShadow.colors[6][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[7][0].color).assertEqual("#FFA5D61D"); - expect(obj.$attrs.trackShadow.colors[7][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[7][1].color).assertEqual("#FF69D14F"); - expect(obj.$attrs.trackShadow.colors[7][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[8][0].color).assertEqual("#FFA2A2B0"); - expect(obj.$attrs.trackShadow.colors[8][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[8][1].color).assertEqual("#FF8E8E93"); - expect(obj.$attrs.trackShadow.colors[8][1].offset).assertEqual("1.000000"); - console.info('ArkUX_Stage_DataPanel_TrackShadow_2700 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_DataPanel_TrackShadow_2700 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); - - /** - * @tc.number ArkUX_Stage_DataPanel_TrackShadow_2800 - * @tc.name Tests the trackShadow property of the DataPanel component - * @tc.desc DataPanel common components, set trackShadow property parameter to trackShadow.colors : null - */ - it('ArkUX_Stage_DataPanel_TrackShadow_2800', 0, async function (done) { - console.info('ArkUX_Stage_DataPanel_TrackShadow_2800 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_DataPanel_TrackShadow_2800'); - console.info('ArkUX_Stage_DataPanel_TrackShadow_2800 strJson :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - let trackShadow = obj.$attrs.trackShadow; - console.info("ArkUX_Stage_DataPanel_TrackShadow_2800 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_DataPanel_TrackShadow_2800 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_DataPanel_TrackShadow_2800 component obj.$attrs.trackShadow is: " + - JSON.stringify(obj.$attrs.trackShadow)); - hilog.info(0x0000, 'testTag', '%{public}s', JSON.stringify(obj.$attrs.trackShadow.colors)); - expect(obj.$attrs.trackShadow.colors[0][0].color).assertEqual("#FFF7CE00"); - expect(obj.$attrs.trackShadow.colors[0][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[0][1].color).assertEqual("#FFF99B11"); - expect(obj.$attrs.trackShadow.colors[0][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[1][0].color).assertEqual("#FFF76223"); - expect(obj.$attrs.trackShadow.colors[1][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[1][1].color).assertEqual("#FFF2400A"); - expect(obj.$attrs.trackShadow.colors[1][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[2][0].color).assertEqual("#FFF772AC"); - expect(obj.$attrs.trackShadow.colors[2][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[2][1].color).assertEqual("#FFE65392"); - expect(obj.$attrs.trackShadow.colors[2][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[3][0].color).assertEqual("#FFA575EB"); - expect(obj.$attrs.trackShadow.colors[3][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[3][1].color).assertEqual("#FFA12DF7"); - expect(obj.$attrs.trackShadow.colors[3][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[4][0].color).assertEqual("#FF7B79F7"); - expect(obj.$attrs.trackShadow.colors[4][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[4][1].color).assertEqual("#FF4B48F7"); - expect(obj.$attrs.trackShadow.colors[4][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[5][0].color).assertEqual("#FF4B8AF3"); - expect(obj.$attrs.trackShadow.colors[5][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[5][1].color).assertEqual("#FF007DFF"); - expect(obj.$attrs.trackShadow.colors[5][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[6][0].color).assertEqual("#FF73C1E6"); - expect(obj.$attrs.trackShadow.colors[6][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[6][1].color).assertEqual("#FF4FB4E3"); - expect(obj.$attrs.trackShadow.colors[6][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[7][0].color).assertEqual("#FFA5D61D"); - expect(obj.$attrs.trackShadow.colors[7][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[7][1].color).assertEqual("#FF69D14F"); - expect(obj.$attrs.trackShadow.colors[7][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[8][0].color).assertEqual("#FFA2A2B0"); - expect(obj.$attrs.trackShadow.colors[8][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[8][1].color).assertEqual("#FF8E8E93"); - expect(obj.$attrs.trackShadow.colors[8][1].offset).assertEqual("1.000000"); - console.info('ArkUX_Stage_DataPanel_TrackShadow_2800 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_DataPanel_TrackShadow_2800 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); - - /** - * @tc.number ArkUX_Stage_DataPanel_TrackShadow_2800 - * @tc.name Tests the trackShadow property of the DataPanel component - * @tc.desc DataPanel common components, set trackShadow property parameter to trackShadow.colors : undefined - */ - it('ArkUX_Stage_DataPanel_TrackShadow_2900', 0, async function (done) { - console.info('ArkUX_Stage_DataPanel_TrackShadow_2900 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_DataPanel_TrackShadow_2900'); - console.info('ArkUX_Stage_DataPanel_TrackShadow_2900 strJson :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - let trackShadow = obj.$attrs.trackShadow; - console.info("ArkUX_Stage_DataPanel_TrackShadow_2900 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_DataPanel_TrackShadow_2900 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_DataPanel_TrackShadow_2900 component obj.$attrs.trackShadow is: " + - JSON.stringify(obj.$attrs.trackShadow)); - hilog.info(0x0000, 'testTag', '%{public}s', JSON.stringify(obj.$attrs.trackShadow.colors)); - expect(obj.$attrs.trackShadow.colors[0][0].color).assertEqual("#FFF7CE00"); - expect(obj.$attrs.trackShadow.colors[0][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[0][1].color).assertEqual("#FFF99B11"); - expect(obj.$attrs.trackShadow.colors[0][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[1][0].color).assertEqual("#FFF76223"); - expect(obj.$attrs.trackShadow.colors[1][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[1][1].color).assertEqual("#FFF2400A"); - expect(obj.$attrs.trackShadow.colors[1][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[2][0].color).assertEqual("#FFF772AC"); - expect(obj.$attrs.trackShadow.colors[2][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[2][1].color).assertEqual("#FFE65392"); - expect(obj.$attrs.trackShadow.colors[2][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[3][0].color).assertEqual("#FFA575EB"); - expect(obj.$attrs.trackShadow.colors[3][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[3][1].color).assertEqual("#FFA12DF7"); - expect(obj.$attrs.trackShadow.colors[3][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[4][0].color).assertEqual("#FF7B79F7"); - expect(obj.$attrs.trackShadow.colors[4][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[4][1].color).assertEqual("#FF4B48F7"); - expect(obj.$attrs.trackShadow.colors[4][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[5][0].color).assertEqual("#FF4B8AF3"); - expect(obj.$attrs.trackShadow.colors[5][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[5][1].color).assertEqual("#FF007DFF"); - expect(obj.$attrs.trackShadow.colors[5][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[6][0].color).assertEqual("#FF73C1E6"); - expect(obj.$attrs.trackShadow.colors[6][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[6][1].color).assertEqual("#FF4FB4E3"); - expect(obj.$attrs.trackShadow.colors[6][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[7][0].color).assertEqual("#FFA5D61D"); - expect(obj.$attrs.trackShadow.colors[7][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[7][1].color).assertEqual("#FF69D14F"); - expect(obj.$attrs.trackShadow.colors[7][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[8][0].color).assertEqual("#FFA2A2B0"); - expect(obj.$attrs.trackShadow.colors[8][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[8][1].color).assertEqual("#FF8E8E93"); - expect(obj.$attrs.trackShadow.colors[8][1].offset).assertEqual("1.000000"); - console.info('ArkUX_Stage_DataPanel_TrackShadow_2900 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_DataPanel_TrackShadow_2900 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); - /** * @tc.number ArkUX_Stage_DataPanel_TrackShadow_3000 * @tc.name Tests the trackShadow property of the DataPanel component @@ -3172,200 +2782,5 @@ export default function datapanelTest() { } }, 500) }); - - /** - * @tc.number ArkUX_Stage_DataPanel_TrackShadow_3400 - * @tc.name Tests the trackShadow property of the DataPanel component - * @tc.desc DataPanel common components, set trackShadow property parameter to trackShadow.colors: '' - */ - it('ArkUX_Stage_DataPanel_TrackShadow_3400', 0, async function (done) { - console.info('ArkUX_Stage_DataPanel_TrackShadow_3400 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_DataPanel_TrackShadow_3400'); - console.info('ArkUX_Stage_DataPanel_TrackShadow_3400 strJson :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - let trackShadow = obj.$attrs.trackShadow; - console.info("ArkUX_Stage_DataPanel_TrackShadow_3400 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_DataPanel_TrackShadow_3400 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_DataPanel_TrackShadow_3400 component obj.$attrs.trackShadow is: " + - JSON.stringify(obj.$attrs.trackShadow)); - hilog.info(0x0000, 'testTag', '%{public}s', JSON.stringify(obj.$attrs.trackShadow.colors)); - expect(obj.$attrs.trackShadow.colors[0][0].color).assertEqual("#FFF7CE00"); - expect(obj.$attrs.trackShadow.colors[0][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[0][1].color).assertEqual("#FFF99B11"); - expect(obj.$attrs.trackShadow.colors[0][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[1][0].color).assertEqual("#FFF76223"); - expect(obj.$attrs.trackShadow.colors[1][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[1][1].color).assertEqual("#FFF2400A"); - expect(obj.$attrs.trackShadow.colors[1][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[2][0].color).assertEqual("#FFF772AC"); - expect(obj.$attrs.trackShadow.colors[2][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[2][1].color).assertEqual("#FFE65392"); - expect(obj.$attrs.trackShadow.colors[2][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[3][0].color).assertEqual("#FFA575EB"); - expect(obj.$attrs.trackShadow.colors[3][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[3][1].color).assertEqual("#FFA12DF7"); - expect(obj.$attrs.trackShadow.colors[3][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[4][0].color).assertEqual("#FF7B79F7"); - expect(obj.$attrs.trackShadow.colors[4][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[4][1].color).assertEqual("#FF4B48F7"); - expect(obj.$attrs.trackShadow.colors[4][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[5][0].color).assertEqual("#FF4B8AF3"); - expect(obj.$attrs.trackShadow.colors[5][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[5][1].color).assertEqual("#FF007DFF"); - expect(obj.$attrs.trackShadow.colors[5][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[6][0].color).assertEqual("#FF73C1E6"); - expect(obj.$attrs.trackShadow.colors[6][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[6][1].color).assertEqual("#FF4FB4E3"); - expect(obj.$attrs.trackShadow.colors[6][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[7][0].color).assertEqual("#FFA5D61D"); - expect(obj.$attrs.trackShadow.colors[7][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[7][1].color).assertEqual("#FF69D14F"); - expect(obj.$attrs.trackShadow.colors[7][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[8][0].color).assertEqual("#FFA2A2B0"); - expect(obj.$attrs.trackShadow.colors[8][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[8][1].color).assertEqual("#FF8E8E93"); - expect(obj.$attrs.trackShadow.colors[8][1].offset).assertEqual("1.000000"); - console.info('ArkUX_Stage_DataPanel_TrackShadow_3400 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_DataPanel_TrackShadow_3400 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); - - /** - * @tc.number ArkUX_Stage_DataPanel_TrackShadow_3500 - * @tc.name Tests the trackShadow property of the DataPanel component - * @tc.desc DataPanel common components, set trackShadow property parameter to trackShadow.colors: null - */ - it('ArkUX_Stage_DataPanel_TrackShadow_3500', 0, async function (done) { - console.info('ArkUX_Stage_DataPanel_TrackShadow_3500 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_DataPanel_TrackShadow_3500'); - console.info('ArkUX_Stage_DataPanel_TrackShadow_3500 strJson :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - let trackShadow = obj.$attrs.trackShadow; - console.info("ArkUX_Stage_DataPanel_TrackShadow_3500 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_DataPanel_TrackShadow_3500 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_DataPanel_TrackShadow_3500 component obj.$attrs.trackShadow is: " + - JSON.stringify(obj.$attrs.trackShadow)); - hilog.info(0x0000, 'testTag', '%{public}s', JSON.stringify(obj.$attrs.trackShadow.colors)); - expect(obj.$attrs.trackShadow.colors[0][0].color).assertEqual("#FFF7CE00"); - expect(obj.$attrs.trackShadow.colors[0][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[0][1].color).assertEqual("#FFF99B11"); - expect(obj.$attrs.trackShadow.colors[0][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[1][0].color).assertEqual("#FFF76223"); - expect(obj.$attrs.trackShadow.colors[1][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[1][1].color).assertEqual("#FFF2400A"); - expect(obj.$attrs.trackShadow.colors[1][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[2][0].color).assertEqual("#FFF772AC"); - expect(obj.$attrs.trackShadow.colors[2][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[2][1].color).assertEqual("#FFE65392"); - expect(obj.$attrs.trackShadow.colors[2][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[3][0].color).assertEqual("#FFA575EB"); - expect(obj.$attrs.trackShadow.colors[3][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[3][1].color).assertEqual("#FFA12DF7"); - expect(obj.$attrs.trackShadow.colors[3][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[4][0].color).assertEqual("#FF7B79F7"); - expect(obj.$attrs.trackShadow.colors[4][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[4][1].color).assertEqual("#FF4B48F7"); - expect(obj.$attrs.trackShadow.colors[4][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[5][0].color).assertEqual("#FF4B8AF3"); - expect(obj.$attrs.trackShadow.colors[5][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[5][1].color).assertEqual("#FF007DFF"); - expect(obj.$attrs.trackShadow.colors[5][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[6][0].color).assertEqual("#FF73C1E6"); - expect(obj.$attrs.trackShadow.colors[6][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[6][1].color).assertEqual("#FF4FB4E3"); - expect(obj.$attrs.trackShadow.colors[6][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[7][0].color).assertEqual("#FFA5D61D"); - expect(obj.$attrs.trackShadow.colors[7][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[7][1].color).assertEqual("#FF69D14F"); - expect(obj.$attrs.trackShadow.colors[7][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[8][0].color).assertEqual("#FFA2A2B0"); - expect(obj.$attrs.trackShadow.colors[8][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[8][1].color).assertEqual("#FF8E8E93"); - expect(obj.$attrs.trackShadow.colors[8][1].offset).assertEqual("1.000000"); - console.info('ArkUX_Stage_DataPanel_TrackShadow_3500 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_DataPanel_TrackShadow_3500 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); - - /** - * @tc.number ArkUX_Stage_DataPanel_TrackShadow_3600 - * @tc.name Tests the trackShadow property of the DataPanel component - * @tc.desc DataPanel common components, set trackShadow property parameter to trackShadow.colors: undefined - */ - it('ArkUX_Stage_DataPanel_TrackShadow_3600', 0, async function (done) { - console.info('ArkUX_Stage_DataPanel_TrackShadow_3600 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_DataPanel_TrackShadow_3600'); - console.info('ArkUX_Stage_DataPanel_TrackShadow_3600 strJson :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - let trackShadow = obj.$attrs.trackShadow; - console.info("ArkUX_Stage_DataPanel_TrackShadow_3600 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_DataPanel_TrackShadow_3600 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_DataPanel_TrackShadow_3600 component obj.$attrs.trackShadow is: " + - JSON.stringify(obj.$attrs.trackShadow)); - hilog.info(0x0000, 'testTag', '%{public}s', JSON.stringify(obj.$attrs.trackShadow.colors)); - expect(obj.$attrs.trackShadow.colors[0][0].color).assertEqual("#FFF7CE00"); - expect(obj.$attrs.trackShadow.colors[0][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[0][1].color).assertEqual("#FFF99B11"); - expect(obj.$attrs.trackShadow.colors[0][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[1][0].color).assertEqual("#FFF76223"); - expect(obj.$attrs.trackShadow.colors[1][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[1][1].color).assertEqual("#FFF2400A"); - expect(obj.$attrs.trackShadow.colors[1][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[2][0].color).assertEqual("#FFF772AC"); - expect(obj.$attrs.trackShadow.colors[2][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[2][1].color).assertEqual("#FFE65392"); - expect(obj.$attrs.trackShadow.colors[2][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[3][0].color).assertEqual("#FFA575EB"); - expect(obj.$attrs.trackShadow.colors[3][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[3][1].color).assertEqual("#FFA12DF7"); - expect(obj.$attrs.trackShadow.colors[3][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[4][0].color).assertEqual("#FF7B79F7"); - expect(obj.$attrs.trackShadow.colors[4][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[4][1].color).assertEqual("#FF4B48F7"); - expect(obj.$attrs.trackShadow.colors[4][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[5][0].color).assertEqual("#FF4B8AF3"); - expect(obj.$attrs.trackShadow.colors[5][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[5][1].color).assertEqual("#FF007DFF"); - expect(obj.$attrs.trackShadow.colors[5][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[6][0].color).assertEqual("#FF73C1E6"); - expect(obj.$attrs.trackShadow.colors[6][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[6][1].color).assertEqual("#FF4FB4E3"); - expect(obj.$attrs.trackShadow.colors[6][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[7][0].color).assertEqual("#FFA5D61D"); - expect(obj.$attrs.trackShadow.colors[7][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[7][1].color).assertEqual("#FF69D14F"); - expect(obj.$attrs.trackShadow.colors[7][1].offset).assertEqual("1.000000"); - expect(obj.$attrs.trackShadow.colors[8][0].color).assertEqual("#FFA2A2B0"); - expect(obj.$attrs.trackShadow.colors[8][0].offset).assertEqual("0.000000"); - expect(obj.$attrs.trackShadow.colors[8][1].color).assertEqual("#FF8E8E93"); - expect(obj.$attrs.trackShadow.colors[8][1].offset).assertEqual("1.000000"); - console.info('ArkUX_Stage_DataPanel_TrackShadow_3600 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_DataPanel_TrackShadow_3600 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); }) } \ No newline at end of file diff --git a/arkui/ace_ets_components_ux/ace_ets_component_radio/src/main/ets/TestAbility/pages/Index.ets b/arkui/ace_ets_components_ux/ace_ets_component_radio/src/main/ets/TestAbility/pages/Index.ets index 23f3f5488477cfacc8f18b37bed7c5568536dddc..c6b1710572c872ddd370996a004504c44f995486 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_radio/src/main/ets/TestAbility/pages/Index.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_radio/src/main/ets/TestAbility/pages/Index.ets @@ -120,6 +120,7 @@ struct RadioTest { .checked(false) .width(50) .height(50) + .borderColor($r("sys.color.ohos_id_color_emphasize")) .radioStyle({ checkedBackgroundColor: '' }) .key("ArkUX_Stage_Radio_CheckedBackgroundColor_0800") .onChange((isChecked: boolean) => { @@ -131,6 +132,7 @@ struct RadioTest { .checked(false) .width(50) .height(50) + .borderColor($r("sys.color.ohos_id_color_emphasize")) .radioStyle({ checkedBackgroundColor: null }) .key("ArkUX_Stage_Radio_CheckedBackgroundColor_0900") .onChange((isChecked: boolean) => { @@ -142,6 +144,7 @@ struct RadioTest { .checked(false) .width(50) .height(50) + .borderColor($r("sys.color.ohos_id_color_emphasize")) .radioStyle({ checkedBackgroundColor: undefined }) .key("ArkUX_Stage_Radio_CheckedBackgroundColor_1000") .onChange((isChecked: boolean) => { @@ -153,6 +156,7 @@ struct RadioTest { .checked(false) .width(50) .height(50) + .borderColor($r("sys.color.ohos_id_color_emphasize")) .radioStyle({ checkedBackgroundColor: "rgb(255,0,0)" }) .radioStyle({ checkedBackgroundColor: undefined }) .key("ArkUX_Stage_Radio_CheckedBackgroundColor_1100") @@ -165,6 +169,7 @@ struct RadioTest { .checked(false) .width(50) .height(50) + .borderColor($r("sys.color.ohos_id_color_emphasize")) .radioStyle({ checkedBackgroundColor: 'color' }) .key("ArkUX_Stage_Radio_CheckedBackgroundColor_1200") .onChange((isChecked: boolean) => { @@ -232,7 +237,7 @@ struct RadioTest { .width(50) .height(50) .radioStyle({ uncheckedBorderColor: "rgb(138,43,226)" }) - .radioStyle({ uncheckedBorderColor: Color.Black }) + .radioStyle({ uncheckedBorderColor: Color.Black }) .key("ArkUX_Stage_Radio_UncheckedBorderColor_0600") .onChange((isChecked: boolean) => { console.log('Radio18 status is' + isChecked) @@ -255,6 +260,7 @@ struct RadioTest { .checked(false) .width(50) .height(50) + .borderColor($r("sys.color.ohos_id_color_switch_outline_off")) .radioStyle({ uncheckedBorderColor: '' }) .key("ArkUX_Stage_Radio_UncheckedBorderColor_0800") .onChange((isChecked: boolean) => { @@ -266,6 +272,7 @@ struct RadioTest { .checked(false) .width(50) .height(50) + .borderColor($r("sys.color.ohos_id_color_switch_outline_off")) .radioStyle({ uncheckedBorderColor: null }) .key("ArkUX_Stage_Radio_UncheckedBorderColor_0900") .onChange((isChecked: boolean) => { @@ -277,6 +284,7 @@ struct RadioTest { .checked(false) .width(50) .height(50) + .borderColor($r("sys.color.ohos_id_color_switch_outline_off")) .radioStyle({ uncheckedBorderColor: undefined }) .key("ArkUX_Stage_Radio_UncheckedBorderColor_1000") .onChange((isChecked: boolean) => { @@ -288,6 +296,7 @@ struct RadioTest { .checked(false) .width(50) .height(50) + .borderColor($r("sys.color.ohos_id_color_switch_outline_off")) .radioStyle({ uncheckedBorderColor: "rgb(255,0,0)" }) .radioStyle({ uncheckedBorderColor: undefined }) .key("ArkUX_Stage_Radio_UncheckedBorderColor_1100") @@ -300,6 +309,7 @@ struct RadioTest { .checked(false) .width(50) .height(50) + .borderColor($r("sys.color.ohos_id_color_switch_outline_off")) .radioStyle({ uncheckedBorderColor: 'bgr(138,43,226)' }) .key("ArkUX_Stage_Radio_UncheckedBorderColor_1200") .onChange((isChecked: boolean) => { @@ -390,6 +400,7 @@ struct RadioTest { .checked(false) .width(50) .height(50) + .borderColor($r("sys.color.ohos_id_color_foreground_contrary")) .radioStyle({ indicatorColor: '' }) .key("ArkUX_Stage_Radio_IndicatorColor_0800") .onChange((isChecked: boolean) => { @@ -401,6 +412,7 @@ struct RadioTest { .checked(false) .width(50) .height(50) + .borderColor($r("sys.color.ohos_id_color_foreground_contrary")) .radioStyle({ indicatorColor: null }) .key("ArkUX_Stage_Radio_IndicatorColor_0900") .onChange((isChecked: boolean) => { @@ -412,6 +424,7 @@ struct RadioTest { .checked(false) .width(50) .height(50) + .borderColor($r("sys.color.ohos_id_color_foreground_contrary")) .radioStyle({ indicatorColor: undefined }) .key("ArkUX_Stage_Radio_IndicatorColor_1000") .onChange((isChecked: boolean) => { @@ -423,6 +436,7 @@ struct RadioTest { .checked(false) .width(50) .height(50) + .borderColor($r("sys.color.ohos_id_color_foreground_contrary")) .radioStyle({ indicatorColor: "rgb(138,43,226)" }) .radioStyle({ indicatorColor: undefined }) .key("ArkUX_Stage_Radio_IndicatorColor_1100") @@ -435,6 +449,7 @@ struct RadioTest { .checked(false) .width(50) .height(50) + .borderColor($r("sys.color.ohos_id_color_foreground_contrary")) .radioStyle({ indicatorColor: 'bgr(138,43,226)' }) .key("ArkUX_Stage_Radio_IndicatorColor_1200") .onChange((isChecked: boolean) => { @@ -461,6 +476,9 @@ struct RadioTest { .checked(false) .width(50) .height(50) + .borderColor($r("sys.color.ohos_id_color_emphasize")) + .backgroundColor($r("sys.color.ohos_id_color_switch_outline_off")) + .foregroundColor($r("sys.color.ohos_id_color_foreground_contrary")) .key("ArkUX_Stage_Radio_0100") .onChange((isChecked: boolean) => { console.log('Radio38 status is' + isChecked) diff --git a/arkui/ace_ets_components_ux/ace_ets_component_radio/src/main/ets/test/radio.ets b/arkui/ace_ets_components_ux/ace_ets_component_radio/src/main/ets/test/radio.ets index 51b29acc477fc022b8e8491c766a90087cb77a54..6730cd68e790fef8ce3e6734bd95e8c112e8aacf 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_radio/src/main/ets/test/radio.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_radio/src/main/ets/test/radio.ets @@ -18,1186 +18,1186 @@ let emitKey = "emitUserAgent"; export default function radioTest() { describe('ActsRadioTest', function () { - /** - * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_0100 - * @tc.name Tests the checkedBackgroundColor property of the radio component - * @tc.desc Radio common components, set checkedBackgroundColor property parameter to "#FF000000" - */ - it('ArkUX_Stage_Radio_CheckedBackgroundColor_0100', 0, async function (done) { - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0100 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_0100'); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0100 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0100 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0100 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0100 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0100 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.checkedBackgroundColor).assertEqual("#FF000000"); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0100 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0100 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_0100 + * @tc.name Tests the checkedBackgroundColor property of the radio component + * @tc.desc Radio common components, set checkedBackgroundColor property parameter to "#FF000000" + */ + it('ArkUX_Stage_Radio_CheckedBackgroundColor_0100', 0, async function (done) { + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0100 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_0100'); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0100 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0100 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0100 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0100 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0100 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.checkedBackgroundColor).assertEqual("#FF000000"); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0100 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0100 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_0200 - * @tc.name Tests the checkedBackgroundColor property of the radio component - * @tc.desc Radio common components, set checkedBackgroundColor property parameter to 0xffc0cb - */ - it('ArkUX_Stage_Radio_CheckedBackgroundColor_0200', 0, async function (done) { - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0200 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_0200'); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0200 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0200 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0200 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0200 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0200 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.checkedBackgroundColor).assertEqual("#FFFFC0CB"); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0200 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0200 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_0200 + * @tc.name Tests the checkedBackgroundColor property of the radio component + * @tc.desc Radio common components, set checkedBackgroundColor property parameter to 0xffc0cb + */ + it('ArkUX_Stage_Radio_CheckedBackgroundColor_0200', 0, async function (done) { + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0200 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_0200'); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0200 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0200 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0200 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0200 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0200 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.checkedBackgroundColor).assertEqual("#FFFFC0CB"); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0200 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0200 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_0300 - * @tc.name Tests the checkedBackgroundColor property of the radio component - * @tc.desc Radio common components, set checkedBackgroundColor property parameter to 'rgb(255,0,0)' - */ - it('ArkUX_Stage_Radio_CheckedBackgroundColor_0300', 0, async function (done) { - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0300 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_0300'); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0300 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0300 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0300 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0300 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0300 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.checkedBackgroundColor).assertEqual("#FFFF0000"); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0300 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0200 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_0300 + * @tc.name Tests the checkedBackgroundColor property of the radio component + * @tc.desc Radio common components, set checkedBackgroundColor property parameter to 'rgb(255,0,0)' + */ + it('ArkUX_Stage_Radio_CheckedBackgroundColor_0300', 0, async function (done) { + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0300 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_0300'); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0300 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0300 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0300 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0300 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0300 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.checkedBackgroundColor).assertEqual("#FFFF0000"); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0300 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0200 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_0400 - * @tc.name Tests the checkedBackgroundColor property of the radio component - * @tc.desc Radio common components, set checkedBackgroundColor property parameter to Color.Green - */ - it('ArkUX_Stage_Radio_CheckedBackgroundColor_0400', 0, async function (done) { - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0400 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_0400'); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0400 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0400 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0400 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0400 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0400 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.checkedBackgroundColor).assertEqual("#FF008000"); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0400 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0400 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_0400 + * @tc.name Tests the checkedBackgroundColor property of the radio component + * @tc.desc Radio common components, set checkedBackgroundColor property parameter to Color.Green + */ + it('ArkUX_Stage_Radio_CheckedBackgroundColor_0400', 0, async function (done) { + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0400 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_0400'); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0400 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0400 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0400 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0400 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0400 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.checkedBackgroundColor).assertEqual("#FF008000"); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0400 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0400 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_0500 - * @tc.name Tests the checkedBackgroundColor property of the radio component - * @tc.desc Radio common components, set checkedBackgroundColor property parameter to - * $r("app.color.radio_BackgroundColor") - */ - it('ArkUX_Stage_Radio_CheckedBackgroundColor_0500', 0, async function (done) { - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0500 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_0500'); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0500 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0500 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0500 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0500 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0500 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.checkedBackgroundColor).assertEqual("#FFA67D3D"); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0500 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0500 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_0500 + * @tc.name Tests the checkedBackgroundColor property of the radio component + * @tc.desc Radio common components, set checkedBackgroundColor property parameter to + * $r("app.color.radio_BackgroundColor") + */ + it('ArkUX_Stage_Radio_CheckedBackgroundColor_0500', 0, async function (done) { + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0500 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_0500'); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0500 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0500 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0500 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0500 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0500 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.checkedBackgroundColor).assertEqual("#FFA67D3D"); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0500 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0500 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_0600 - * @tc.name Tests the checkedBackgroundColor property of the radio component - * @tc.desc Radio common components, set checkedBackgroundColor property parameter to "rgb(138,43,226)", - * and set the checkedBackgroundColor parameter to Color.Gray - */ - it('ArkUX_Stage_Radio_CheckedBackgroundColor_0600', 0, async function (done) { - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0600 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_0600'); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0600 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0600 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0600 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0600 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0600 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.checkedBackgroundColor).assertEqual("#FF808080"); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0600 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0600 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_0600 + * @tc.name Tests the checkedBackgroundColor property of the radio component + * @tc.desc Radio common components, set checkedBackgroundColor property parameter to "rgb(138,43,226)", + * and set the checkedBackgroundColor parameter to Color.Gray + */ + it('ArkUX_Stage_Radio_CheckedBackgroundColor_0600', 0, async function (done) { + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0600 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_0600'); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0600 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0600 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0600 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0600 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0600 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.checkedBackgroundColor).assertEqual("#FF808080"); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0600 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0600 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_0700 - * @tc.name Tests the checkedBackgroundColor property of the radio component - * @tc.desc Radio common components, set checkedBackgroundColor property parameter to 0x00ff00, - * set the general attribute backgroundColor parameter to Color.Pink - */ - it('ArkUX_Stage_Radio_CheckedBackgroundColor_0700', 0, async function (done) { - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0700 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_0700'); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0700 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0700 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0700 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0700 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0700 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.checkedBackgroundColor).assertEqual("#FFFFFF00"); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0700 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0600 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_0700 + * @tc.name Tests the checkedBackgroundColor property of the radio component + * @tc.desc Radio common components, set checkedBackgroundColor property parameter to 0x00ff00, + * set the general attribute backgroundColor parameter to Color.Pink + */ + it('ArkUX_Stage_Radio_CheckedBackgroundColor_0700', 0, async function (done) { + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0700 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_0700'); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0700 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0700 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0700 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0700 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0700 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.checkedBackgroundColor).assertEqual("#FFFFFF00"); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0700 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0600 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_0800 - * @tc.name Tests the checkedBackgroundColor property of the radio component - * @tc.desc Radio common components, set checkedBackgroundColor property parameter to '' - */ - it('ArkUX_Stage_Radio_CheckedBackgroundColor_0800', 0, async function (done) { - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0800 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_0800'); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0800 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0800 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0800 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0800 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0800 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.checkedBackgroundColor).assertEqual("#FF007DFF"); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0800 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0600 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_0800 + * @tc.name Tests the checkedBackgroundColor property of the radio component + * @tc.desc Radio common components, set checkedBackgroundColor property parameter to '' + */ + it('ArkUX_Stage_Radio_CheckedBackgroundColor_0800', 0, async function (done) { + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0800 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_0800'); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0800 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0800 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0800 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0800 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0800 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.checkedBackgroundColor).assertEqual(obj.$attrs.borderColor); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0800 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0600 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_0900 - * @tc.name Tests the checkedBackgroundColor property of the radio component - * @tc.desc Radio common components, set checkedBackgroundColor property parameter to null - */ - it('ArkUX_Stage_Radio_CheckedBackgroundColor_0900', 0, async function (done) { - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0900 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_0900'); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0900 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0900 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0900 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0900 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0900 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.checkedBackgroundColor).assertEqual("#FF007DFF"); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0900 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0900 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_0900 + * @tc.name Tests the checkedBackgroundColor property of the radio component + * @tc.desc Radio common components, set checkedBackgroundColor property parameter to null + */ + it('ArkUX_Stage_Radio_CheckedBackgroundColor_0900', 0, async function (done) { + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0900 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_0900'); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0900 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0900 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0900 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0900 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_0900 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.checkedBackgroundColor).assertEqual(obj.$attrs.borderColor); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0900 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0900 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_1000 - * @tc.name Tests the checkedBackgroundColor property of the radio component - * @tc.desc Radio common components, set checkedBackgroundColor property parameter to undefined - */ - it('ArkUX_Stage_Radio_CheckedBackgroundColor_1000', 0, async function (done) { - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1000 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_1000'); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1000 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1000 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1000 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1000 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1000 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.checkedBackgroundColor).assertEqual("#FF007DFF"); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1000 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0700 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_1000 + * @tc.name Tests the checkedBackgroundColor property of the radio component + * @tc.desc Radio common components, set checkedBackgroundColor property parameter to undefined + */ + it('ArkUX_Stage_Radio_CheckedBackgroundColor_1000', 0, async function (done) { + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1000 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_1000'); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1000 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1000 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1000 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1000 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1000 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.checkedBackgroundColor).assertEqual(obj.$attrs.borderColor); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1000 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_0700 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_1100 - * @tc.name Tests the checkedBackgroundColor property of the radio component - * @tc.desc Radio common components, set checkedBackgroundColor property parameter to "rgb(138,43,226)", - * and set the checkedBackgroundColor parameter to undefined - */ - it('ArkUX_Stage_Radio_CheckedBackgroundColor_1100', 0, async function (done) { - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1100 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_1100'); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1100 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1100 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1100 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1100 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1100 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.checkedBackgroundColor).assertEqual("#FF007DFF"); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1100 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1100 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_1100 + * @tc.name Tests the checkedBackgroundColor property of the radio component + * @tc.desc Radio common components, set checkedBackgroundColor property parameter to "rgb(138,43,226)", + * and set the checkedBackgroundColor parameter to undefined + */ + it('ArkUX_Stage_Radio_CheckedBackgroundColor_1100', 0, async function (done) { + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1100 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_1100'); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1100 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1100 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1100 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1100 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1100 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.checkedBackgroundColor).assertEqual(obj.$attrs.borderColor); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1100 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1100 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_1200 - * @tc.name Tests the checkedBackgroundColor property of the radio component - * @tc.desc Radio common components, set checkedBackgroundColor property parameter to 'bgr(138,43,226)' - */ - it('ArkUX_Stage_Radio_CheckedBackgroundColor_1200', 0, async function (done) { - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1200 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_1200'); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1200 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1200 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1200 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1200 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1200 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.checkedBackgroundColor).assertEqual("#FF007DFF"); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1200 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1200 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_CheckedBackgroundColor_1200 + * @tc.name Tests the checkedBackgroundColor property of the radio component + * @tc.desc Radio common components, set checkedBackgroundColor property parameter to 'bgr(138,43,226)' + */ + it('ArkUX_Stage_Radio_CheckedBackgroundColor_1200', 0, async function (done) { + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1200 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_CheckedBackgroundColor_1200'); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1200 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1200 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1200 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1200 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_CheckedBackgroundColor_1200 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.checkedBackgroundColor).assertEqual(obj.$attrs.borderColor); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1200 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_CheckedBackgroundColor_1200 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_0100 - * @tc.name Tests the uncheckedBorderColor property of the radio component - * @tc.desc Radio common components, set uncheckedBorderColor property parameter to "#FF00FF00" - */ - it('ArkUX_Stage_Radio_UncheckedBorderColor_0100', 0, async function (done) { - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0100 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_0100'); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0100 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0100 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0100 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0100 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0100 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.uncheckedBorderColor).assertEqual("#FF00FF00"); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0100 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0100 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_0100 + * @tc.name Tests the uncheckedBorderColor property of the radio component + * @tc.desc Radio common components, set uncheckedBorderColor property parameter to "#FF00FF00" + */ + it('ArkUX_Stage_Radio_UncheckedBorderColor_0100', 0, async function (done) { + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0100 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_0100'); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0100 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0100 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0100 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0100 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0100 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.uncheckedBorderColor).assertEqual("#FF00FF00"); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0100 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0100 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_0200 - * @tc.name Tests the uncheckedBorderColor property of the radio component - * @tc.desc Radio common components, set uncheckedBorderColor property parameter to 0xffc0cb - */ - it('ArkUX_Stage_Radio_UncheckedBorderColor_0200', 0, async function (done) { - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0200 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_0200'); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0200 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0200 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0200 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0200 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0200 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.uncheckedBorderColor).assertEqual("#FFFFC0CB"); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0200 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0200 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_0200 + * @tc.name Tests the uncheckedBorderColor property of the radio component + * @tc.desc Radio common components, set uncheckedBorderColor property parameter to 0xffc0cb + */ + it('ArkUX_Stage_Radio_UncheckedBorderColor_0200', 0, async function (done) { + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0200 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_0200'); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0200 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0200 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0200 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0200 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0200 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.uncheckedBorderColor).assertEqual("#FFFFC0CB"); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0200 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0200 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_0300 - * @tc.name Tests the uncheckedBorderColor property of the radio component - * @tc.desc Radio common components, set uncheckedBorderColor property parameter to 'rgb(255,255,0)' - */ - it('ArkUX_Stage_Radio_UncheckedBorderColor_0300', 0, async function (done) { - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0300 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_0300'); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0300 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0300 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0300 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0300 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0300 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.uncheckedBorderColor).assertEqual("#FFFFFF00"); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0300 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0300 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_0300 + * @tc.name Tests the uncheckedBorderColor property of the radio component + * @tc.desc Radio common components, set uncheckedBorderColor property parameter to 'rgb(255,255,0)' + */ + it('ArkUX_Stage_Radio_UncheckedBorderColor_0300', 0, async function (done) { + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0300 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_0300'); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0300 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0300 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0300 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0300 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0300 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.uncheckedBorderColor).assertEqual("#FFFFFF00"); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0300 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0300 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_0400 - * @tc.name Tests the uncheckedBorderColor property of the radio component - * @tc.desc Radio common components, set uncheckedBorderColor property parameter to Color.Blue - */ - it('ArkUX_Stage_Radio_UncheckedBorderColor_0400', 0, async function (done) { - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0400 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_0400'); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0400 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0400 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0400 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0400 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0400 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.uncheckedBorderColor).assertEqual("#FF0000FF"); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0400 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0400 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_0400 + * @tc.name Tests the uncheckedBorderColor property of the radio component + * @tc.desc Radio common components, set uncheckedBorderColor property parameter to Color.Blue + */ + it('ArkUX_Stage_Radio_UncheckedBorderColor_0400', 0, async function (done) { + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0400 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_0400'); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0400 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0400 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0400 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0400 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0400 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.uncheckedBorderColor).assertEqual("#FF0000FF"); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0400 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0400 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_0500 - * @tc.name Tests the uncheckedBorderColor property of the radio component - * @tc.desc Radio common components, set uncheckedBorderColor property parameter to - * $r("app.color.radio_UnBorderColor") - */ - it('ArkUX_Stage_Radio_UncheckedBorderColor_0500', 0, async function (done) { - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0500 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_0500'); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0500 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0500 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0500 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0500 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0500 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.uncheckedBorderColor).assertEqual("#FFFF0000"); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0500 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0500 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_0500 + * @tc.name Tests the uncheckedBorderColor property of the radio component + * @tc.desc Radio common components, set uncheckedBorderColor property parameter to + * $r("app.color.radio_UnBorderColor") + */ + it('ArkUX_Stage_Radio_UncheckedBorderColor_0500', 0, async function (done) { + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0500 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_0500'); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0500 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0500 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0500 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0500 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0500 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.uncheckedBorderColor).assertEqual("#FFFF0000"); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0500 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0500 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_0600 - * @tc.name Tests the uncheckedBorderColor property of the radio component - * @tc.desc Radio common components, set uncheckedBorderColor property parameter to "rgb(138,43,226)" - * and set the uncheckedBorderColor parameter to Color.Black - */ - it('ArkUX_Stage_Radio_UncheckedBorderColor_0600', 0, async function (done) { - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0600 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_0600'); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0600 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0600 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0600 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0600 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0600 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.uncheckedBorderColor).assertEqual("#FF000000"); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0600 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0600 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_0600 + * @tc.name Tests the uncheckedBorderColor property of the radio component + * @tc.desc Radio common components, set uncheckedBorderColor property parameter to "rgb(138,43,226)" + * and set the uncheckedBorderColor parameter to Color.Black + */ + it('ArkUX_Stage_Radio_UncheckedBorderColor_0600', 0, async function (done) { + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0600 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_0600'); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0600 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0600 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0600 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0600 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0600 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.uncheckedBorderColor).assertEqual("#FF000000"); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0600 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0600 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_0700 - * @tc.name Tests the checkedBackgroundColor property of the radio component - * @tc.desc Radio common components, set checkedBackgroundColor property parameter to 0xffa500, - * set the general attribute backgroundColor parameter to Color.Pink - */ - it('ArkUX_Stage_Radio_UncheckedBorderColor_0700', 0, async function (done) { - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0700 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_0700'); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0700 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0700 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0700 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0700 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0700 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.uncheckedBorderColor).assertEqual("#FFFFA500"); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0700 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0700 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_0700 + * @tc.name Tests the checkedBackgroundColor property of the radio component + * @tc.desc Radio common components, set checkedBackgroundColor property parameter to 0xffa500, + * set the general attribute backgroundColor parameter to Color.Pink + */ + it('ArkUX_Stage_Radio_UncheckedBorderColor_0700', 0, async function (done) { + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0700 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_0700'); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0700 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0700 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0700 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0700 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0700 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.uncheckedBorderColor).assertEqual("#FFFFA500"); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0700 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0700 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_0800 - * @tc.name Tests the uncheckedBorderColor property of the radio component - * @tc.desc Radio common components, set uncheckedBorderColor property parameter to '' - */ - it('ArkUX_Stage_Radio_UncheckedBorderColor_0800', 0, async function (done) { - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0800 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_0800'); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0800 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0800 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0800 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0800 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0800 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.uncheckedBorderColor).assertEqual("#66182431"); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0800 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0500 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_0800 + * @tc.name Tests the uncheckedBorderColor property of the radio component + * @tc.desc Radio common components, set uncheckedBorderColor property parameter to '' + */ + it('ArkUX_Stage_Radio_UncheckedBorderColor_0800', 0, async function (done) { + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0800 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_0800'); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0800 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0800 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0800 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0800 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0800 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.uncheckedBorderColor).assertEqual(obj.$attrs.borderColor); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0800 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0500 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_0900 - * @tc.name Tests the uncheckedBorderColor property of the radio component - * @tc.desc Radio common components, set uncheckedBorderColor property parameter to null - */ - it('ArkUX_Stage_Radio_UncheckedBorderColor_0900', 0, async function (done) { - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0900 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_0900'); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0900 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0900 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0900 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0900 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0900 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.uncheckedBorderColor).assertEqual("#66182431"); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0900 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0900 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_0900 + * @tc.name Tests the uncheckedBorderColor property of the radio component + * @tc.desc Radio common components, set uncheckedBorderColor property parameter to null + */ + it('ArkUX_Stage_Radio_UncheckedBorderColor_0900', 0, async function (done) { + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0900 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_0900'); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0900 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0900 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0900 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0900 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_0900 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.uncheckedBorderColor).assertEqual(obj.$attrs.borderColor); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0900 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_0900 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_1000 - * @tc.name Tests the uncheckedBorderColor property of the radio component - * @tc.desc Radio common components, set uncheckedBorderColor property parameter to undefined - */ - it('ArkUX_Stage_Radio_UncheckedBorderColor_1000', 0, async function (done) { - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1000 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_1000'); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1000 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1000 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1000 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1000 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1000 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.uncheckedBorderColor).assertEqual("#66182431"); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1000 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1000 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_1000 + * @tc.name Tests the uncheckedBorderColor property of the radio component + * @tc.desc Radio common components, set uncheckedBorderColor property parameter to undefined + */ + it('ArkUX_Stage_Radio_UncheckedBorderColor_1000', 0, async function (done) { + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1000 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_1000'); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1000 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1000 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1000 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1000 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1000 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.uncheckedBorderColor).assertEqual(obj.$attrs.borderColor); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1000 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1000 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_1100 - * @tc.name Tests the uncheckedBorderColor property of the radio component - * @tc.desc Radio common components, set uncheckedBorderColor property parameter to "rgb(138,43,226)", - * and set the uncheckedBorderColor parameter to undefined - */ - it('ArkUX_Stage_Radio_UncheckedBorderColor_1100', 0, async function (done) { - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1100 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_1100'); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1100 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1100 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1100 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1100 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1100 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.uncheckedBorderColor).assertEqual("#66182431"); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1100 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1100 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_1100 + * @tc.name Tests the uncheckedBorderColor property of the radio component + * @tc.desc Radio common components, set uncheckedBorderColor property parameter to "rgb(138,43,226)", + * and set the uncheckedBorderColor parameter to undefined + */ + it('ArkUX_Stage_Radio_UncheckedBorderColor_1100', 0, async function (done) { + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1100 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_1100'); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1100 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1100 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1100 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1100 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1100 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.uncheckedBorderColor).assertEqual(obj.$attrs.borderColor); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1100 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1100 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_1200 - * @tc.name Tests the uncheckedBorderColor property of the radio component - * @tc.desc Radio common components, set uncheckedBorderColor property parameter to 'bgr(138,43,226)' - */ - it('ArkUX_Stage_Radio_UncheckedBorderColor_1200', 0, async function (done) { - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1200 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_1200'); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1200 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1200 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1200 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1200 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1200 component radioStyle is: " + - JSON.stringify(radioStyle)); - expect(radioStyle.uncheckedBorderColor).assertEqual("#66182431"); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1200 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1200 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_UncheckedBorderColor_1200 + * @tc.name Tests the uncheckedBorderColor property of the radio component + * @tc.desc Radio common components, set uncheckedBorderColor property parameter to 'bgr(138,43,226)' + */ + it('ArkUX_Stage_Radio_UncheckedBorderColor_1200', 0, async function (done) { + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1200 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_UncheckedBorderColor_1200'); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1200 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1200 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1200 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1200 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_UncheckedBorderColor_1200 component radioStyle is: " + + JSON.stringify(radioStyle)); + expect(radioStyle.uncheckedBorderColor).assertEqual(obj.$attrs.borderColor); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1200 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_UncheckedBorderColor_1200 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_IndicatorColor_0100 - * @tc.name Tests the indicatorColor property of the radio component - * @tc.desc Radio common components, set indicatorColor property parameter to "#FF00FFFF" - */ - it('ArkUX_Stage_Radio_IndicatorColor_0100', 0, async function (done) { - console.info('ArkUX_Stage_Radio_IndicatorColor_0100 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_0100'); - console.info('ArkUX_Stage_Radio_IndicatorColor_0100 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_IndicatorColor_0100 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_IndicatorColor_0100 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_IndicatorColor_0100 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_IndicatorColor_0100 component radioStyle is: " + JSON.stringify(radioStyle)); - expect(radioStyle.indicatorColor).assertEqual("#FF00FFFF"); - console.info('ArkUX_Stage_Radio_IndicatorColor_0100 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_IndicatorColor_0100 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_IndicatorColor_0100 + * @tc.name Tests the indicatorColor property of the radio component + * @tc.desc Radio common components, set indicatorColor property parameter to "#FF00FFFF" + */ + it('ArkUX_Stage_Radio_IndicatorColor_0100', 0, async function (done) { + console.info('ArkUX_Stage_Radio_IndicatorColor_0100 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_0100'); + console.info('ArkUX_Stage_Radio_IndicatorColor_0100 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_IndicatorColor_0100 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_IndicatorColor_0100 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_IndicatorColor_0100 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_IndicatorColor_0100 component radioStyle is: " + JSON.stringify(radioStyle)); + expect(radioStyle.indicatorColor).assertEqual("#FF00FFFF"); + console.info('ArkUX_Stage_Radio_IndicatorColor_0100 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_IndicatorColor_0100 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_IndicatorColor_0200 - * @tc.name Tests the indicatorColor property of the radio component - * @tc.desc Radio common components, set indicatorColor property parameter to 0xffc0cb - */ - it('ArkUX_Stage_Radio_IndicatorColor_0200', 0, async function (done) { - console.info('ArkUX_Stage_Radio_IndicatorColor_0200 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_0200'); - console.info('ArkUX_Stage_Radio_IndicatorColor_0200 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_IndicatorColor_0200 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_IndicatorColor_0200 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_IndicatorColor_0200 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_IndicatorColor_0200 component radioStyle is: " + JSON.stringify(radioStyle)); - expect(radioStyle.indicatorColor).assertEqual("#FFFFC0CB"); - console.info('ArkUX_Stage_Radio_IndicatorColor_0200 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_IndicatorColor_0200 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_IndicatorColor_0200 + * @tc.name Tests the indicatorColor property of the radio component + * @tc.desc Radio common components, set indicatorColor property parameter to 0xffc0cb + */ + it('ArkUX_Stage_Radio_IndicatorColor_0200', 0, async function (done) { + console.info('ArkUX_Stage_Radio_IndicatorColor_0200 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_0200'); + console.info('ArkUX_Stage_Radio_IndicatorColor_0200 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_IndicatorColor_0200 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_IndicatorColor_0200 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_IndicatorColor_0200 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_IndicatorColor_0200 component radioStyle is: " + JSON.stringify(radioStyle)); + expect(radioStyle.indicatorColor).assertEqual("#FFFFC0CB"); + console.info('ArkUX_Stage_Radio_IndicatorColor_0200 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_IndicatorColor_0200 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_IndicatorColor_0300 - * @tc.name Tests the indicatorColor property of the radio component - * @tc.desc Radio common components, set indicatorColor property parameter to 'rgb(255,97,0)' - */ - it('ArkUX_Stage_Radio_IndicatorColor_0300', 0, async function (done) { - console.info('ArkUX_Stage_Radio_IndicatorColor_0300 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_0300'); - console.info('ArkUX_Stage_Radio_IndicatorColor_0300 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_IndicatorColor_0300 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_IndicatorColor_0300 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_IndicatorColor_0300 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_IndicatorColor_0300 component radioStyle is: " + JSON.stringify(radioStyle)); - expect(radioStyle.indicatorColor).assertEqual("#FFFF6100"); - console.info('ArkUX_Stage_Radio_IndicatorColor_0300 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_IndicatorColor_0300 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_IndicatorColor_0300 + * @tc.name Tests the indicatorColor property of the radio component + * @tc.desc Radio common components, set indicatorColor property parameter to 'rgb(255,97,0)' + */ + it('ArkUX_Stage_Radio_IndicatorColor_0300', 0, async function (done) { + console.info('ArkUX_Stage_Radio_IndicatorColor_0300 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_0300'); + console.info('ArkUX_Stage_Radio_IndicatorColor_0300 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_IndicatorColor_0300 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_IndicatorColor_0300 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_IndicatorColor_0300 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_IndicatorColor_0300 component radioStyle is: " + JSON.stringify(radioStyle)); + expect(radioStyle.indicatorColor).assertEqual("#FFFF6100"); + console.info('ArkUX_Stage_Radio_IndicatorColor_0300 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_IndicatorColor_0300 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_IndicatorColor_0400 - * @tc.name Tests the indicatorColor property of the radio component - * @tc.desc Radio common components, set indicatorColor property parameter to Color.Yellow - */ - it('ArkUX_Stage_Radio_IndicatorColor_0400', 0, async function (done) { - console.info('ArkUX_Stage_Radio_IndicatorColor_0400 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_0400'); - console.info('ArkUX_Stage_Radio_IndicatorColor_0400 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_IndicatorColor_0400 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_IndicatorColor_0400 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_IndicatorColor_0400 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_IndicatorColor_0400 component radioStyle is: " + JSON.stringify(radioStyle)); - expect(radioStyle.indicatorColor).assertEqual("#FFFFFF00"); - console.info('ArkUX_Stage_Radio_IndicatorColor_0400 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_IndicatorColor_0400 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_IndicatorColor_0400 + * @tc.name Tests the indicatorColor property of the radio component + * @tc.desc Radio common components, set indicatorColor property parameter to Color.Yellow + */ + it('ArkUX_Stage_Radio_IndicatorColor_0400', 0, async function (done) { + console.info('ArkUX_Stage_Radio_IndicatorColor_0400 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_0400'); + console.info('ArkUX_Stage_Radio_IndicatorColor_0400 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_IndicatorColor_0400 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_IndicatorColor_0400 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_IndicatorColor_0400 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_IndicatorColor_0400 component radioStyle is: " + JSON.stringify(radioStyle)); + expect(radioStyle.indicatorColor).assertEqual("#FFFFFF00"); + console.info('ArkUX_Stage_Radio_IndicatorColor_0400 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_IndicatorColor_0400 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_IndicatorColor_0500 - * @tc.name Tests the indicatorColor property of the radio component - * @tc.desc Radio common components, set indicatorColor property parameter to - * $r("app.color.radio_IndicatorColor") - */ - it('ArkUX_Stage_Radio_IndicatorColor_0500', 0, async function (done) { - console.info('ArkUX_Stage_Radio_IndicatorColor_0500 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_0500'); - console.info('ArkUX_Stage_Radio_IndicatorColor_0500 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_IndicatorColor_0500 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_IndicatorColor_0500 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_IndicatorColor_0500 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_IndicatorColor_0500 component radioStyle is: " + JSON.stringify(radioStyle)); - expect(radioStyle.indicatorColor).assertEqual("#FF00FF00"); - console.info('ArkUX_Stage_Radio_IndicatorColor_0500 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_IndicatorColor_0500 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_IndicatorColor_0500 + * @tc.name Tests the indicatorColor property of the radio component + * @tc.desc Radio common components, set indicatorColor property parameter to + * $r("app.color.radio_IndicatorColor") + */ + it('ArkUX_Stage_Radio_IndicatorColor_0500', 0, async function (done) { + console.info('ArkUX_Stage_Radio_IndicatorColor_0500 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_0500'); + console.info('ArkUX_Stage_Radio_IndicatorColor_0500 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_IndicatorColor_0500 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_IndicatorColor_0500 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_IndicatorColor_0500 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_IndicatorColor_0500 component radioStyle is: " + JSON.stringify(radioStyle)); + expect(radioStyle.indicatorColor).assertEqual("#FF00FF00"); + console.info('ArkUX_Stage_Radio_IndicatorColor_0500 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_IndicatorColor_0500 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_IndicatorColor_0600 - * @tc.name Tests the indicatorColor property of the radio component - * @tc.desc Radio common components, set indicatorColor property parameter to "rgb(138,43,226)", - * and set the indicatorColor parameter to Color.Black - */ - it('ArkUX_Stage_Radio_IndicatorColor_0600', 0, async function (done) { - console.info('ArkUX_Stage_Radio_IndicatorColor_0600 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_0600'); - console.info('ArkUX_Stage_Radio_IndicatorColor_0600 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_IndicatorColor_0600 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_IndicatorColor_0600 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_IndicatorColor_0600 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_IndicatorColor_0600 component radioStyle is: " + JSON.stringify(radioStyle)); - expect(radioStyle.indicatorColor).assertEqual("#FF000000"); - console.info('ArkUX_Stage_Radio_IndicatorColor_0500 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_IndicatorColor_0600 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_IndicatorColor_0600 + * @tc.name Tests the indicatorColor property of the radio component + * @tc.desc Radio common components, set indicatorColor property parameter to "rgb(138,43,226)", + * and set the indicatorColor parameter to Color.Black + */ + it('ArkUX_Stage_Radio_IndicatorColor_0600', 0, async function (done) { + console.info('ArkUX_Stage_Radio_IndicatorColor_0600 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_0600'); + console.info('ArkUX_Stage_Radio_IndicatorColor_0600 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_IndicatorColor_0600 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_IndicatorColor_0600 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_IndicatorColor_0600 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_IndicatorColor_0600 component radioStyle is: " + JSON.stringify(radioStyle)); + expect(radioStyle.indicatorColor).assertEqual("#FF000000"); + console.info('ArkUX_Stage_Radio_IndicatorColor_0500 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_IndicatorColor_0600 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_IndicatorColor_0700 - * @tc.name Tests the indicatorColor property of the radio component - * @tc.desc Radio common components, set indicatorColor property parameter to "rgb(138,43,226)", - * set the general attribute backgroundColor parameter to Color.Pink - */ - it('ArkUX_Stage_Radio_IndicatorColor_0700', 0, async function (done) { - console.info('ArkUX_Stage_Radio_IndicatorColor_0700 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_0700'); - console.info('ArkUX_Stage_Radio_IndicatorColor_0700 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_IndicatorColor_0700 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_IndicatorColor_0700 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_IndicatorColor_0700 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_IndicatorColor_0700 component radioStyle is: " + JSON.stringify(radioStyle)); - expect(radioStyle.indicatorColor).assertEqual("#FFFFA500"); - console.info('ArkUX_Stage_Radio_IndicatorColor_0700 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_IndicatorColor_0700 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_IndicatorColor_0700 + * @tc.name Tests the indicatorColor property of the radio component + * @tc.desc Radio common components, set indicatorColor property parameter to "rgb(138,43,226)", + * set the general attribute backgroundColor parameter to Color.Pink + */ + it('ArkUX_Stage_Radio_IndicatorColor_0700', 0, async function (done) { + console.info('ArkUX_Stage_Radio_IndicatorColor_0700 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_0700'); + console.info('ArkUX_Stage_Radio_IndicatorColor_0700 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_IndicatorColor_0700 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_IndicatorColor_0700 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_IndicatorColor_0700 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_IndicatorColor_0700 component radioStyle is: " + JSON.stringify(radioStyle)); + expect(radioStyle.indicatorColor).assertEqual("#FFFFA500"); + console.info('ArkUX_Stage_Radio_IndicatorColor_0700 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_IndicatorColor_0700 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_IndicatorColor_0800 - * @tc.name Tests the indicatorColor property of the radio component - * @tc.desc Radio common components, set indicatorColor property parameter to '' - */ - it('ArkUX_Stage_Radio_IndicatorColor_0800', 0, async function (done) { - console.info('ArkUX_Stage_Radio_IndicatorColor_0800 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_0800'); - console.info('ArkUX_Stage_Radio_IndicatorColor_0800 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_IndicatorColor_0800 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_IndicatorColor_0800 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_IndicatorColor_0800 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_IndicatorColor_0800 component radioStyle is: " + JSON.stringify(radioStyle)); - expect(radioStyle.indicatorColor).assertEqual("#FFFFFFFF"); - console.info('ArkUX_Stage_Radio_IndicatorColor_0800 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_IndicatorColor_0800 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_IndicatorColor_0800 + * @tc.name Tests the indicatorColor property of the radio component + * @tc.desc Radio common components, set indicatorColor property parameter to '' + */ + it('ArkUX_Stage_Radio_IndicatorColor_0800', 0, async function (done) { + console.info('ArkUX_Stage_Radio_IndicatorColor_0800 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_0800'); + console.info('ArkUX_Stage_Radio_IndicatorColor_0800 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_IndicatorColor_0800 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_IndicatorColor_0800 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_IndicatorColor_0800 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_IndicatorColor_0800 component radioStyle is: " + JSON.stringify(radioStyle)); + expect(radioStyle.indicatorColor).assertEqual(obj.$attrs.borderColor); + console.info('ArkUX_Stage_Radio_IndicatorColor_0800 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_IndicatorColor_0800 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_IndicatorColor_0900 - * @tc.name Tests the indicatorColor property of the radio component - * @tc.desc Radio common components, set indicatorColor property parameter to null - */ - it('ArkUX_Stage_Radio_IndicatorColor_0900', 0, async function (done) { - console.info('ArkUX_Stage_Radio_IndicatorColor_0900 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_0900'); - console.info('ArkUX_Stage_Radio_IndicatorColor_0900 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_IndicatorColor_0900 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_IndicatorColor_0900 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_IndicatorColor_0900 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_IndicatorColor_0900 component radioStyle is: " + JSON.stringify(radioStyle)); - expect(radioStyle.indicatorColor).assertEqual("#FFFFFFFF"); - console.info('ArkUX_Stage_Radio_IndicatorColor_0900 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_IndicatorColor_0900 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_IndicatorColor_0900 + * @tc.name Tests the indicatorColor property of the radio component + * @tc.desc Radio common components, set indicatorColor property parameter to null + */ + it('ArkUX_Stage_Radio_IndicatorColor_0900', 0, async function (done) { + console.info('ArkUX_Stage_Radio_IndicatorColor_0900 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_0900'); + console.info('ArkUX_Stage_Radio_IndicatorColor_0900 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_IndicatorColor_0900 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_IndicatorColor_0900 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_IndicatorColor_0900 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_IndicatorColor_0900 component radioStyle is: " + JSON.stringify(radioStyle)); + expect(radioStyle.indicatorColor).assertEqual(obj.$attrs.borderColor); + console.info('ArkUX_Stage_Radio_IndicatorColor_0900 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_IndicatorColor_0900 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_IndicatorColor_1000 - * @tc.name Tests the indicatorColor property of the radio component - * @tc.desc Radio common components, set indicatorColor property parameter to undefined - */ - it('ArkUX_Stage_Radio_IndicatorColor_1000', 0, async function (done) { - console.info('ArkUX_Stage_Radio_IndicatorColor_1000 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_1000'); - console.info('ArkUX_Stage_Radio_IndicatorColor_1000 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_IndicatorColor_1000 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_IndicatorColor_1000 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_IndicatorColor_1000 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_IndicatorColor_1000 component radioStyle is: " + JSON.stringify(radioStyle)); - expect(radioStyle.indicatorColor).assertEqual("#FFFFFFFF"); - console.info('ArkUX_Stage_Radio_IndicatorColor_1000 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_IndicatorColor_1000 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_IndicatorColor_1000 + * @tc.name Tests the indicatorColor property of the radio component + * @tc.desc Radio common components, set indicatorColor property parameter to undefined + */ + it('ArkUX_Stage_Radio_IndicatorColor_1000', 0, async function (done) { + console.info('ArkUX_Stage_Radio_IndicatorColor_1000 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_1000'); + console.info('ArkUX_Stage_Radio_IndicatorColor_1000 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_IndicatorColor_1000 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_IndicatorColor_1000 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_IndicatorColor_1000 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_IndicatorColor_1000 component radioStyle is: " + JSON.stringify(radioStyle)); + expect(radioStyle.indicatorColor).assertEqual(obj.$attrs.borderColor); + console.info('ArkUX_Stage_Radio_IndicatorColor_1000 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_IndicatorColor_1000 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_IndicatorColor_1100 - * @tc.name Tests the indicatorColor property of the radio component - * @tc.desc Radio common components, set indicatorColor property parameter to "rgb(138,43,226)", - * and set the indicatorColor parameter to undefined - */ - it('ArkUX_Stage_Radio_IndicatorColor_1100', 0, async function (done) { - console.info('ArkUX_Stage_Radio_IndicatorColor_1100 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_1100'); - console.info('ArkUX_Stage_Radio_IndicatorColor_1100 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_IndicatorColor_1100 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_IndicatorColor_1100 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_IndicatorColor_1100 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_IndicatorColor_1100 component radioStyle is: " + JSON.stringify(radioStyle)); - expect(radioStyle.indicatorColor).assertEqual("#FFFFFFFF"); - console.info('ArkUX_Stage_Radio_IndicatorColor_1100 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_IndicatorColor_1100 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_IndicatorColor_1100 + * @tc.name Tests the indicatorColor property of the radio component + * @tc.desc Radio common components, set indicatorColor property parameter to "rgb(138,43,226)", + * and set the indicatorColor parameter to undefined + */ + it('ArkUX_Stage_Radio_IndicatorColor_1100', 0, async function (done) { + console.info('ArkUX_Stage_Radio_IndicatorColor_1100 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_1100'); + console.info('ArkUX_Stage_Radio_IndicatorColor_1100 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_IndicatorColor_1100 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_IndicatorColor_1100 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_IndicatorColor_1100 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_IndicatorColor_1100 component radioStyle is: " + JSON.stringify(radioStyle)); + expect(radioStyle.indicatorColor).assertEqual(obj.$attrs.borderColor); + console.info('ArkUX_Stage_Radio_IndicatorColor_1100 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_IndicatorColor_1100 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_IndicatorColor_1200 - * @tc.name Tests the indicatorColor property of the radio component - * @tc.desc Radio common components, set indicatorColor property parameter to 'bgr(138,43,226)' - */ - it('ArkUX_Stage_Radio_IndicatorColor_1200', 0, async function (done) { - console.info('ArkUX_Stage_Radio_IndicatorColor_1200 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_1200'); - console.info('ArkUX_Stage_Radio_IndicatorColor_1200 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_IndicatorColor_1200 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_IndicatorColor_1200 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_IndicatorColor_1200 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_IndicatorColor_1200 component radioStyle is: " + JSON.stringify(radioStyle)); - expect(radioStyle.indicatorColor).assertEqual("#FFFFFFFF"); - console.info('ArkUX_Stage_Radio_IndicatorColor_1200 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_IndicatorColor_1200 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_IndicatorColor_1200 + * @tc.name Tests the indicatorColor property of the radio component + * @tc.desc Radio common components, set indicatorColor property parameter to 'bgr(138,43,226)' + */ + it('ArkUX_Stage_Radio_IndicatorColor_1200', 0, async function (done) { + console.info('ArkUX_Stage_Radio_IndicatorColor_1200 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_IndicatorColor_1200'); + console.info('ArkUX_Stage_Radio_IndicatorColor_1200 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_IndicatorColor_1200 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_IndicatorColor_1200 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_IndicatorColor_1200 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_IndicatorColor_1200 component radioStyle is: " + JSON.stringify(radioStyle)); + expect(radioStyle.indicatorColor).assertEqual(obj.$attrs.borderColor); + console.info('ArkUX_Stage_Radio_IndicatorColor_1200 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_IndicatorColor_1200 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_Color_0100 - * @tc.name Test all new attribute property of the radio component - * @tc.desc Radio common components, set checkedBackgroundColor property parameter to "#FFFF0000" - * set uncheckedBorderColor property parameter to "#FFDB70DB" - * set indicatorColor property parameter to "#FFFFFF00" - */ - it('ArkUX_Stage_Radio_Color_0100', 0, async function (done) { - console.info('ArkUX_Stage_Radio_Color_0100 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_Color_0100'); - console.info('ArkUX_Stage_Radio_Color_0100 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_Color_0100 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_Color_0100 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_Color_0100 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_Color_0100 component radioStyle is: " + JSON.stringify(radioStyle)); - expect(radioStyle.checkedBackgroundColor).assertEqual("#FFFF0000"); - expect(radioStyle.uncheckedBorderColor).assertEqual("#FFDB70DB"); - expect(radioStyle.indicatorColor).assertEqual("#FFFFFF00"); - console.info('ArkUX_Stage_Radio_Color_0100 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_Color_0100 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_Color_0100 + * @tc.name Test all new attribute property of the radio component + * @tc.desc Radio common components, set checkedBackgroundColor property parameter to "#FFFF0000" + * set uncheckedBorderColor property parameter to "#FFDB70DB" + * set indicatorColor property parameter to "#FFFFFF00" + */ + it('ArkUX_Stage_Radio_Color_0100', 0, async function (done) { + console.info('ArkUX_Stage_Radio_Color_0100 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_Color_0100'); + console.info('ArkUX_Stage_Radio_Color_0100 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_Color_0100 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_Color_0100 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_Color_0100 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_Color_0100 component radioStyle is: " + JSON.stringify(radioStyle)); + expect(radioStyle.checkedBackgroundColor).assertEqual("#FFFF0000"); + expect(radioStyle.uncheckedBorderColor).assertEqual("#FFDB70DB"); + expect(radioStyle.indicatorColor).assertEqual("#FFFFFF00"); + console.info('ArkUX_Stage_Radio_Color_0100 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_Color_0100 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); - /** - * @tc.number ArkUX_Stage_Radio_Color_0100 - * @tc.name The test did not set the new attribute of the radio component - * @tc.desc The new attribute of radio component is not set, View the default value - */ - it('ArkUX_Stage_Radio_0100', 0, async function (done) { - console.info('ArkUX_Stage_Radio_0100 START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Radio_0100'); - console.info('ArkUX_Stage_Radio_0100 START :' + JSON.stringify(strJson)); - let obj = JSON.parse(strJson); - console.info("ArkUX_Stage_Radio_0100 component obj is: " + JSON.stringify(obj)); - console.info("ArkUX_Stage_Radio_0100 component obj.$attrs is: " + - JSON.stringify(obj.$attrs)); - console.info("ArkUX_Stage_Radio_0100 component obj.$attrs.radioStyle is: " + - JSON.stringify(obj.$attrs.radioStyle)); - let radioStyle = JSON.parse(obj.$attrs.radioStyle); - console.info("ArkUX_Stage_Radio_0100 component radioStyle is: " + JSON.stringify(radioStyle)); - expect(radioStyle.checkedBackgroundColor).assertEqual("#FF007DFF"); - expect(radioStyle.uncheckedBorderColor).assertEqual("#66182431"); - expect(radioStyle.indicatorColor).assertEqual("#FFFFFFFF"); - console.info('ArkUX_Stage_Radio_0100 END '); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Radio_0100 ERR ' + JSON.stringify(err)); - done(); - } - }, 500) - }); + /** + * @tc.number ArkUX_Stage_Radio_Color_0100 + * @tc.name The test did not set the new attribute of the radio component + * @tc.desc The new attribute of radio component is not set, View the default value + */ + it('ArkUX_Stage_Radio_0100', 0, async function (done) { + console.info('ArkUX_Stage_Radio_0100 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Radio_0100'); + console.info('ArkUX_Stage_Radio_0100 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Radio_0100 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Radio_0100 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Radio_0100 component obj.$attrs.radioStyle is: " + + JSON.stringify(obj.$attrs.radioStyle)); + let radioStyle = JSON.parse(obj.$attrs.radioStyle); + console.info("ArkUX_Stage_Radio_0100 component radioStyle is: " + JSON.stringify(radioStyle)); + expect(radioStyle.checkedBackgroundColor).assertEqual(obj.$attrs.borderColor); + expect(radioStyle.uncheckedBorderColor).assertEqual(obj.$attrs.backgroundColor); + expect(radioStyle.indicatorColor).assertEqual(obj.$attrs.foregroundColor); + console.info('ArkUX_Stage_Radio_0100 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Radio_0100 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); }) } diff --git a/arkui/ace_ets_components_ux/ace_ets_component_slider/src/main/ets/TestAbility/pages/Index.ets b/arkui/ace_ets_components_ux/ace_ets_component_slider/src/main/ets/TestAbility/pages/Index.ets index 22c959048098ffb576fd8e77f3f30d3efa5dc430..00d57b1caba772409059451e4cacae8951e925b2 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_slider/src/main/ets/TestAbility/pages/Index.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_slider/src/main/ets/TestAbility/pages/Index.ets @@ -879,6 +879,17 @@ struct SliderTest { .stepSize(10) .stepSize(40) } + ListItem() { + Slider({ + value: this.inSetValueOne, + min: 0, + max: 100, + style: SliderStyle.InSet + }) + .key('ArkUX_Stage_Slider_stepColor_marker_color_marker_color_aalpha') + .backgroundColor($r("sys.color.ohos_id_color_foreground")) + .opacity($r("sys.float.ohos_id_alpha_normal_bg")) + } ListItem() { Slider({ value: this.inSetValueOne, diff --git a/arkui/ace_ets_components_ux/ace_ets_component_slider/src/main/ets/test/SliderTest.ets b/arkui/ace_ets_components_ux/ace_ets_component_slider/src/main/ets/test/SliderTest.ets index 76da57ad71662130d77c1505802e48417b8f33d7..871ef58aa2f32f0099c19b509a2ab1f04ec13bb7 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_slider/src/main/ets/test/SliderTest.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_slider/src/main/ets/test/SliderTest.ets @@ -705,7 +705,15 @@ export default function sliderTest() { let strJson = getInspectorByKey('ArkUX_Stage_Slider_stepColor_0500'); let obj = JSON.parse(strJson); console.info("----ArkUX_Stage_Slider_stepColor_0500 is" + JSON.stringify(obj.$attrs.stepColor)); - expect(obj.$attrs.stepColor).assertEqual("#19182431"); + let strJsonSample = getInspectorByKey('ArkUX_Stage_Slider_stepColor_marker_color_marker_color_aalpha'); + let objSample = JSON.parse(strJsonSample); + console.info("----ArkUX_Stage_Slider_stepColor_0500 is" + JSON.stringify(objSample.$attrs.backgroundColor)); + console.info("----ArkUX_Stage_Slider_stepColor_0500 is" + JSON.stringify(objSample.$attrs.opacity)); + let opacity= Math.floor(Number((parseInt(((objSample.$attrs.backgroundColor).substring(1, 3)), 16)* + (objSample.$attrs.opacity)).toString(16))) + expect(opacity.toString()).assertEqual((obj.$attrs.stepColor).substring(1, 3)); + expect((obj.$attrs.stepColor).substr((obj.$attrs.stepColor).length-4, 4)). + assertEqual((objSample.$attrs.backgroundColor).substr((objSample.$attrs.backgroundColor).length-4, 4)); done() } catch (err) { expect().assertFail(); @@ -771,7 +779,15 @@ export default function sliderTest() { let strJson = getInspectorByKey('ArkUX_Stage_Slider_stepColor_0800'); let obj = JSON.parse(strJson); console.info("----ArkUX_Stage_Slider_stepColor_0800 is" + JSON.stringify(obj.$attrs.stepColor)); - expect(obj.$attrs.stepColor).assertEqual("#19182431"); + let strJsonSample = getInspectorByKey('ArkUX_Stage_Slider_stepColor_marker_color_marker_color_aalpha'); + let objSample = JSON.parse(strJsonSample); + console.info("----ArkUX_Stage_Slider_stepColor_0800 is" + JSON.stringify(objSample.$attrs.backgroundColor)); + console.info("----ArkUX_Stage_Slider_stepColor_0800 is" + JSON.stringify(objSample.$attrs.opacity)); + let opacity= Math.floor(Number((parseInt(((objSample.$attrs.backgroundColor).substring(1, 3)), 16)* + (objSample.$attrs.opacity)).toString(16))) + expect(opacity.toString()).assertEqual((obj.$attrs.stepColor).substring(1, 3)); + expect((obj.$attrs.stepColor).substr((obj.$attrs.stepColor).length-4, 4)). + assertEqual((objSample.$attrs.backgroundColor).substr((objSample.$attrs.backgroundColor).length-4, 4)); done(); } catch (err) { expect().assertFail(); @@ -793,7 +809,15 @@ export default function sliderTest() { let strJson = getInspectorByKey('ArkUX_Stage_Slider_stepColor_0900'); let obj = JSON.parse(strJson); console.info("----ArkUX_Stage_Slider_stepColor_0900 is" + JSON.stringify(obj.$attrs.stepColor)); - expect(obj.$attrs.stepColor).assertEqual("#19182431"); + let strJsonSample = getInspectorByKey('ArkUX_Stage_Slider_stepColor_marker_color_marker_color_aalpha'); + let objSample = JSON.parse(strJsonSample); + console.info("----ArkUX_Stage_Slider_stepColor_0900 is" + JSON.stringify(objSample.$attrs.backgroundColor)); + console.info("----ArkUX_Stage_Slider_stepColor_0900 is" + JSON.stringify(objSample.$attrs.opacity)); + let opacity= Math.floor(Number((parseInt(((objSample.$attrs.backgroundColor).substring(1, 3)), 16)* + (objSample.$attrs.opacity)).toString(16))) + expect(opacity.toString()).assertEqual((obj.$attrs.stepColor).substring(1, 3)); + expect((obj.$attrs.stepColor).substr((obj.$attrs.stepColor).length-4, 4)). + assertEqual((objSample.$attrs.backgroundColor).substr((objSample.$attrs.backgroundColor).length-4, 4)); done(); } catch (err) { expect().assertFail(); @@ -815,7 +839,15 @@ export default function sliderTest() { let strJson = getInspectorByKey('ArkUX_Stage_Slider_stepColor_1000'); let obj = JSON.parse(strJson); console.info("----ArkUX_Stage_Slider_stepColor_1000 is" + JSON.stringify(obj.$attrs.stepColor)); - expect(obj.$attrs.stepColor).assertEqual("#19182431"); + let strJsonSample = getInspectorByKey('ArkUX_Stage_Slider_stepColor_marker_color_marker_color_aalpha'); + let objSample = JSON.parse(strJsonSample); + console.info("----ArkUX_Stage_Slider_stepColor_1000 is" + JSON.stringify(objSample.$attrs.backgroundColor)); + console.info("----ArkUX_Stage_Slider_stepColor_1000 is" + JSON.stringify(objSample.$attrs.opacity)); + let opacity= Math.floor(Number((parseInt(((objSample.$attrs.backgroundColor).substring(1, 3)), 16)* + (objSample.$attrs.opacity)).toString(16))) + expect(opacity.toString()).assertEqual((obj.$attrs.stepColor).substring(1, 3)); + expect((obj.$attrs.stepColor).substr((obj.$attrs.stepColor).length-4, 4)). + assertEqual((objSample.$attrs.backgroundColor).substr((objSample.$attrs.backgroundColor).length-4, 4)); done(); } catch (err) { expect().assertFail(); @@ -825,7 +857,7 @@ export default function sliderTest() { }, 500) }) - /** + /** * @tc.number ArkUX_Stage_Slider_stepColor_1100 * @tc.name Test the stepColor property of the Slider component * @tc.desc Do not set the stepColor @@ -837,7 +869,15 @@ export default function sliderTest() { let strJson = getInspectorByKey('ArkUX_Stage_Slider_stepColor_1100'); let obj = JSON.parse(strJson); console.info("----ArkUX_Stage_Slider_stepColor_1100 is" + JSON.stringify(obj.$attrs.stepColor)); - expect(obj.$attrs.stepColor).assertEqual("#19182431"); + let strJsonSample = getInspectorByKey('ArkUX_Stage_Slider_stepColor_marker_color_marker_color_aalpha'); + let objSample = JSON.parse(strJsonSample); + console.info("----ArkUX_Stage_Slider_stepColor_1100 is" + JSON.stringify(objSample.$attrs.backgroundColor)); + console.info("----ArkUX_Stage_Slider_stepColor_1100 is" + JSON.stringify(objSample.$attrs.opacity)); + let opacity= Math.floor(Number((parseInt(((objSample.$attrs.backgroundColor).substring(1, 3)), 16)* + (objSample.$attrs.opacity)).toString(16))) + expect(opacity.toString()).assertEqual((obj.$attrs.stepColor).substring(1, 3)); + expect((obj.$attrs.stepColor).substr((obj.$attrs.stepColor).length-4, 4)). + assertEqual((objSample.$attrs.backgroundColor).substr((objSample.$attrs.backgroundColor).length-4, 4)); done(); } catch (err) { expect().assertFail(); @@ -847,6 +887,7 @@ export default function sliderTest() { }, 500) }) + /** * @tc.number ArkUX_Stage_Slider_stepColor_1200 * @tc.name Test the stepColor property of the Slider component @@ -869,28 +910,6 @@ export default function sliderTest() { }, 500) }) - /** - * @tc.number: ArkUX_Stage_Slider_stepColor_1300 - * @tc.name: Test the stepColor property of the Slider component - * @tc.desc: Set the stepColor attribute to 0xffa500 and then set the stepColor attribute parameter again to "bgr(138,43,226)" - */ - it('ArkUX_Stage_Slider_stepColor_1300', 0, async function (done) { - console.info('[ArkUX_Stage_Slider_stepColor_1300] START'); - setTimeout(() => { - try { - let strJson = getInspectorByKey('ArkUX_Stage_Slider_stepColor_1300'); - let obj = JSON.parse(strJson); - console.info("----ArkUX_Stage_Slider_stepColor_1300 is" + JSON.stringify(obj.$attrs.stepColor)); - expect(obj.$attrs.stepColor).assertEqual("#FFFFA500"); - done(); - } catch (err) { - expect().assertFail(); - console.info('ArkUX_Stage_Slider_stepColor_1300 ERROR: ' + JSON.stringify(err)); - done(); - } - }, 500) - }) - /** * @tc.number ArkUX_Stage_Slider_trackBorderRadius_0100 * @tc.name Test the trackBorderRadius property of the Slider component diff --git a/arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/TestAbility/pages/Index.ets b/arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/TestAbility/pages/Index.ets index 4ae73bb3e26e564f86b6df122e6ae89897d22a74..fbf823a52a10f10efad5b350ef4eb5bfcbe30fa7 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/TestAbility/pages/Index.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/TestAbility/pages/Index.ets @@ -908,6 +908,7 @@ struct SwiperTest { .loop(true) .duration(1000) .itemSpace(0) + .borderColor($r("sys.color.ohos_id_color_text_primary")) .key("ArkUX_Stage_Swiper_SelectedFontColor_0500") .curve(Curve.Linear) .indicator(Indicator.digit() @@ -932,6 +933,7 @@ struct SwiperTest { .loop(true) .duration(1000) .itemSpace(0) + .borderColor($r("sys.color.ohos_id_color_text_primary")) .key("ArkUX_Stage_Swiper_SelectedFontColor_0600") .curve(Curve.Linear) .indicator(Indicator.digit() @@ -980,6 +982,7 @@ struct SwiperTest { .loop(true) .duration(1000) .itemSpace(0) + .borderColor($r("sys.color.ohos_id_color_text_primary")) .key("ArkUX_Stage_Swiper_SelectedFontColor_0800") .curve(Curve.Linear) .indicator(Indicator.digit() @@ -1004,6 +1007,7 @@ struct SwiperTest { .loop(true) .duration(1000) .itemSpace(0) + .borderColor($r("sys.color.ohos_id_color_text_primary")) .key("ArkUX_Stage_Swiper_SelectedFontColor_0900") .curve(Curve.Linear) .indicator(Indicator.digit() @@ -1079,6 +1083,7 @@ struct SwiperTest { .loop(true) .duration(1000) .itemSpace(0) + .borderColor($r("sys.color.ohos_id_color_text_primary")) .key("ArkUX_Stage_Swiper_SelectedFontColor_1200") .curve(Curve.Linear) .indicator(Indicator.digit() @@ -1201,6 +1206,7 @@ struct SwiperTest { .loop(true) .duration(1000) .itemSpace(0) + .borderColor($r("sys.color.ohos_id_color_text_primary")) .key("ArkUX_Stage_Swiper_FontColor_0500") .curve(Curve.Linear) .indicator(Indicator.digit() @@ -1225,6 +1231,7 @@ struct SwiperTest { .loop(true) .duration(1000) .itemSpace(0) + .borderColor($r("sys.color.ohos_id_color_text_primary")) .key("ArkUX_Stage_Swiper_FontColor_0600") .curve(Curve.Linear) .indicator(Indicator.digit() @@ -1273,6 +1280,7 @@ struct SwiperTest { .loop(true) .duration(1000) .itemSpace(0) + .borderColor($r("sys.color.ohos_id_color_text_primary")) .key("ArkUX_Stage_Swiper_FontColor_0800") .curve(Curve.Linear) .indicator(Indicator.digit() @@ -1297,6 +1305,7 @@ struct SwiperTest { .loop(true) .duration(1000) .itemSpace(0) + .borderColor($r("sys.color.ohos_id_color_text_primary")) .key("ArkUX_Stage_Swiper_FontColor_0900") .curve(Curve.Linear) .indicator(Indicator.digit() @@ -1372,6 +1381,7 @@ struct SwiperTest { .loop(true) .duration(1000) .itemSpace(0) + .borderColor($r("sys.color.ohos_id_color_text_primary")) .key("ArkUX_Stage_Swiper_FontColor_1200") .curve(Curve.Linear) .indicator(Indicator.digit() diff --git a/arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/test/swiper.ets b/arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/test/swiper.ets index b33c911651cd85ee32bf90aeb690e3a9298522ae..d8b427949f979b62175560f82a08cc2a004cd456 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/test/swiper.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/test/swiper.ets @@ -1060,7 +1060,7 @@ export default function swiperTest() { JSON.stringify(obj.$attrs.selectedFontColor)); let obj2 = JSON.parse(obj.$attrs.indicator); console.info("ArkUX_Stage_Swiper_SelectedFontColor_0500 component obj2 is: " + JSON.stringify(obj2)); - expect(obj2.selectedFontColor).assertEqual("#FF182431"); + expect(obj2.selectedFontColor).assertEqual(obj.$attrs.borderColor); console.info('ArkUX_Stage_Swiper_SelectedFontColor_0500 END '); done(); } catch (err) { @@ -1090,7 +1090,7 @@ export default function swiperTest() { JSON.stringify(obj.$attrs.selectedFontColor)); let obj2 = JSON.parse(obj.$attrs.indicator); console.info("ArkUX_Stage_Swiper_SelectedFontColor_0600 component obj2 is: " + JSON.stringify(obj2)); - expect(obj2.selectedFontColor).assertEqual("#FF182431"); + expect(obj2.selectedFontColor).assertEqual(obj.$attrs.borderColor); console.info('ArkUX_Stage_Swiper_SelectedFontColor_0600 END '); done(); } catch (err) { @@ -1151,7 +1151,7 @@ export default function swiperTest() { JSON.stringify(obj.$attrs.selectedFontColor)); let obj2 = JSON.parse(obj.$attrs.indicator); console.info("ArkUX_Stage_Swiper_SelectedFontColor_0800 component obj2 is: " + JSON.stringify(obj2)); - expect(obj2.selectedFontColor).assertEqual("#FF182431"); + expect(obj2.selectedFontColor).assertEqual(obj.$attrs.borderColor); console.info('ArkUX_Stage_Swiper_SelectedFontColor_0800 END '); done(); } catch (err) { @@ -1181,7 +1181,7 @@ export default function swiperTest() { JSON.stringify(obj.$attrs.selectedFontColor)); let obj2 = JSON.parse(obj.$attrs.indicator); console.info("ArkUX_Stage_Swiper_SelectedFontColor_0900 component obj2 is: " + JSON.stringify(obj2)); - expect(obj2.selectedFontColor).assertEqual("#FF182431"); + expect(obj2.selectedFontColor).assertEqual(obj.$attrs.borderColor); console.info('ArkUX_Stage_Swiper_SelectedFontColor_0900 END '); done(); } catch (err) { @@ -1274,7 +1274,7 @@ export default function swiperTest() { JSON.stringify(obj.$attrs.selectedFontColor)); let obj2 = JSON.parse(obj.$attrs.indicator); console.info("ArkUX_Stage_Swiper_SelectedFontColor_1200 component obj2 is: " + JSON.stringify(obj2)); - expect(obj2.selectedFontColor).assertEqual("#FF182431"); + expect(obj2.selectedFontColor).assertEqual(obj.$attrs.borderColor); console.info('ArkUX_Stage_Swiper_SelectedFontColor_1200 END '); done(); } catch (err) { @@ -1424,7 +1424,7 @@ export default function swiperTest() { JSON.stringify(obj.$attrs.fontColor)); let obj2 = JSON.parse(obj.$attrs.indicator); console.info("ArkUX_Stage_Swiper_FontColor_0500 component obj2 is: " + JSON.stringify(obj2)); - expect(obj2.fontColor).assertEqual("#FF182431"); + expect(obj2.fontColor).assertEqual(obj.$attrs.borderColor); console.info('ArkUX_Stage_Swiper_FontColor_0500 END '); done(); } catch (err) { @@ -1454,7 +1454,7 @@ export default function swiperTest() { JSON.stringify(obj.$attrs.fontColor)); let obj2 = JSON.parse(obj.$attrs.indicator); console.info("ArkUX_Stage_Swiper_FontColor_0600 component obj2 is: " + JSON.stringify(obj2)); - expect(obj2.fontColor).assertEqual("#FF182431"); + expect(obj2.fontColor).assertEqual(obj.$attrs.borderColor); console.info('ArkUX_Stage_Swiper_FontColor_0600 END '); done(); } catch (err) { @@ -1515,7 +1515,7 @@ export default function swiperTest() { JSON.stringify(obj.$attrs.fontColor)); let obj2 = JSON.parse(obj.$attrs.indicator); console.info("ArkUX_Stage_Swiper_FontColor_0800 component obj2 is: " + JSON.stringify(obj2)); - expect(obj2.fontColor).assertEqual("#FF182431"); + expect(obj2.fontColor).assertEqual(obj.$attrs.borderColor); console.info('ArkUX_Stage_Swiper_FontColor_0800 END '); done(); } catch (err) { @@ -1545,7 +1545,7 @@ export default function swiperTest() { JSON.stringify(obj.$attrs.fontColor)); let obj2 = JSON.parse(obj.$attrs.indicator); console.info("ArkUX_Stage_Swiper_FontColor_0900 component obj2 is: " + JSON.stringify(obj2)); - expect(obj2.fontColor).assertEqual("#FF182431"); + expect(obj2.fontColor).assertEqual(obj.$attrs.borderColor); console.info('ArkUX_Stage_Swiper_FontColor_0900 END '); done(); } catch (err) { @@ -1638,7 +1638,7 @@ export default function swiperTest() { JSON.stringify(obj.$attrs.fontColor)); let obj2 = JSON.parse(obj.$attrs.indicator); console.info("ArkUX_Stage_Swiper_FontColor_1200 component obj2 is: " + JSON.stringify(obj2)); - expect(obj2.fontColor).assertEqual("#FF182431"); + expect(obj2.fontColor).assertEqual(obj.$attrs.borderColor); console.info('ArkUX_Stage_Swiper_FontColor_1200 END '); done(); } catch (err) { diff --git a/arkui/ace_ets_components_ux/ace_ets_component_textinput/src/main/ets/TestAbility/pages/Index.ets b/arkui/ace_ets_components_ux/ace_ets_component_textinput/src/main/ets/TestAbility/pages/Index.ets index 29f16b0be33dab278a056992a9ae475329415734..e73f61ad1219365a524d05e95194f3652a6dd5c7 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_textinput/src/main/ets/TestAbility/pages/Index.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_textinput/src/main/ets/TestAbility/pages/Index.ets @@ -481,6 +481,7 @@ struct textInputTest { TextInput({ text: "input your word...", controller: this.controller }) .key("ArkUX_Stage_TextInput_selectedColor_0600") .placeholderColor(Color.Grey) + .backgroundColor($r("sys.color.ohos_id_color_text_highlight_bg")) .placeholderFont({ size: 14, weight: 400 }) .caretColor(Color.Blue) .selectedBackgroundColor("") @@ -496,6 +497,7 @@ struct textInputTest { .key("ArkUX_Stage_TextInput_selectedColor_0700") .placeholderColor(Color.Grey) .placeholderFont({ size: 14, weight: 400 }) + .backgroundColor($r("sys.color.ohos_id_color_text_highlight_bg")) .caretColor(Color.Blue) .selectedBackgroundColor(null) .margin(20) @@ -510,6 +512,7 @@ struct textInputTest { .key("ArkUX_Stage_TextInput_selectedColor_0800") .placeholderColor(Color.Grey) .placeholderFont({ size: 14, weight: 400 }) + .backgroundColor($r("sys.color.ohos_id_color_text_highlight_bg")) .caretColor(Color.Blue) .selectedBackgroundColor(undefined) .margin(20) @@ -539,6 +542,7 @@ struct textInputTest { .key("ArkUX_Stage_TextInput_selectedColor_1000") .placeholderColor(Color.Grey) .placeholderFont({ size: 14, weight: 400 }) + .backgroundColor($r("sys.color.ohos_id_color_text_highlight_bg")) .caretColor(Color.Blue) .selectedBackgroundColor(Color.Pink) .selectedBackgroundColor(undefined) @@ -585,6 +589,7 @@ struct textInputTest { .key("ArkUX_Stage_TextInput_selectedColor_1300") .placeholderColor(Color.Grey) .placeholderFont({ size: 14, weight: 400 }) + .backgroundColor($r("sys.color.ohos_id_color_text_highlight_bg")) .caretColor(Color.Blue) .margin(20) .fontSize(14) diff --git a/arkui/ace_ets_components_ux/ace_ets_component_textinput/src/main/ets/test/textinput.ets b/arkui/ace_ets_components_ux/ace_ets_component_textinput/src/main/ets/test/textinput.ets index ee1db7c85c5b0b487558239e0df7b62c52112787..4bbbfee88247bd38d8123d81931392e774cd8c3c 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_textinput/src/main/ets/test/textinput.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_textinput/src/main/ets/test/textinput.ets @@ -793,7 +793,7 @@ export default function textInputTest() { let obj = JSON.parse(strJson); console.info("ArkUX_Stage_TextInput_selectedColor_0600 component obj.$attrs.selectedBackgroundColor is: " + JSON.stringify(obj.$attrs.selectedBackgroundColor)); - expect(obj.$attrs.selectedBackgroundColor).assertEqual("#33007DFF"); + expect(obj.$attrs.selectedBackgroundColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_TextInput_selectedColor_0600 END '); } catch (err) { expect().assertFail(); @@ -817,7 +817,7 @@ export default function textInputTest() { let obj = JSON.parse(strJson); console.info("ArkUX_Stage_TextInput_selectedColor_0700 component obj.$attrs.selectedBackgroundColor is: " + JSON.stringify(obj.$attrs.selectedBackgroundColor)); - expect(obj.$attrs.selectedBackgroundColor).assertEqual("#33007DFF"); + expect(obj.$attrs.selectedBackgroundColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_TextInput_selectedColor_0700 END '); } catch (err) { expect().assertFail(); @@ -841,7 +841,7 @@ export default function textInputTest() { let obj = JSON.parse(strJson); console.info("ArkUX_Stage_TextInput_selectedColor_0800 component obj.$attrs.selectedBackgroundColor is: " + JSON.stringify(obj.$attrs.selectedBackgroundColor)); - expect(obj.$attrs.selectedBackgroundColor).assertEqual("#33007DFF"); + expect(obj.$attrs.selectedBackgroundColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_TextInput_selectedColor_0800 END '); } catch (err) { expect().assertFail(); @@ -891,7 +891,7 @@ export default function textInputTest() { let obj = JSON.parse(strJson); console.info("ArkUX_Stage_TextInput_selectedColor_1000 component obj.$attrs.selectedBackgroundColor is: " + JSON.stringify(obj.$attrs.selectedBackgroundColor)); - expect(obj.$attrs.selectedBackgroundColor).assertEqual("#33007DFF"); + expect(obj.$attrs.selectedBackgroundColor).assertEqual(obj.$attrs.backgroundColor); console.info('ArkUX_Stage_TextInput_selectedColor_1000 END '); } catch (err) { expect().assertFail(); @@ -977,7 +977,7 @@ export default function textInputTest() { console.info("ArkUX_Stage_TextInput_selectedColor_1300 component obj.$attrs.caretStyle is: " + JSON.stringify(obj.$attrs.caretStyle)); let cursorStyle = JSON.parse(obj.$attrs.caretStyle); - expect(obj.$attrs.selectedBackgroundColor).assertEqual("#33007DFF"); + expect(obj.$attrs.selectedBackgroundColor).assertEqual(obj.$attrs.backgroundColor); expect(obj.$attrs.caretPosition).assertEqual("0"); expect(cursorStyle.width ).assertEqual("1.50vp"); console.info('ArkUX_Stage_TextInput_selectedColor_1300 END ');