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

!9628 patternlock更改ace_ets_component_ui的patternLock部分

Merge pull request !9628 from tengfan/patternlock_0731
......@@ -117,7 +117,19 @@ struct PatternLockPage {
})
Text(this.passwords.toString()).margin(20).fontSize(15).key('password1')
PatternLock(this.patternLockController).key('default')
PatternLock(this.patternLockController)
.key('default')
PatternLock(this.patternLockController)
.key('PatternLock')
.sideLength(96*3)
.circleRadius(6)
.regularColor($r('sys.color.ohos_id_color_foreground'))
.selectedColor($r('sys.color.ohos_id_color_foreground'))
.activeColor($r('sys.color.ohos_id_color_foreground'))
.pathColor($r('sys.color.ohos_id_color_fourth'))
.pathStrokeWidth(12)
.autoReset(true)
}.width('100%').height('100%')
}
}
\ No newline at end of file
......@@ -220,24 +220,22 @@ export default function PatternLockJsunit() {
});
it('PatternLockJsunit_1300', 0, async function (done) {
// Verify default value of the PatternLock component
console.info('[PatternLockJsunit_1300] START');
let strJson = getInspectorByKey('default');
let obj = JSON.parse(strJson);
console.info("[PatternLockJsunit_1300'] component obj is: " + JSON.stringify(obj));
await CommonFunc.sleep(1000);
// Verify password for the first time
expect(obj.$attrs.sideLength).assertEqual('300.00vp');
expect(obj.$attrs.circleRadius).assertEqual('14.00vp');
expect(obj.$attrs.regularColor).assertEqual('#FF000000');
expect(obj.$attrs.selectedColor).assertEqual('#FF000000');
expect(obj.$attrs.activeColor).assertEqual('#FF000000');
expect(obj.$attrs.pathColor).assertEqual('#FF0000FF');
expect(obj.$attrs.pathStrokeWidth).assertEqual('34.00vp');
expect(obj.$attrs.autoReset).assertEqual('true');
await CommonFunc.sleep(1000);
let newStrJson = getInspectorByKey('PatternLock');
let newObj = JSON.parse(newStrJson);
expect(obj.$attrs.sideLength).assertEqual(newObj.$attrs.sideLength);
expect(obj.$attrs.circleRadius).assertEqual(newObj.$attrs.circleRadius);
expect(obj.$attrs.regularColor).assertEqual(newObj.$attrs.regularColor);
expect(obj.$attrs.selectedColor).assertEqual(newObj.$attrs.selectedColor);
expect(obj.$attrs.activeColor).assertEqual(newObj.$attrs.activeColor);
expect(obj.$attrs.pathColor).assertEqual(newObj.$attrs.pathColor);
expect(obj.$attrs.pathStrokeWidth).assertEqual(newObj.$attrs.pathStrokeWidth);
expect(obj.$attrs.autoReset).assertEqual(newObj.$attrs.autoReset);
console.info('[PatternLockJsunit_1300] END');
done();
});
})
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册