未验证 提交 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() { ...@@ -99,7 +99,7 @@ export default function stepperJsunit() {
let strJsonNew = getInspectorByKey('stepper'); let strJsonNew = getInspectorByKey('stepper');
let objNew = JSON.parse(strJsonNew); let objNew = JSON.parse(strJsonNew);
console.info("stepperTest_0400 component objNew is: " + objNew.$attrs.index); 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'); console.info('stepperTest_0400 END');
done(); done();
//console.info('stepperTest_0400 START'); //console.info('stepperTest_0400 START');
...@@ -139,7 +139,7 @@ export default function stepperJsunit() { ...@@ -139,7 +139,7 @@ export default function stepperJsunit() {
let strJsonNew = getInspectorByKey('stepper'); let strJsonNew = getInspectorByKey('stepper');
let objNew = JSON.parse(strJsonNew); let objNew = JSON.parse(strJsonNew);
console.info("stepperTest_0500 component objNew is: " + objNew.$attrs.index); 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'); console.info('stepperTest_0400 END');
done(); done();
}); });
......
...@@ -107,55 +107,55 @@ export default function swiperJsunit() { ...@@ -107,55 +107,55 @@ export default function swiperJsunit() {
done(); done();
}); });
it('swiperTest_0600', 0, async function (done) { it('swiperTest_0700', 0, async function (done) {
console.info('swiperTest_0600 START'); console.info('swiperTest_0700 START');
try { try {
let eventData = { let eventData = {
data: { data: {
"index": "3" "autoPlay": "false"
} }
} }
let indexEvent = { let indexEvent = {
eventId: 207, eventId: 207,
priority: events_emitter.EventPriority.LOW 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); events_emitter.emit(indexEvent, eventData);
} catch (err) { } 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); await Utils.sleep(4000);
let strJsonNew = getInspectorByKey('swiper'); let strJsonNew = getInspectorByKey('swiper');
let objNew = JSON.parse(strJsonNew); let objNew = JSON.parse(strJsonNew);
console.info("swiperTest_0600 component objNew is: " + JSON.stringify(objNew)); console.info("swiperTest_0700 component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.index).assertEqual('3'); expect(objNew.$attrs.autoPlay).assertEqual('false');
console.info('swiperTest_0600 END'); console.info('swiperTest_0700 END');
done(); done();
}); });
it('swiperTest_0700', 0, async function (done) { it('swiperTest_0600', 0, async function (done) {
console.info('swiperTest_0700 START'); console.info('swiperTest_0600 START');
try { try {
let eventData = { let eventData = {
data: { data: {
"autoPlay": "false" "index": "3"
} }
} }
let indexEvent = { let indexEvent = {
eventId: 207, eventId: 207,
priority: events_emitter.EventPriority.LOW 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); events_emitter.emit(indexEvent, eventData);
} catch (err) { } 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); await Utils.sleep(4000);
let strJsonNew = getInspectorByKey('swiper'); let strJsonNew = getInspectorByKey('swiper');
let objNew = JSON.parse(strJsonNew); let objNew = JSON.parse(strJsonNew);
console.info("swiperTest_0700 component objNew is: " + JSON.stringify(objNew)); console.info("swiperTest_0600 component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.autoPlay).assertEqual('false'); expect(objNew.$attrs.index).assertEqual('3');
console.info('swiperTest_0700 END'); console.info('swiperTest_0600 END');
done(); done();
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册