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 new file mode 100644 index 0000000000000000000000000000000000000000..31bd593f5b87c22505a8fc897203a597eafd9ec1 --- /dev/null +++ b/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/TestAbility/pages/CheckBoxGroup.ets @@ -0,0 +1,566 @@ +/* + * Copyright (c) 2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + //@ts-nocheck +import events_emitter from '@ohos.events.emitter'; +import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'; +import { Hypium } from '@ohos/hypium'; +import hilog from '@ohos.hilog'; +import testsuite from '../../test/List.test' +@Entry +@Component +struct checkBoxTest { + + aboutToAppear() { + } + + build() { + Row() { + Column() { + List({space: 0, initialIndex: 0 }){ + ListItem(){ + Checkbox({name: 'checkbox1', group: 'checkboxGroup2'}) + .select(true) + .selectedColor(0xed6f21) + .unselectedColor(0x00ff00) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + Checkbox({name: 'checkbox2', group: 'checkboxGroup2'}) + .select(false) + .selectedColor(0xed6f21) + .unselectedColor("#fffd0000") + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0100") + .selectAll(true) + .selectedColor(0xed6f21) + .mark({strokeColor:0x00ff00}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup2'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0200") + .selectedColor(0xed6f21) + .mark({strokeColor:"#fffd0000"}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup3'}) + .selectAll(false) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0300") + .selectedColor(0xed6f21) + .mark({strokeColor:"rgb(138,43,226)"}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup4'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0400") + .selectedColor(0xed6f21) + .mark({strokeColor:Color.Pink}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup5'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0500") + .selectedColor(0xed6f21) + .mark({strokeColor:$r("app.color.checkbox_Color")}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup6'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0600") + .selectedColor(0xed6f21) + .mark({strokeColor:""}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup7'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0700") + .selectedColor(0xed6f21) + .mark({strokeColor:null}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup8'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0800") + .selectedColor(0xed6f21) + .mark({strokeColor:undefined}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup9'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0900") + .selectedColor(0xed6f21) + .mark({strokeColor:Color.Pink}) + .mark({strokeColor:"#FFFD0000"}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup10'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1000") + .selectedColor(0xed6f21) + .mark({strokeColor:Color.Pink}) + .mark({strokeColor:'bgr(138,43,226)'}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup11'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1100") + .selectedColor(0xed6f21) + .mark({strokeColor:'bgr(138,43,226)'}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup12'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1200") + .selectedColor(0xed6f21) + .mark({strokeColor:0x00ff00}) + .backgroundColor(null) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup12'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1300") + .selectedColor(0xed6f21) + .mark({strokeColor:-1}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup13'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkSize_0100") + .selectedColor(0xed6f21) + .mark({size:0}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup14'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkSize_0200") + .selectedColor(0xed6f21) + .mark({size:10}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup15'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkSize_0300") + .selectedColor(0xed6f21) + .mark({size:"60px"}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup16'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkSize_0400") + .selectedColor(0xed6f21) + .mark({size:"120%"}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup17'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkSize_0500") + .selectedColor(0xed6f21) + .mark({size:$r("app.string.Check_Mark_Size_test")}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup18'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkSize_0600") + .selectedColor(0xed6f21) + .mark({size:""}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup19'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkSize_0700") + .selectedColor(0xed6f21) + .mark({size:null}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup20'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkSize_0800") + .selectedColor(0xed6f21) + .mark({size:undefined}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup21'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkSize_0900") + .selectedColor(0xed6f21) + .mark({size:10}) + .mark({size:"40fp"}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup22'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkSize_1000") + .selectedColor(0xed6f21) + .mark({size:10}) + .mark({size:undefined}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup23'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkSize_1100") + .selectedColor(0xed6f21) + .mark({size:"asdf#$8"}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup24'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkSize_1200") + .selectedColor(0xed6f21) + .mark({size:"10.00lpx"}) + .size(null) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup24'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkSize_1300") + .selectedColor(0xed6f21) + .mark({size:-10}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup25'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkWidth_0100") + .selectedColor(0xed6f21) + .mark({strokeWidth:0}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup26'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkWidth_0200") + .selectedColor(0xed6f21) + .mark({strokeWidth:1}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup27'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkWidth_0300") + .selectedColor(0xed6f21) + .mark({strokeWidth:"60px"}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup28'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkWidth_0400") + .selectedColor(0xed6f21) + .mark({strokeWidth:"120%"}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup29'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkWidth_0500") + .selectedColor(0xed6f21) + .mark({strokeWidth:$r("app.string.Check_Mark_Size_test")}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup30'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkWidth_0600") + .selectedColor(0xed6f21) + .mark({strokeWidth:""}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup31'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkWidth_0700") + .selectedColor(0xed6f21) + .mark({strokeWidth:null}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup32'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkWidth_0800") + .selectedColor(0xed6f21) + .mark({strokeWidth:undefined}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup33'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkWidth_0900") + .selectedColor(0xed6f21) + .mark({strokeWidth:10}) + .mark({strokeWidth:"5fp"}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup34'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkWidth_1000") + .selectedColor(0xed6f21) + .mark({strokeWidth:10}) + .mark({strokeWidth:undefined}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup35'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkWidth_1100") + .selectedColor(0xed6f21) + .mark({strokeWidth:"frgw*&^%"}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup36'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkWidth_1200") + .selectedColor(0xed6f21) + .mark({strokeWidth:"40lpx"}) + .width(null) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup37'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkWidth_1300") + .selectedColor(0xed6f21) + .unselectedColor(Color.Pink) + .mark({strokeWidth:-1}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup37'}) + .key("ArkUX_Stage_CheckboxGroup_CheckMarkWidth_1400") + .selectedColor(0xed6f21) + .unselectedColor(Color.Pink) + .mark({strokeColor:0x00ff00, size:40, strokeWidth:40}) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup38'}) + .key("ArkUX_Stage_CheckboxGroup_unselectedColor_0100") + .selectedColor(0xed6f21) + .unselectedColor(0x00ff00) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup39'}) + .key("ArkUX_Stage_CheckboxGroup_unselectedColor_0200") + .selectedColor(0xed6f21) + .unselectedColor('#fffd0000') + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup40'}) + .key("ArkUX_Stage_CheckboxGroup_unselectedColor_0300") + .selectedColor(0xed6f21) + .unselectedColor("rgb(138,43,226)") + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup41'}) + .key("ArkUX_Stage_CheckboxGroup_unselectedColor_0400") + .selectedColor(0xed6f21) + .unselectedColor(Color.Pink) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup42'}) + .key("ArkUX_Stage_CheckboxGroup_unselectedColor_0500") + .selectedColor(0xed6f21) + .unselectedColor($r("app.color.checkbox_Color")) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup43'}) + .key("ArkUX_Stage_CheckboxGroup_unselectedColor_0600") + .selectedColor(0xed6f21) + .unselectedColor("") + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup44'}) + .key("ArkUX_Stage_CheckboxGroup_unselectedColor_0700") + .selectedColor(0xed6f21) + .unselectedColor(null) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup45'}) + .key("ArkUX_Stage_CheckboxGroup_unselectedColor_0800") + .selectedColor(0xed6f21) + .unselectedColor(undefined) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup46'}) + .key("ArkUX_Stage_CheckboxGroup_unselectedColor_0900") + .selectedColor(0xed6f21) + .unselectedColor(Color.Pink) + .unselectedColor("#FFFD0000") + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup47'}) + .key("ArkUX_Stage_CheckboxGroup_unselectedColor_1000") + .selectedColor(0xed6f21) + .unselectedColor(Color.Pink) + .unselectedColor(undefined) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup48'}) + .key("ArkUX_Stage_CheckboxGroup_unselectedColor_1100") + .selectedColor(0xed6f21) + .unselectedColor('bgr(138,43,226)') + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup49'}) + .key("ArkUX_Stage_CheckboxGroup_unselectedColor_1200") + .selectedColor(0xed6f21) + .unselectedColor(0x00ff00) + .backgroundColor(null) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroup49'}) + .key("ArkUX_Stage_CheckboxGroup_unselectedColor_1300") + .selectedColor(0xed6f21) + .unselectedColor(-1) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + CheckboxGroup({group: 'checkboxGroupNO'}) + .key("checkboxGroupNO") + .selectedColor(0xed6f21) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + ListItem(){ + Checkbox({name: 'checkbox3', group: 'checkboxGroupNO'}) + .key("checkboxNO") + .select(true) + .selectedColor(0xed6f21) + .onChange((value: boolean) => { + console.info('Checkbox1 change is'+ value) + }) + } + } + } + .width('100%') + } + .height('100%') + } +} diff --git a/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/test/List.test.ets b/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/test/List.test.ets index 3266ee41d5c1225a311d2f466bf208d87a18e9aa..340622b55625ec047b152c239931f4e7ae6a2aa4 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/test/List.test.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/test/List.test.ets @@ -13,7 +13,9 @@ * limitations under the License. */ import checkBoxTest from './checkBox' +import checkBoxGroupTest from './checkBoxGroup' export default function testsuite() { checkBoxTest() + checkBoxGroupTest() } \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a524fcde521345756869f10eeb7ea99df03fb5d5 --- /dev/null +++ b/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/test/checkBoxGroup.ets @@ -0,0 +1,755 @@ +/* + * Copyright (c) 2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// @ts-nocheck +import { describe, beforeEach, afterEach, it, expect } from '@ohos/hypium' +import router from '@system.router'; +export default function checkBoxGroupTest() { + describe('ActsCheckBoxGroupTest', function () { + + beforeEach(async function (done) { + let options = { + uri: "TestAbility/pages/CheckBoxGroup", + } + try { + router.clear(); + let pages = router.getState(); + console.info("get CheckBoxGroup state success " + JSON.stringify(pages)); + if (!("CheckBoxGroup" == pages.name)) { + console.info("get CheckBoxGroup state success " + JSON.stringify(pages.name)); + let result = await router.push(options) + console.info("push CheckBoxGroup page success " + JSON.stringify(result)); + } + } catch (err) { + console.error("push CheckBoxGroup page error " + JSON.stringify(err)); + } + await sleep(2) + done() + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_unselectedColor_0100 + *tc.name Tests the unselectedColor property of the CheckboxGroup component + *tc.desc Set the unselectedColor property parameter to 0x00ff00 + */ + it('ArkUX_Stage_CheckboxGroup_unselectedColor_0100', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0100 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_unselectedColor_0100'); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0100 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0100 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0100 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0100 component obj.$attrs.unselectedColor is: " + + JSON.stringify(obj.$attrs.unselectedColor)); + expect(obj.$attrs.unselectedColor).assertEqual("#FF00FF00"); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0100 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0100 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_unselectedColor_0200 + *tc.name Tests the unselectedColor property of the CheckboxGroup component + *tc.desc Set the unselectedColor property parameter to '#fffd0000' + */ + it('ArkUX_Stage_CheckboxGroup_unselectedColor_0200', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0200 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_unselectedColor_0200'); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0200 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0200 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0200 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0200 component obj.$attrs.unselectedColor is: " + + JSON.stringify(obj.$attrs.unselectedColor)); + expect(obj.$attrs.unselectedColor).assertEqual("#FFFD0000"); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0200 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0200 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_unselectedColor_0300 + *tc.name Tests the unselectedColor property of the CheckboxGroup component + *tc.desc Set the unselectedColor property parameter to 'rgb(138,43,226)' + */ + it('ArkUX_Stage_CheckboxGroup_unselectedColor_0300', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0300 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_unselectedColor_0300'); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0300 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0300 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0300 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0300 component obj.$attrs.unselectedColor is: " + + JSON.stringify(obj.$attrs.unselectedColor)); + expect(obj.$attrs.unselectedColor).assertEqual("#FF8A2BE2"); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0300 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0300 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_unselectedColor_0400 + *tc.name Tests the unselectedColor property of the CheckboxGroup component + *tc.desc Set the unselectedColor property parameter to Color.Pink + */ + it('ArkUX_Stage_CheckboxGroup_unselectedColor_0400', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0400 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_unselectedColor_0400'); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0400 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0400 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0400 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0400 component obj.$attrs.unselectedColor is: " + + JSON.stringify(obj.$attrs.unselectedColor)); + expect(obj.$attrs.unselectedColor).assertEqual("#FFFFC0CB"); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0400 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0400 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_unselectedColor_0500 + *tc.name Tests the unselectedColor property of the CheckboxGroup component + *tc.desc Set the unselectedColor property parameter to $r("app.color.checkbox_Color") + */ + it('ArkUX_Stage_CheckboxGroup_unselectedColor_0500', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0500 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_unselectedColor_0500'); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0500 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0500 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0500 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0500 component obj.$attrs.unselectedColor is: " + + JSON.stringify(obj.$attrs.unselectedColor)); + expect(obj.$attrs.unselectedColor).assertEqual("#FFFD0000"); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0500 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0500 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_unselectedColor_0600 + *tc.name Tests the unselectedColor property of the CheckboxGroup component + *tc.desc Set the unselectedColor property parameter to an outlier "" + */ + it('ArkUX_Stage_CheckboxGroup_unselectedColor_0600', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0600 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_unselectedColor_0600'); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0600 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0600 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0600 component obj.$attrs is: " + + 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"); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0600 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0600 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_unselectedColor_0700 + *tc.name Tests the unselectedColor property of the CheckboxGroup component + *tc.desc Set the unselectedColor property parameter to an outlier null + */ + it('ArkUX_Stage_CheckboxGroup_unselectedColor_0700', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0700 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_unselectedColor_0700'); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0700 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0700 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0700 component obj.$attrs is: " + + 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"); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0700 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0700 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_unselectedColor_0800 + *tc.name Tests the unselectedColor property of the CheckboxGroup component + *tc.desc Set the unselectedColor property parameter to an outlier undefined + */ + it('ArkUX_Stage_CheckboxGroup_unselectedColor_0800', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0800 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_unselectedColor_0800'); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0800 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0800 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0800 component obj.$attrs is: " + + 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"); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0800 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0800 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_unselectedColor_0900 + *tc.name Tests the unselectedColor property of the CheckboxGroup component + *tc.desc Set the unselectedColor property parameter to Color.Pink + * and again set the unselectedColor property parameter to "#FFFD0000". + */ + it('ArkUX_Stage_CheckboxGroup_unselectedColor_0900', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0900 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_unselectedColor_0900'); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0900 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0900 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0900 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_0900 component obj.$attrs.unselectedColor is: " + + JSON.stringify(obj.$attrs.unselectedColor)); + expect(obj.$attrs.unselectedColor).assertEqual("#FFFD0000"); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0900 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_0900 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_unselectedColor_1000 + *tc.name Tests the unselectedColor property of the CheckboxGroup component + *tc.desc Set the unselectedColor property parameter to Color.Pink + * and again set the unselectedColor property parameter to the outlier value of undefined + */ + it('ArkUX_Stage_CheckboxGroup_unselectedColor_1000', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_1000 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_unselectedColor_1000'); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_1000 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_1000 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_1000 component obj.$attrs is: " + + 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"); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_1000 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_1000 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_unselectedColor_1100 + *tc.name Tests the unselectedColor property of the CheckboxGroup component + *tc.desc Set unselectedColor property parameter to outlier 'bgr(138,43,226)' + */ + it('ArkUX_Stage_CheckboxGroup_unselectedColor_1100', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_1100 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_unselectedColor_1100'); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_1100 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_1100 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_1100 component obj.$attrs is: " + + 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"); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_1100 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_1100 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_unselectedColor_1200 + *tc.name Tests the unselectedColor property of the CheckboxGroup component + *tc.desc Set the unselectedColor property parameter to 0x00ff00 + * and the universal property backgroundColor property value to the outlier null + */ + it('ArkUX_Stage_CheckboxGroup_unselectedColor_1200', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_1200 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_unselectedColor_1200'); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_1200 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_1200 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_1200 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_unselectedColor_1200 component obj.$attrs.unselectedColor is: " + + JSON.stringify(obj.$attrs.unselectedColor)); + expect(obj.$attrs.unselectedColor).assertEqual("#FF00FF00"); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_1200 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_unselectedColor_1200 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_CheckMarkColor_0100 + *tc.name Tests the CheckMarkColor property of the CheckboxGroup component + *tc.desc Set the checkMarkColor property parameter to 0x00ff00 + */ + it('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0100', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0100 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0100'); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0100 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0100 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0100 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0100 component obj.$attrs.mark is: " + + JSON.stringify(obj.$attrs.mark)); + let markObj = JSON.parse(obj.$attrs.mark); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0100 component markObj is: " + + JSON.stringify(markObj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0100 component markObj.strokeColor is: " + + JSON.stringify(markObj.strokeColor)); + expect(markObj.strokeColor).assertEqual("#FF00FF00"); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0100 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0100 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_CheckMarkColor_0200 + *tc.name Tests the CheckMarkColor property of the CheckboxGroup component + *tc.desc Set the checkMarkColor property parameter to '#fffd0000' + */ + it('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0200', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0200 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0200'); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0200 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0200 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0200 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0200 component obj.$attrs.strokeColor is: " + + JSON.stringify(obj.$attrs.mark)); + let markObj = JSON.parse(obj.$attrs.mark); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0200 component markObj is: " + + JSON.stringify(markObj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0200 component markObj.strokeColor is: " + + JSON.stringify(markObj.strokeColor)); + expect(markObj.strokeColor).assertEqual("#FFFD0000"); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0200 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0200 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_CheckMarkColor_0300 + *tc.name Tests the CheckMarkColor property of the CheckboxGroup component + *tc.desc Set the checkMarkColor property parameter to 'rgb(138,43,226)' + */ + it('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0300', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0300 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0300'); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0300 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0300 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0300 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0300 component obj.$attrs.strokeColor is: " + + JSON.stringify(obj.$attrs.mark)); + let markObj = JSON.parse(obj.$attrs.mark); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0300 component markObj is: " + + JSON.stringify(markObj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0300 component markObj.strokeColor is: " + + JSON.stringify(markObj.strokeColor)); + expect(markObj.strokeColor).assertEqual("#FF8A2BE2"); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0300 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0300 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_CheckMarkColor_0400 + *tc.name Tests the CheckMarkColor property of the CheckboxGroup component + *tc.desc Set the checkMarkColor property parameter to Color.Pink + */ + it('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0400', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0400 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0400'); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0400 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0400 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0400 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0400 component obj.$attrs.strokeColor is: " + + JSON.stringify(obj.$attrs.mark)); + let markObj = JSON.parse(obj.$attrs.mark); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0400 component markObj is: " + + JSON.stringify(markObj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0400 component markObj.strokeColor is: " + + JSON.stringify(markObj.strokeColor)); + expect(markObj.strokeColor).assertEqual("#FFFFC0CB"); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0400 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0400 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_CheckMarkColor_0500 + *tc.name Tests the CheckMarkColor property of the CheckboxGroup component + *tc.desc Set the checkMarkColor property parameter to $r("app.color.checkbox_Color") + */ + it('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0500', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0500 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0500'); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0500 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0500 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0500 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0500 component obj.$attrs.strokeColor is: " + + JSON.stringify(obj.$attrs.mark)); + let markObj = JSON.parse(obj.$attrs.mark); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0500 component markObj is: " + + JSON.stringify(markObj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0500 component markObj.strokeColor is: " + + JSON.stringify(markObj.strokeColor)); + expect(markObj.strokeColor).assertEqual("#FFFD0000"); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0500 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0500 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_CheckMarkColor_0600 + *tc.name Tests the CheckMarkColor property of the CheckboxGroup component + *tc.desc Set the checkMarkColor property parameter to an outlier "" + */ + it('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0600', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0600 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0600'); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0600 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0600 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0600 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0600 component obj.$attrs.strokeColor is: " + + JSON.stringify(obj.$attrs.mark)); + let markObj = JSON.parse(obj.$attrs.mark); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0600 component markObj is: " + + JSON.stringify(markObj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0600 component markObj.strokeColor is: " + + JSON.stringify(markObj.strokeColor)); + expect(markObj.strokeColor).assertEqual("#FFFFFFFF"); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0600 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0600 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_CheckMarkColor_0700 + *tc.name Tests the CheckMarkColor property of the CheckboxGroup component + *tc.desc Set the checkMarkColor property parameter to an outlier null + */ + it('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0700', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0700 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0700'); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0700 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0700 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0700 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0700 component obj.$attrs.strokeColor is: " + + JSON.stringify(obj.$attrs.mark)); + let markObj = JSON.parse(obj.$attrs.mark); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0700 component markObj is: " + + JSON.stringify(markObj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0700 component markObj.strokeColor is: " + + JSON.stringify(markObj.strokeColor)); + expect(markObj.strokeColor).assertEqual("#FFFFFFFF"); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0700 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0700 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_CheckMarkColor_0800 + *tc.name Tests the CheckMarkColor property of the CheckboxGroup component + *tc.desc Set the checkMarkColor property parameter to an outlier undefined + */ + it('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0800', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0800 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0800'); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0800 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0800 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0800 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0800 component obj.$attrs.strokeColor is: " + + JSON.stringify(obj.$attrs.mark)); + let markObj = JSON.parse(obj.$attrs.mark); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0800 component markObj is: " + + JSON.stringify(markObj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0800 component markObj.strokeColor is: " + + JSON.stringify(markObj.strokeColor)); + expect(markObj.strokeColor).assertEqual("#FFFFFFFF"); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0800 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0800 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_CheckMarkColor_0900 + *tc.name Tests the CheckMarkColor property of the CheckboxGroup component + *tc.desc Set the checkMarkColor property parameter to Color.Pink + * and again set the checkMarkColor property parameter to "#FFFD0000". + */ + it('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0900', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0900 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0900'); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0900 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0900 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0900 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0900 component obj.$attrs.strokeColor is: " + + JSON.stringify(obj.$attrs.mark)); + let markObj = JSON.parse(obj.$attrs.mark); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0900 component markObj is: " + + JSON.stringify(markObj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_0900 component markObj.strokeColor is: " + + JSON.stringify(markObj.strokeColor)); + expect(markObj.strokeColor).assertEqual("#FFFD0000"); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0900 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_0900 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_CheckMarkColor_1000 + *tc.name Tests the CheckMarkColor property of the CheckboxGroup component + *tc.desc Set the checkMarkColor property parameter to Color.Pink + * and again set the checkMarkColor property parameter to the outlier 'bgr(138,43,226)'. + */ + it('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1000', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1000 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1000'); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1000 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1000 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1000 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1000 component obj.$attrs.strokeColor is: " + + JSON.stringify(obj.$attrs.mark)); + let markObj = JSON.parse(obj.$attrs.mark); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1000 component markObj is: " + + JSON.stringify(markObj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1000 component markObj.strokeColor is: " + + JSON.stringify(markObj.strokeColor)); + expect(markObj.strokeColor).assertEqual("#FFFFFFFF"); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1000 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1000 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_CheckMarkColor_1100 + *tc.name Tests the CheckMarkColor property of the CheckboxGroup component + *tc.desc Set checkMarkColor property parameter to outlier 'bgr(138,43,226)' + */ + it('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1100', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1100 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1100'); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1100 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1100 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1100 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1100 component obj.$attrs.strokeColor is: " + + JSON.stringify(obj.$attrs.mark)); + let markObj = JSON.parse(obj.$attrs.mark); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1100 component markObj is: " + + JSON.stringify(markObj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1100 component markObj.strokeColor is: " + + JSON.stringify(markObj.strokeColor)); + expect(markObj.strokeColor).assertEqual("#FFFFFFFF"); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1100 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1100 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + + /* + *tc.number ArkUX_Stage_CheckboxGroup_CheckMarkColor_1200 + *tc.name Tests the CheckMarkColor property of the CheckboxGroup component + *tc.desc Set the checkMarkColor property parameter to 0x00ff00 + * and the universal property backgroundColor property value to null outlier + */ + it('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1200', 0, async function (done) { + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1200 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1200'); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1200 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1200 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1200 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1200 component obj.$attrs.strokeColor is: " + + JSON.stringify(obj.$attrs.mark)); + let markObj = JSON.parse(obj.$attrs.mark); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1200 component markObj is: " + + JSON.stringify(markObj)); + console.info("ArkUX_Stage_CheckboxGroup_CheckMarkColor_1200 component markObj.strokeColor is: " + + JSON.stringify(markObj.strokeColor)); + expect(markObj.strokeColor).assertEqual("#FF00FF00"); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1200 END '); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_CheckboxGroup_CheckMarkColor_1200 ERR ' + JSON.stringify(err)); + } + done(); + }, 500) + }); + }) +} diff --git a/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/resources/base/profile/test_pages.json b/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/resources/base/profile/test_pages.json index 9a6f81c35e5ec878d121dd012f3f9327874df333..6bdf20bbd1d77dd91644ecdb41589322892f117a 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/resources/base/profile/test_pages.json +++ b/arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/resources/base/profile/test_pages.json @@ -1,6 +1,7 @@ { "src": [ "TestAbility/pages/Index", - "TestAbility/pages/CheckBox" + "TestAbility/pages/CheckBox", + "TestAbility/pages/CheckBoxGroup" ] }