Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
e1d145e9
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e1d145e9
编写于
5月 27, 2023
作者:
H
hekun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix the testcase
Signed-off-by:
N
hekun
<
hekun18@huawei.com
>
上级
144fd02c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
20 addition
and
20 deletion
+20
-20
arkui/ace_ets_component/entry/src/main/ets/test/StepperJsunit.test.ets
..._component/entry/src/main/ets/test/StepperJsunit.test.ets
+2
-2
arkui/ace_ets_component/entry/src/main/ets/test/SwiperJsunit.test.ets
...s_component/entry/src/main/ets/test/SwiperJsunit.test.ets
+16
-16
arkui/ace_ets_layout_test/entry/src/main/ets/test/Column/subComponentChanged/ColumnSetVisibility_SubChange.test.ets
...ubComponentChanged/ColumnSetVisibility_SubChange.test.ets
+1
-1
arkui/ace_ets_layout_test/entry/src/main/ets/test/Row/subComponentChanged/Row_TextVisibility.test.ets
.../test/Row/subComponentChanged/Row_TextVisibility.test.ets
+1
-1
未找到文件。
arkui/ace_ets_component/entry/src/main/ets/test/StepperJsunit.test.ets
浏览文件 @
e1d145e9
...
...
@@ -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('
-1
0');
expect(objNew.$attrs.index).assertEqual('0');
console.info('stepperTest_0400 END');
done();
});
...
...
arkui/ace_ets_component/entry/src/main/ets/test/SwiperJsunit.test.ets
浏览文件 @
e1d145e9
...
...
@@ -107,55 +107,55 @@ export default function swiperJsunit() {
done();
});
it('swiperTest_0
6
00', 0, async function (done) {
console.info('swiperTest_0
6
00 START');
it('swiperTest_0
7
00', 0, async function (done) {
console.info('swiperTest_0
7
00 START');
try {
let eventData = {
data: {
"
index": "3
"
"
autoPlay": "false
"
}
}
let indexEvent = {
eventId: 207,
priority: events_emitter.EventPriority.LOW
}
console.info("swiperTest_0
6
00 start to publish emit");
console.info("swiperTest_0
7
00 start to publish emit");
events_emitter.emit(indexEvent, eventData);
} catch (err) {
console.log("swiperTest_0
6
00 change component data error: " + err.message);
console.log("swiperTest_0
7
00 change component data error: " + err.message);
}
await Utils.sleep(4000);
let strJsonNew = getInspectorByKey('swiper');
let objNew = JSON.parse(strJsonNew);
console.info("swiperTest_0
6
00 component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.
index).assertEqual('3
');
console.info('swiperTest_0
6
00 END');
console.info("swiperTest_0
7
00 component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.
autoPlay).assertEqual('false
');
console.info('swiperTest_0
7
00 END');
done();
});
it('swiperTest_07
00', 0, async function (done) {
console.info('swiperTest_0
7
00 START');
it('swiperTest_06
00', 0, async function (done) {
console.info('swiperTest_0
6
00 START');
try {
let eventData = {
data: {
"
autoPlay": "false
"
"
index": "3
"
}
}
let indexEvent = {
eventId: 207,
priority: events_emitter.EventPriority.LOW
}
console.info("swiperTest_0
7
00 start to publish emit");
console.info("swiperTest_0
6
00 start to publish emit");
events_emitter.emit(indexEvent, eventData);
} catch (err) {
console.log("swiperTest_0
7
00 change component data error: " + err.message);
console.log("swiperTest_0
6
00 change component data error: " + err.message);
}
await Utils.sleep(4000);
let strJsonNew = getInspectorByKey('swiper');
let objNew = JSON.parse(strJsonNew);
console.info("swiperTest_0
7
00 component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.
autoPlay).assertEqual('false
');
console.info('swiperTest_0
7
00 END');
console.info("swiperTest_0
6
00 component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.
index).assertEqual('3
');
console.info('swiperTest_0
6
00 END');
done();
});
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/Column/subComponentChanged/ColumnSetVisibility_SubChange.test.ets
浏览文件 @
e1d145e9
...
...
@@ -28,7 +28,7 @@ export default function ColumnSetVisibility_SubChange() {
await CommonFunc.sleep(1000);
let pages = router.getState();
console.info("get ColumnSetVisibility state success " + JSON.stringify(pages));
if (!("ColumnSetVisibility" == pages.name)) {
if (!("ColumnSetVisibility
_SubChange
" == pages.name)) {
console.info("get ColumnSetVisibility state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push ColumnSetVisibility page success " + JSON.stringify(result));
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/Row/subComponentChanged/Row_TextVisibility.test.ets
浏览文件 @
e1d145e9
...
...
@@ -27,7 +27,7 @@ export default function row_TextVisibilityTest() {
router.clear();
let pages = router.getState();
console.info("get Row_TextVisibility state pages:" + JSON.stringify(pages));
if (!("Row_Text
Position
" == pages.name)) {
if (!("Row_Text
Visibility
" == pages.name)) {
console.info("get Row_TextPosition pages.name:" + JSON.stringify(pages.name));
let result = await router.push(options);
await CommonFunc.sleep(2000);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录