提交 195d0741 编写于 作者: H hekun

fix the error

Signed-off-by: Nhekun <hekun18@huawei.com>
上级 50ff86da
......@@ -142,7 +142,7 @@ export default function gaugeColorsJsunit() {
console.info("[testgaugeColors0006] component colors strJson:" + strJson);
let obj = JSON.parse(strJson);
expect(obj.$type).assertEqual('Gauge');
expect(obj.$attrs.colors).assertEqual('["#FF317AF7","#FF5BA854","#FFE08C3A","#FF9C554B","#FFD94838"]');
expect(obj.$attrs.colors).assertEqual('[["#FF317AF7",1],["#FF5BA854",1],["#FFE08C3A",1],["#FF9C554B",1],["#FFD94838",1]]');
console.info("[testgaugeColors0006] colors value :" + obj.$attrs.colors);
done();
});
......
......@@ -108,7 +108,7 @@ export default function lineNeJsunit() {
console.info("[testlineNe0006] component height strJson:" + strJson);
let obj = JSON.parse(strJson);
expect(obj.$type).assertEqual('Shape');
expect(obj.$attrs.height).assertEqual("200.00");
expect(obj.$attrs.height).assertEqual("200.00vp");
console.info("[testlineNe0006] height value :" + obj.$attrs.height);
done();
});
......
......@@ -21,7 +21,7 @@ import Utils from './Utils.ets'
export default function list_itemOnSelectJsunit() {
describe('list_itemOnSelectTest', function () {
beforeAll(async function (done) {
console.info("flex beforeEach start");testlist_itemOnSelect0002
console.info("flex beforeEach start");
let options = {
uri: 'pages/list_item',
}
......@@ -75,7 +75,7 @@ export default function list_itemOnSelectJsunit() {
console.info("[testlist_itemOnSelect0002] component border strJson:" + strJson);
let obj = JSON.parse(strJson);
expect(obj.$type).assertEqual('ListItem');
expect(obj.$attrs.selectable).assertEqual(false);
expect(obj.$attrs.selectable).assertEqual("false");
console.info("[testlist_itemOnSelect0002] selectable value :" + obj.$attrs.selectable);
done();
});
......@@ -106,7 +106,7 @@ export default function list_itemOnSelectJsunit() {
console.info('selectOnSelect testlist_itemSwipeAction0004 START');
await Utils.sleep(2000);
let obj = JSON.stringify(sendEventByKey('Del', 10, ""))
expect(obj).assertEqual('false');
expect(obj).assertEqual('true');
done();
});
})
......
......@@ -28,7 +28,7 @@ export default function swiperCurveJsunit() {
router.clear();
let pages = router.getState();
console.info("get swiper state success " + JSON.stringify(pages));
if (!("swiper" == pages.name))
if (!("swiper" == pages.name)) {
console.info("get swiper state success " + JSON.stringify(pages.name));
let result = await router.push(options);
await Utils.sleep(2000);
......
......@@ -19,7 +19,7 @@ import events_emitter from '@ohos.events.emitter';
@Component
struct TextAreaExample2 {
@State text: string = 'TextArea'
@State fontColor: string = "Color.Red";
@State fontColor: string = "#FF182432";
@State fontSize: number = 30;
@State textAlign: TextAlign = TextAlign.Center;
@State text: String = 'test text';
......
......@@ -90,7 +90,8 @@ export default function textAreaJsunit() {
let strJson = getInspectorByKey('textArea');
let obj = JSON.parse(strJson);
console.info("[textAreaTest03] obj is: " + JSON.stringify(obj));
expect(obj.$attrs.fontColor).assertEqual('#FF000000');
// 适配开发侧非法入参修改
expect(obj.$attrs.fontColor).assertEqual('#FF182432');
console.info('textAreaTest03 END');
done();
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册