Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
3efbbb7f
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
3efbbb7f
编写于
3月 23, 2023
作者:
O
openharmony_ci
提交者:
Gitee
3月 23, 2023
浏览文件
操作
浏览文件
下载
差异文件
!8037 checkbox 组件UX规格与特征动效 新增XTS用例(第二批)
Merge pull request !8037 from chensi10/checkboxxts2
上级
e59ee081
af65b3e7
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
853 addition
and
0 deletion
+853
-0
arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/test/checkBox.ets
...ace_ets_component_checkbox/src/main/ets/test/checkBox.ets
+853
-0
未找到文件。
arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/test/checkBox.ets
浏览文件 @
3efbbb7f
...
...
@@ -740,5 +740,858 @@ export default function checkBoxTest() {
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkSize_0100
*tc.name Tests the CheckMarkSize property of the Checkbox component
*tc.desc Set the checkMarkSize property parameter to 0
*/
it('ArkUX_Stage_Checkbox_CheckMarkSize_0100', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0100 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkSize_0100');
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0100 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0100 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0100 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0100 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0100 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0100 component markObj.size is: " +
JSON.stringify(markObj.size));
expect(markObj.size).assertEqual("0.00vp");
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0100 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0100 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkSize_0200
*tc.name Tests the CheckMarkSize property of the Checkbox component
*tc.desc Set the checkMarkSize property parameter to 1
*/
it('ArkUX_Stage_Checkbox_CheckMarkSize_0200', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0200 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkSize_0200');
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0200 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0200 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0200 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0200 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0200 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0200 component markObj.size is: " +
JSON.stringify(markObj.size));
expect(markObj.size).assertEqual("1.00vp");
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0200 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0200 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkSize_0300
*tc.name Tests the CheckMarkSize property of the Checkbox component
*tc.desc Set the checkMarkSize property to string "60px".
*/
it('ArkUX_Stage_Checkbox_CheckMarkSize_0300', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0300 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkSize_0300');
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0300 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0300 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0300 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0300 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0300 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0300 component markObj.size is: " +
JSON.stringify(markObj.size));
expect(markObj.size).assertEqual("60.00px");
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0300 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0300 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkSize_0400
*tc.name Tests the CheckMarkSize property of the Checkbox component
*tc.desc Set the checkMarkSize property parameter to the percentage string "120%".
*/
it('ArkUX_Stage_Checkbox_CheckMarkSize_0400', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0400 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkSize_0400');
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0400 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0400 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0400 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0400 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0400 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0400 component markObj.size is: " +
JSON.stringify(markObj.size));
expect(markObj.size).assertEqual("-1.00px");
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0400 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0400 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkSize_0500
*tc.name Tests the CheckMarkSize property of the Checkbox component
*tc.desc Set the checkMarkSize property parameter to
* the resource reference type $r("app.string.Check_Mark_Size_test")
*/
it('ArkUX_Stage_Checkbox_CheckMarkSize_0500', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0500 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkSize_0500');
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0500 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0500 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0500 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0500 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0500 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0500 component markObj.size is: " +
JSON.stringify(markObj.size));
expect(markObj.size).assertEqual("50.00vp");
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0500 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0500 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkSize_0600
*tc.name Tests the CheckMarkSize property of the Checkbox component
*tc.desc Set the checkMarkSize property parameter to an outlier ""
*/
it('ArkUX_Stage_Checkbox_CheckMarkSize_0600', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0600 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkSize_0600');
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0600 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0600 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0600 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0600 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0600 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0600 component markObj.size is: " +
JSON.stringify(markObj.size));
expect(markObj.size).assertEqual("0.00vp");
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0600 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0600 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkSize_0700
*tc.name Tests the CheckMarkSize property of the Checkbox component
*tc.desc Set the checkMarkSize property parameter to an outlier null
*/
it('ArkUX_Stage_Checkbox_CheckMarkSize_0700', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0700 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkSize_0700');
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0700 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0700 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0700 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0700 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0700 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0700 component markObj.size is: " +
JSON.stringify(markObj.size));
expect(markObj.size).assertEqual("-1.00px");
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0700 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0700 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkSize_0800
*tc.name Tests the CheckMarkSize property of the Checkbox component
*tc.desc Set the checkMarkSize property parameter to an outlier undefined
*/
it('ArkUX_Stage_Checkbox_CheckMarkSize_0800', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0800 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkSize_0800');
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0800 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0800 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0800 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0800 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0800 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0800 component markObj.size is: " +
JSON.stringify(markObj.size));
expect(markObj.size).assertEqual("-1.00px");
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0800 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0800 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkSize_0900
*tc.name Tests the CheckMarkSize property of the Checkbox component
*tc.desc Set the checkMarkSize property parameter to 10
* and again set the checkMarkSize property parameter to 40
*/
it('ArkUX_Stage_Checkbox_CheckMarkSize_0900', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0900 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkSize_0900');
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0900 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0900 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0900 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0900 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0900 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_0900 component markObj.size is: " +
JSON.stringify(markObj.size));
expect(markObj.size).assertEqual("40.00fp");
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0900 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_0900 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkSize_1000
*tc.name Tests the CheckMarkSize property of the Checkbox component
*tc.desc Set the checkMarkSize property parameter to 10
* and again set the checkMarkSize property parameter to the exception value undefined
*/
it('ArkUX_Stage_Checkbox_CheckMarkSize_1000', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_1000 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkSize_1000');
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_1000 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1000 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1000 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1000 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1000 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1000 component markObj.size is: " +
JSON.stringify(markObj.size));
expect(markObj.size).assertEqual("-1.00px");
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_1000 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_1000 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkSize_1100
*tc.name Tests the CheckMarkSize property of the Checkbox component
*tc.desc Set the checkMarkSize property parameter to the outlier "asdf#$8".
*/
it('ArkUX_Stage_Checkbox_CheckMarkSize_1100', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_1100 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkSize_1100');
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_1100 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1100 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1100 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1100 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1100 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1100 component markObj.size is: " +
JSON.stringify(markObj.size));
expect(markObj.size).assertEqual("0.00vp");
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_1100 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_1100 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkSize_1200
*tc.name Tests the CheckMarkSize property of the Checkbox component
*tc.desc Set the checkMarkSize property parameter to 10lpx and the generic size property value to null
*/
it('ArkUX_Stage_Checkbox_CheckMarkSize_1200', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_1200 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkSize_1200');
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_1200 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1200 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1200 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1200 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1200 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1200 component markObj.strokeWidth is: " +
JSON.stringify(markObj.size));
expect(markObj.size).assertEqual("10.00lpx");
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_1200 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_1200 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkSize_1300
*tc.name Tests the CheckMarkSize property of the Checkbox component
*tc.desc Set the checkMarkSize property parameter to an outlier -10
*/
it('ArkUX_Stage_Checkbox_CheckMarkSize_1300', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_1300 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkSize_1300');
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_1300 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1300 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1300 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1300 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1300 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkSize_1300 component markObj.size is: " +
JSON.stringify(markObj.size));
expect(markObj.size).assertEqual("-1.00px");
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_1300 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkSize_1300 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkWidth_0100
*tc.name Tests the CheckMarkWidth property of the Checkbox component
*tc.desc Set the checkMarkWidth property parameter to 0
*/
it('ArkUX_Stage_Checkbox_CheckMarkWidth_0100', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0100 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkWidth_0100');
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0100 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0100 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0100 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0100 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0100 component markObj is: " +
JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0100 component markObj.strokeWidth is: " +
JSON.stringify(markObj.strokeWidth));
expect(markObj.strokeWidth).assertEqual("0.00vp");
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0100 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0100 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkWidth_0200
*tc.name Tests the CheckMarkWidth property of the Checkbox component
*tc.desc Set the checkMarkWidth property parameter to 1
*/
it('ArkUX_Stage_Checkbox_CheckMarkWidth_0200', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0200 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkWidth_0200');
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0200 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0200 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0200 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0200 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0200 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0200 component markObj.strokeWidth is: " +
JSON.stringify(markObj.strokeWidth));
expect(markObj.strokeWidth).assertEqual("1.00vp");
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0200 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0200 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkWidth_0300
*tc.name Tests the CheckMarkWidth property of the Checkbox component
*tc.desc Set the checkMarkWidth property to string "60px".
*/
it('ArkUX_Stage_Checkbox_CheckMarkWidth_0300', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0300 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkWidth_0300');
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0300 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0300 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0300 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0300 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0300 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0300 component markObj.strokeWidth is: " +
JSON.stringify(markObj.strokeWidth));
expect(markObj.strokeWidth).assertEqual("60.00px");
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0300 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0300 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkWidth_0400
*tc.name Tests the CheckMarkWidth property of the Checkbox component
*tc.desc Set the checkMarkWidth property argument to the percentage string "120%".
*/
it('ArkUX_Stage_Checkbox_CheckMarkWidth_0400', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0400 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkWidth_0400');
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0400 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0400 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0400 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0400 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0400 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0400 component markObj.strokeWidth is: " +
JSON.stringify(markObj.strokeWidth));
expect(markObj.strokeWidth).assertEqual("2.00vp");
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0400 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0400 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkWidth_0500
*tc.name Tests the CheckMarkWidth property of the Checkbox component
*tc.desc Set the checkMarkWidth property parameter to
* the resource reference type $r("app.string.Check_Mark_Size_test").
*/
it('ArkUX_Stage_Checkbox_CheckMarkWidth_0500', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0500 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkWidth_0500');
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0500 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0500 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0500 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0500 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0500 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0500 component markObj.strokeWidth is: " +
JSON.stringify(markObj.strokeWidth));
expect(markObj.strokeWidth).assertEqual("50.00vp");
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0500 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0500 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkWidth_0600
*tc.name Tests the CheckMarkWidth property of the Checkbox component
*tc.desc Set the checkMarkWidth property parameter to an outlier ""
*/
it('ArkUX_Stage_Checkbox_CheckMarkWidth_0600', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0600 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkWidth_0600');
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0600 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0600 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0600 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0600 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0600 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0600 component markObj.strokeWidth is: " +
JSON.stringify(markObj.strokeWidth));
expect(markObj.strokeWidth).assertEqual("0.00vp");
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0600 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0600 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkWidth_0700
*tc.name Tests the CheckMarkWidth property of the Checkbox component
*tc.desc Set the checkMarkWidth property parameter to an outlier null
*/
it('ArkUX_Stage_Checkbox_CheckMarkWidth_0700', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0700 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkWidth_0700');
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0700 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0700 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0700 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0700 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0700 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0700 component markObj.strokeWidth is: " +
JSON.stringify(markObj.strokeWidth));
expect(markObj.strokeWidth).assertEqual("2.00vp");
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0700 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0700 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkWidth_0800
*tc.name Tests the CheckMarkWidth property of the Checkbox component
*tc.desc Set the checkMarkWidth property parameter to an outlier undefined
*/
it('ArkUX_Stage_Checkbox_CheckMarkWidth_0800', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0800 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkWidth_0800');
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0800 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0800 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0800 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0800 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0800 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0800 component markObj.strokeWidth is: " +
JSON.stringify(markObj.strokeWidth));
expect(markObj.strokeWidth).assertEqual("2.00vp");
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0800 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0800 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkWidth_0900
*tc.name Tests the CheckMarkWidth property of the Checkbox component
*tc.desc Set the checkMarkWidth property parameter to 10 and the checkMarkWidth property parameter to 5fp again
*/
it('ArkUX_Stage_Checkbox_CheckMarkWidth_0900', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0900 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkWidth_0900');
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0900 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0900 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0900 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0900 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0900 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0900 component markObj.strokeWidth is: " +
JSON.stringify(markObj.strokeWidth));
expect(markObj.strokeWidth).assertEqual("5.00fp");
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0900 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_0900 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkWidth_1000
*tc.name Tests the CheckMarkWidth property of the Checkbox component
*tc.desc Set the checkMarkWidth property parameter to 10
* and again set the checkMarkWidth property parameter to the exception value undefined
*/
it('ArkUX_Stage_Checkbox_CheckMarkWidth_1000', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1000 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkWidth_1000');
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1000 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1000 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1000 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1000 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1000 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1000 component markObj.strokeWidth is: " +
JSON.stringify(markObj.strokeWidth));
expect(markObj.strokeWidth).assertEqual("2.00vp");
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1000 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1000 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkWidth_1100
*tc.name Tests the CheckMarkWidth property of the Checkbox component
*tc.desc Set the checkMarkWidth property parameter to an exception value of "asdf#$8".
*/
it('ArkUX_Stage_Checkbox_CheckMarkWidth_1100', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1100 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkWidth_1100');
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1100 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1100 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1100 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1100 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1100 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1100 component markObj.strokeWidth is: " +
JSON.stringify(markObj.strokeWidth));
expect(markObj.strokeWidth).assertEqual("0.00vp");
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1100 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1100 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkWidth_1200
*tc.name Tests the CheckMarkWidth property of the Checkbox component
*tc.desc Set the checkMarkWidth property parameter to "40lpx" and the common property width property value to null
*/
it('ArkUX_Stage_Checkbox_CheckMarkWidth_1200', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1200 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkWidth_1200');
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1200 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1200 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1200 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1200 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0100 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_0100 component markObj.strokeWidth is: " +
JSON.stringify(markObj.strokeWidth));
expect(markObj.strokeWidth).assertEqual("40.00lpx");
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1200 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1200 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkWidth_1300
*tc.name Tests the CheckMarkWidth property of the Checkbox component
*tc.desc Set the checkMarkWidth property parameter to an exception value of -1.
*/
it('ArkUX_Stage_Checkbox_CheckMarkWidth_1300', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1300 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkWidth_1300');
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1300 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1300 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1300 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1300 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1300 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1300 component markObj.strokeWidth is: " +
JSON.stringify(markObj.strokeWidth));
expect(markObj.strokeWidth).assertEqual("2.00vp");
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1300 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1300 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
/*
*tc.number ArkUX_Stage_Checkbox_CheckMarkWidth_1400
*tc.name Tests the CheckMarkWidth&checkMarkSize&checkMarkColor&unselectedColor property
of the Checkbox component
*tc.desc Simultaneous setting checkMarkWidth(40) checkMarkSize(40)
* checkMarkColor(0x00ff00) unselectedColor(Color.Pink)
*/
it('ArkUX_Stage_Checkbox_CheckMarkWidth_1400', 0, async function (done) {
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1400 START');
setTimeout(() => {
try {
let strJson = getInspectorByKey('ArkUX_Stage_Checkbox_CheckMarkWidth_1400');
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1400 START :' + JSON.stringify(strJson));
let obj = JSON.parse(strJson);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1400 component obj is: " + JSON.stringify(obj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1400 component obj.$attrs is: " +
JSON.stringify(obj.$attrs));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1400 component obj.$attrs.mark is: " +
JSON.stringify(obj.$attrs.mark));
let markObj = JSON.parse(obj.$attrs.mark);
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1400 component markObj is: " + JSON.stringify(markObj));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1400 component markObj.strokeWidth is: " +
JSON.stringify(markObj.strokeWidth));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1400 component markObj.strokeColor is: " +
JSON.stringify(markObj.strokeColor));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1400 component markObj.strokeWidth is: " +
JSON.stringify(markObj.strokeWidth));
console.info("ArkUX_Stage_Checkbox_CheckMarkWidth_1400 component markObj.unselectedColor is: " +
JSON.stringify(obj.$attrs.unselectedColor));
expect(markObj.strokeWidth).assertEqual("40.00vp");
expect(markObj.size).assertEqual("40.00vp");
expect(markObj.strokeColor).assertEqual("#FF00FF00");
expect(obj.$attrs.unselectedColor).assertEqual("#FFFFC0CB");
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1400 END ');
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_Checkbox_CheckMarkWidth_1400 ERR ' + JSON.stringify(err));
}
done();
}, 500)
});
})
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录