未验证 提交 3efbbb7f 编写于 作者: O openharmony_ci 提交者: Gitee

!8037 checkbox 组件UX规格与特征动效 新增XTS用例(第二批)

Merge pull request !8037 from chensi10/checkboxxts2
......@@ -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.
先完成此消息的编辑!
想要评论请 注册