Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
b9053fff
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看板
提交
b9053fff
编写于
3月 24, 2022
作者:
L
luffy505
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify
Signed-off-by:
N
luffy505
<
zhangjuan54@huawei.com
>
上级
fb9893a7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
21 deletion
+19
-21
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ColumnSplitJsunit.test.ets
.../src/main/ets/MainAbility/test/ColumnSplitJsunit.test.ets
+2
-2
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ProgressJsunit.test.ets
...try/src/main/ets/MainAbility/test/ProgressJsunit.test.ets
+16
-18
ace/ace_standard_video/Test.json
ace/ace_standard_video/Test.json
+1
-1
未找到文件。
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ColumnSplitJsunit.test.ets
浏览文件 @
b9053fff
...
@@ -67,8 +67,8 @@ export default function columnSplitJsunit() {
...
@@ -67,8 +67,8 @@ export default function columnSplitJsunit() {
console.info("component obj is: " + JSON.stringify(obj))
console.info("component obj is: " + JSON.stringify(obj))
expect(obj.$type).assertEqual('ColumnSplit')
expect(obj.$type).assertEqual('ColumnSplit')
console.info("yr ColumnSplit0 type: " + JSON.stringify(obj.$type))
console.info("yr ColumnSplit0 type: " + JSON.stringify(obj.$type))
expect(obj.$attrs.resizable).assertEqual('true')
console.log("yr columnSplit0 obj.$resizable-'true':" + JSON.stringify(obj.$attrs.resizable))
console.log("yr columnSplit0 obj.$resizable-'true':" + JSON.stringify(obj.$attrs.resizable))
expect(obj.$attrs.resizeable).assertEqual('true')
console.info('new columnSplit0 END')
console.info('new columnSplit0 END')
done()
done()
})
})
...
@@ -83,8 +83,8 @@ export default function columnSplitJsunit() {
...
@@ -83,8 +83,8 @@ export default function columnSplitJsunit() {
let strJson = getInspectorByKey('columnSplit1');
let strJson = getInspectorByKey('columnSplit1');
let obj = JSON.parse(strJson);
let obj = JSON.parse(strJson);
console.info("component obj is: " + JSON.stringify(obj));
console.info("component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.resizable).assertEqual('false')
console.log("yr columnSplit obj.$resizable-'false':" + JSON.stringify(obj.$attrs.resizable));
console.log("yr columnSplit obj.$resizable-'false':" + JSON.stringify(obj.$attrs.resizable));
expect(obj.$attrs.resizeable).assertEqual('false')
console.info('new columnSplit1 END');
console.info('new columnSplit1 END');
done();
done();
})
})
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ProgressJsunit.test.ets
浏览文件 @
b9053fff
...
@@ -64,21 +64,15 @@ export default function progressJsunit() {
...
@@ -64,21 +64,15 @@ export default function progressJsunit() {
console.info('testGetProgressAttr START');
console.info('testGetProgressAttr START');
let strJson = getInspectorByKey('progress');
let strJson = getInspectorByKey('progress');
let obj = JSON.parse(strJson);
let obj = JSON.parse(strJson);
console.info("component obj is: " + JSON.stringify(obj));
let objConstructor = JSON.parse(obj.$attrs.constructor)
console.log("progress value" + JSON.stringify(obj.$attrs.value))
console.log("progress constructor is " + objConstructor)
console.log("progress type" + JSON.stringify(obj.$type))
console.log("progress color" + JSON.stringify(obj.$attrs.color))
console.log("progress width" + JSON.stringify(obj.$attrs.width))
console.log("progress height" + JSON.stringify(obj.$attrs.height))
console.log("progress total" + JSON.stringify(obj.$attrs.total))
console.log("progress style" + JSON.stringify(obj.$attrs.style))
expect(obj.$attrs.value).assertEqual(3.000000.toFixed(6))
expect(obj.$attrs.value).assertEqual(3.000000.toFixed(6))
expect(obj.$type).assertEqual('Progress')
expect(obj.$type).assertEqual('Progress')
expect(obj.$attrs.color).assertEqual("#FF0000FF")
expect(obj.$attrs.color).assertEqual("#FF0000FF")
expect(obj.$attrs.width).assertEqual("50.00vp")
expect(obj.$attrs.width).assertEqual("50.00vp")
expect(obj.$attrs.height).assertEqual("70.00vp")
expect(obj.$attrs.height).assertEqual("70.00vp")
expect(obj
.$attrs
.total).assertEqual(40.000000.toFixed(6))
expect(obj
Constructor
.total).assertEqual(40.000000.toFixed(6))
expect(obj
.$attrs.styl
e).assertEqual("ProgressStyle.Linear")
expect(obj
Constructor.typ
e).assertEqual("ProgressStyle.Linear")
console.info('testGetProgressAttr END');
console.info('testGetProgressAttr END');
done();
done();
});
});
...
@@ -93,8 +87,9 @@ export default function progressJsunit() {
...
@@ -93,8 +87,9 @@ export default function progressJsunit() {
let strJson = getInspectorByKey('progress2');
let strJson = getInspectorByKey('progress2');
let obj = JSON.parse(strJson);
let obj = JSON.parse(strJson);
console.info("component obj is: " + JSON.stringify(obj));
console.info("component obj is: " + JSON.stringify(obj));
console.log("progress style" + JSON.stringify(obj.$attrs.style))
let objConstructor = JSON.parse(obj.$attrs.constructor)
expect(obj.$attrs.style).assertEqual("ProgressStyle.Eclipse")
console.log("progress constructor is " + objConstructor)
expect(objConstructor.type).assertEqual("ProgressStyle.Eclipse")
console.info('testGetProgressAttr2 END');
console.info('testGetProgressAttr2 END');
done();
done();
});
});
...
@@ -109,8 +104,9 @@ export default function progressJsunit() {
...
@@ -109,8 +104,9 @@ export default function progressJsunit() {
let strJson = getInspectorByKey('progress3');
let strJson = getInspectorByKey('progress3');
let obj = JSON.parse(strJson);
let obj = JSON.parse(strJson);
console.info("component obj is: " + JSON.stringify(obj));
console.info("component obj is: " + JSON.stringify(obj));
console.log("progress style" + JSON.stringify(obj.$attrs.style))
let objConstructor = JSON.parse(obj.$attrs.constructor)
expect(obj.$attrs.style).assertEqual("ProgressStyle.Ring")
console.log("progress constructor is " + objConstructor)
expect(objConstructor.type).assertEqual("ProgressStyle.Ring")
console.info('testGetProgressAttr3 END');
console.info('testGetProgressAttr3 END');
done();
done();
});
});
...
@@ -125,8 +121,9 @@ export default function progressJsunit() {
...
@@ -125,8 +121,9 @@ export default function progressJsunit() {
let strJson = getInspectorByKey('progress4');
let strJson = getInspectorByKey('progress4');
let obj = JSON.parse(strJson);
let obj = JSON.parse(strJson);
console.info("component obj is: " + JSON.stringify(obj));
console.info("component obj is: " + JSON.stringify(obj));
console.log("progress style" + JSON.stringify(obj.$attrs.style))
let objConstructor = JSON.parse(obj.$attrs.constructor)
expect(obj.$attrs.style).assertEqual("ProgressStyle.ScaleRing")
console.log("progress constructor is " + objConstructor)
expect(objConstructor.type).assertEqual("ProgressStyle.ScaleRing")
console.info('testGetProgressAttr4 END');
console.info('testGetProgressAttr4 END');
done();
done();
});
});
...
@@ -141,8 +138,9 @@ export default function progressJsunit() {
...
@@ -141,8 +138,9 @@ export default function progressJsunit() {
let strJson = getInspectorByKey('progress5');
let strJson = getInspectorByKey('progress5');
let obj = JSON.parse(strJson);
let obj = JSON.parse(strJson);
console.info("component obj is: " + JSON.stringify(obj));
console.info("component obj is: " + JSON.stringify(obj));
console.log("progress style" + JSON.stringify(obj.$attrs.style))
let objConstructor = JSON.parse(obj.$attrs.constructor)
expect(obj.$attrs.style).assertEqual("ProgressStyle.Capsule")
console.log("progress constructor is " + objConstructor)
expect(objConstructor.type).assertEqual("ProgressStyle.Capsule")
console.info('testGetProgressAttr5 END');
console.info('testGetProgressAttr5 END');
done();
done();
});
});
...
...
ace/ace_standard_video/Test.json
浏览文件 @
b9053fff
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"description"
:
"Configuration for acevideo Tests"
,
"description"
:
"Configuration for acevideo Tests"
,
"driver"
:
{
"driver"
:
{
"type"
:
"JSUnitTest"
,
"type"
:
"JSUnitTest"
,
"test-timeout"
:
"
3
0000"
,
"test-timeout"
:
"
100
0000"
,
"package"
:
"com.example.acevideo"
,
"package"
:
"com.example.acevideo"
,
"shell-timeout"
:
"30000"
"shell-timeout"
:
"30000"
},
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录