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

!8796 【ACE子系统】cherrypick OpenHarmony-4.0-Beta1

Merge pull request !8796 from hekun/OpenHarmony-4.0-Beta1
......@@ -99,7 +99,7 @@ export default function stepperJsunit() {
let strJsonNew = getInspectorByKey('stepper');
let objNew = JSON.parse(strJsonNew);
console.info("stepperTest_0400 component objNew is: " + objNew.$attrs.index);
expect(objNew.$attrs.index).assertEqual('-558038585');
expect(objNew.$attrs.index).assertEqual('0');
console.info('stepperTest_0400 END');
done();
//console.info('stepperTest_0400 START');
......@@ -139,7 +139,7 @@ export default function stepperJsunit() {
let strJsonNew = getInspectorByKey('stepper');
let objNew = JSON.parse(strJsonNew);
console.info("stepperTest_0500 component objNew is: " + objNew.$attrs.index);
expect(objNew.$attrs.index).assertEqual('-10');
expect(objNew.$attrs.index).assertEqual('0');
console.info('stepperTest_0400 END');
done();
});
......
......@@ -107,55 +107,55 @@ export default function swiperJsunit() {
done();
});
it('swiperTest_0600', 0, async function (done) {
console.info('swiperTest_0600 START');
it('swiperTest_0700', 0, async function (done) {
console.info('swiperTest_0700 START');
try {
let eventData = {
data: {
"index": "3"
"autoPlay": "false"
}
}
let indexEvent = {
eventId: 207,
priority: events_emitter.EventPriority.LOW
}
console.info("swiperTest_0600 start to publish emit");
console.info("swiperTest_0700 start to publish emit");
events_emitter.emit(indexEvent, eventData);
} catch (err) {
console.log("swiperTest_0600 change component data error: " + err.message);
console.log("swiperTest_0700 change component data error: " + err.message);
}
await Utils.sleep(4000);
let strJsonNew = getInspectorByKey('swiper');
let objNew = JSON.parse(strJsonNew);
console.info("swiperTest_0600 component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.index).assertEqual('3');
console.info('swiperTest_0600 END');
console.info("swiperTest_0700 component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.autoPlay).assertEqual('false');
console.info('swiperTest_0700 END');
done();
});
it('swiperTest_0700', 0, async function (done) {
console.info('swiperTest_0700 START');
it('swiperTest_0600', 0, async function (done) {
console.info('swiperTest_0600 START');
try {
let eventData = {
data: {
"autoPlay": "false"
"index": "3"
}
}
let indexEvent = {
eventId: 207,
priority: events_emitter.EventPriority.LOW
}
console.info("swiperTest_0700 start to publish emit");
console.info("swiperTest_0600 start to publish emit");
events_emitter.emit(indexEvent, eventData);
} catch (err) {
console.log("swiperTest_0700 change component data error: " + err.message);
console.log("swiperTest_0600 change component data error: " + err.message);
}
await Utils.sleep(4000);
let strJsonNew = getInspectorByKey('swiper');
let objNew = JSON.parse(strJsonNew);
console.info("swiperTest_0700 component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.autoPlay).assertEqual('false');
console.info('swiperTest_0700 END');
console.info("swiperTest_0600 component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.index).assertEqual('3');
console.info('swiperTest_0600 END');
done();
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册