Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
95c7cf2e
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
95c7cf2e
编写于
3月 21, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 21, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2693 修改ace fail用例
Merge pull request !2693 from zj/cherry-pick-1647832390
上级
97caefc9
a2042e47
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
39 deletion
+10
-39
ace/ace_ets_component_four/entry/src/main/ets/MainAbility/test/ImageJsunit.test.ets
.../entry/src/main/ets/MainAbility/test/ImageJsunit.test.ets
+1
-1
ace/ace_ets_component_four/entry/src/main/ets/MainAbility/test/SystemAppJsunit.test.ets
...ry/src/main/ets/MainAbility/test/SystemAppJsunit.test.ets
+2
-1
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets
...entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets
+3
-16
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/SliderJsunit.test.ets
...entry/src/main/ets/MainAbility/test/SliderJsunit.test.ets
+4
-21
未找到文件。
ace/ace_ets_component_four/entry/src/main/ets/MainAbility/test/ImageJsunit.test.ets
浏览文件 @
95c7cf2e
...
@@ -52,7 +52,7 @@ export default function imageJsunit() {
...
@@ -52,7 +52,7 @@ export default function imageJsunit() {
console.info("imageTest_0100 component strJson:" + strJson);
console.info("imageTest_0100 component strJson:" + strJson);
let obj = JSON.parse(strJson);
let obj = JSON.parse(strJson);
console.info("imageTest_0100 obj.$attrs.content is: " + obj.$attrs.content);
console.info("imageTest_0100 obj.$attrs.content is: " + obj.$attrs.content);
expect(obj.$attrs.content).assertEqual('
H
ello');
expect(obj.$attrs.content).assertEqual('
string_h
ello');
expect(obj.$attrs.fontSize).assertEqual('9.00fp');
expect(obj.$attrs.fontSize).assertEqual('9.00fp');
console.info('imageTest_0100 END');
console.info('imageTest_0100 END');
done();
done();
...
...
ace/ace_ets_component_four/entry/src/main/ets/MainAbility/test/SystemAppJsunit.test.ets
浏览文件 @
95c7cf2e
...
@@ -19,11 +19,12 @@ import app from '@system.app';
...
@@ -19,11 +19,12 @@ import app from '@system.app';
export default function systemAppJsunit() {
export default function systemAppJsunit() {
describe('appInfoTest', function () {
describe('appInfoTest', function () {
it('systemAppTest_0100', 0, async function (done) {
it('systemAppTest_0100', 0, async function (done) {
console.info('systemAppTest_0100 START');
console.info('systemAppTest_0100 START');
var a = app.getInfo();
var a = app.getInfo();
console.log('systemAppTest_0100 END' + JSON.stringify(a));
console.log('systemAppTest_0100 END' + JSON.stringify(a));
expect(a.appID == "com.open.harmony.acetest").assertTrue();
expect(a.appID == "com.open.harmony.acetest
four
").assertTrue();
console.info('systemAppTest_0100 END');
console.info('systemAppTest_0100 END');
done();
done();
});
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets
浏览文件 @
95c7cf2e
...
@@ -36,7 +36,7 @@ export default function buttonJsunit() {
...
@@ -36,7 +36,7 @@ export default function buttonJsunit() {
}
}
try {
try {
router.clear();
router.clear();
await sleep(1);
await sleep(1);
let pages = router.getState();
let pages = router.getState();
console.info("get Button state success " + JSON.stringify(pages));
console.info("get Button state success " + JSON.stringify(pages));
if (!("Button" == pages.name)) {
if (!("Button" == pages.name)) {
...
@@ -65,16 +65,8 @@ export default function buttonJsunit() {
...
@@ -65,16 +65,8 @@ export default function buttonJsunit() {
console.info('testGetInspectorByKey START');
console.info('testGetInspectorByKey START');
let strJson = getInspectorByKey('button');
let strJson = getInspectorByKey('button');
let obj = JSON.parse(strJson);
let obj = JSON.parse(strJson);
let style = JSON.parse(obj.$attrs.style)
console.info("buttonGetInspectorByKey010 obj is: " + JSON.stringify(obj));
console.log(style.fontSize)
console.info("buttonGetInspectorByKey010 obj is: " + JSON.stringify(obj.$attrs));
console.info("cd button component obj is: " + JSON.stringify(obj));
console.log("cd button type" + JSON.stringify(obj.$type));
console.log("cd button Buttontype" + JSON.stringify(obj.$attrs.type));
console.log("cd button stateEffect" + JSON.stringify(obj.$attrs.stateEffect));
console.log("cd button label" + JSON.stringify(obj.$attrs.label));
console.log("cd button fontSize" + JSON.stringify(obj.$attrs.fontSize));
console.log("cd button fontWeight" + JSON.stringify(obj.$attrs.fontWeight));
console.log("cd button fontColor" + JSON.stringify(obj.$attrs.fontColor));
expect(obj.$type).assertEqual('Button')
expect(obj.$type).assertEqual('Button')
expect(obj.$attrs.type).assertEqual('ButtonType.Circle')
expect(obj.$attrs.type).assertEqual('ButtonType.Circle')
expect(obj.$attrs.stateEffect).assertEqual('true')
expect(obj.$attrs.stateEffect).assertEqual('true')
...
@@ -92,9 +84,6 @@ export default function buttonJsunit() {
...
@@ -92,9 +84,6 @@ export default function buttonJsunit() {
let strJson = getInspectorByKey('button1');
let strJson = getInspectorByKey('button1');
let obj = JSON.parse(strJson);
let obj = JSON.parse(strJson);
console.info("cd button1 component obj is: " + JSON.stringify(obj));
console.info("cd button1 component obj is: " + JSON.stringify(obj));
console.log("cd button1 type" + JSON.stringify(obj.$type));
console.log("cd button1 Buttontype" + JSON.stringify(obj.$attrs.type));
console.log("cd button1 stateEffect" + JSON.stringify(obj.$attrs.stateEffect));
expect(obj.$attrs.type).assertEqual('ButtonType.Capsule')
expect(obj.$attrs.type).assertEqual('ButtonType.Capsule')
expect(obj.$attrs.stateEffect).assertEqual('false')
expect(obj.$attrs.stateEffect).assertEqual('false')
console.info('cd button1InspectorByKey END');
console.info('cd button1InspectorByKey END');
...
@@ -110,8 +99,6 @@ export default function buttonJsunit() {
...
@@ -110,8 +99,6 @@ export default function buttonJsunit() {
let strJson = getInspectorByKey('button2');
let strJson = getInspectorByKey('button2');
let obj = JSON.parse(strJson);
let obj = JSON.parse(strJson);
console.info("cd button2 component obj is: " + JSON.stringify(obj));
console.info("cd button2 component obj is: " + JSON.stringify(obj));
console.log("cd button2 type" + JSON.stringify(obj.$type));
console.log("cd button2 Buttontype" + JSON.stringify(obj.$attrs.type));
expect(obj.$attrs.type).assertEqual('ButtonType.Normal')
expect(obj.$attrs.type).assertEqual('ButtonType.Normal')
console.info('cd button2InspectorByKey END');
console.info('cd button2InspectorByKey END');
done();
done();
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/SliderJsunit.test.ets
浏览文件 @
95c7cf2e
...
@@ -65,22 +65,8 @@ export default function sliderJsunit() {
...
@@ -65,22 +65,8 @@ export default function sliderJsunit() {
let obj = JSON.parse(strJson);
let obj = JSON.parse(strJson);
console.info("component obj is Slider: " + JSON.stringify(obj));
console.info("component obj is Slider: " + JSON.stringify(obj));
console.info("component obj is Slider: " + JSON.stringify(obj.$attrs.constructor));
console.info("component obj is Slider: " + JSON.stringify(obj.$attrs.constructor));
console.info("slider1 blockColor" + JSON.stringify(obj.$attrs.constructor.blockColor))
expect(obj.$attrs.showTips).assertEqual("false")
console.info("slider1 selectedColor" + JSON.stringify(obj.$attrs.constructor.selectedColor))
expect(obj.$attrs.showSteps).assertEqual("false")
console.info("slider1 trackColor" + JSON.stringify(obj.$attrs.constructor.trackColor))
console.info("slider1 showTips" + JSON.stringify(obj.$attrs.constructor.showTips))
console.info("slider1 showSteps" + JSON.stringify(obj.$attrs.constructor.showSteps))
console.info("slider1 value" + JSON.stringify(obj.$attrs.constructor.value))
console.info("slider1 direction" + JSON.stringify(obj.$attrs.constructor.direction))
console.info("slider1 reverse" + JSON.stringify(obj.$attrs.constructor.reverse))
console.info("slider1 minLabel" + JSON.stringify(obj.$attrs.constructor.minLabel))
console.info("slider1 maxLabel" + JSON.stringify(obj.$attrs.constructor.maxLabel))
console.info("slider1 min" + JSON.stringify(obj.$attrs.constructor.min))
console.info("slider1 max" + JSON.stringify(obj.$attrs.constructor.max))
console.info("slider1 step" + JSON.stringify(obj.$attrs.constructor.step))
console.info("slider1 style" + JSON.stringify(obj.$attrs.constructor.style))
expect(obj.$attrs.constructor.showTips).assertEqual("false")
expect(obj.$attrs.constructor.showSteps).assertEqual("false")
expect(obj.$attrs.constructor.value).assertEqual(40.000000.toFixed(6))
expect(obj.$attrs.constructor.value).assertEqual(40.000000.toFixed(6))
expect(obj.$attrs.constructor.min).assertEqual(0.000000.toFixed(6))
expect(obj.$attrs.constructor.min).assertEqual(0.000000.toFixed(6))
expect(obj.$attrs.constructor.max).assertEqual(100.000000.toFixed(6))
expect(obj.$attrs.constructor.max).assertEqual(100.000000.toFixed(6))
...
@@ -100,11 +86,8 @@ export default function sliderJsunit() {
...
@@ -100,11 +86,8 @@ export default function sliderJsunit() {
let strJson = getInspectorByKey('slider2');
let strJson = getInspectorByKey('slider2');
let obj = JSON.parse(strJson);
let obj = JSON.parse(strJson);
console.info("component obj is Slider: " + JSON.stringify(obj));
console.info("component obj is Slider: " + JSON.stringify(obj));
console.info("slider2 showTips" + JSON.stringify(obj.$attrs.constructor.showTips))
expect(obj.$attrs.showTips).assertEqual("true")
console.info("slider2 showSteps" + JSON.stringify(obj.$attrs.constructor.showSteps))
expect(obj.$attrs.showSteps).assertEqual("true")
console.info("slider1 style" + JSON.stringify(obj.$attrs.constructor.style))
expect(obj.$attrs.constructor.showTips).assertEqual("true")
expect(obj.$attrs.constructor.showSteps).assertEqual("true")
expect(obj.$attrs.constructor.style).assertEqual("SliderStyle.InSet")
expect(obj.$attrs.constructor.style).assertEqual("SliderStyle.InSet")
console.info('testGetSliderAttr2 END');
console.info('testGetSliderAttr2 END');
done();
done();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录