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

!9936 slider开发代码变更导致测试代码对应修改

Merge pull request !9936 from sunjiakun/master
......@@ -1063,7 +1063,7 @@ export default function sliderTest() {
let strJson = getInspectorByKey('ArkUX_Stage_Slider_trackBorderRadius_0600');
let obj = JSON.parse(strJson);
console.info("----ArkUX_Stage_Slider_trackBorderRadius_0600 is" + JSON.stringify(obj.$attrs.trackBorderRadius));
expect(parseFloat(obj.$attrs.trackBorderRadius)).assertEqual(0);
expect(obj.$attrs.trackBorderRadius).assertEqual(undefined);
done();
} catch (err) {
expect().assertFail();
......@@ -1217,7 +1217,7 @@ export default function sliderTest() {
let strJson = getInspectorByKey('ArkUX_Stage_Slider_trackBorderRadius_1300');
let obj = JSON.parse(strJson);
console.info("----ArkUX_Stage_Slider_trackBorderRadius_1300 is" + JSON.stringify(obj.$attrs.trackBorderRadius));
expect(parseFloat(obj.$attrs.trackBorderRadius)).assertEqual(0);
expect(obj.$attrs.trackBorderRadius).assertEqual(undefined);
done();
} catch (err) {
expect().assertFail();
......@@ -1562,7 +1562,7 @@ export default function sliderTest() {
let width = obj.$attrs.blockSize.width ;
let height = obj.$attrs.blockSize.height ;
expect(parseFloat(width)).assertEqual(12);
expect(parseFloat(height)).assertEqual(15);
expect(parseFloat(height)).assertEqual(12);
expect(width.substr(width.length-2, 2)).assertEqual("vp");
expect(height.substr(height.length-2, 2)).assertEqual("vp");
done();
......@@ -1588,7 +1588,7 @@ export default function sliderTest() {
console.info("----ArkUX_Stage_Slider_blockSize_1300 is " + JSON.stringify(obj.$attrs.blockSize));
let width = obj.$attrs.blockSize.width ;
let height = obj.$attrs.blockSize.height ;
expect(parseFloat(width)).assertEqual(15);
expect(parseFloat(width)).assertEqual(12);
expect(parseFloat(height)).assertEqual(12);
expect(width.substr(width.length-2, 2)).assertEqual("vp");
expect(height.substr(height.length-2, 2)).assertEqual("vp");
......@@ -1678,8 +1678,8 @@ export default function sliderTest() {
console.info("----ArkUX_Stage_Slider_blockSize_1600 is " + JSON.stringify(obj.$attrs.blockSize));
let width = obj.$attrs.blockSize.width ;
let height = obj.$attrs.blockSize.height ;
expect(parseFloat(width)).assertEqual(15);
expect(parseFloat(height)).assertEqual(20);
expect(parseFloat(width)).assertEqual(12);
expect(parseFloat(height)).assertEqual(12);
expect(width.substr(width.length-2, 2)).assertEqual("vp");
expect(height.substr(height.length-2, 2)).assertEqual("vp");
done();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册