Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f2f2da48
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看板
未验证
提交
f2f2da48
编写于
10月 31, 2022
作者:
O
openharmony_ci
提交者:
Gitee
10月 31, 2022
浏览文件
操作
浏览文件
下载
差异文件
!6272 【ACE子系统】适配开发侧修改&修改apilack测试套用例问题
Merge pull request !6272 from hekun/master
上级
bc74a74f
195d0741
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
9 addition
and
8 deletion
+9
-8
arkui/ace_ets_component_apilack/entry/src/main/ets/test/gauge.test.ets
..._component_apilack/entry/src/main/ets/test/gauge.test.ets
+1
-1
arkui/ace_ets_component_apilack/entry/src/main/ets/test/line.test.ets
...s_component_apilack/entry/src/main/ets/test/line.test.ets
+1
-1
arkui/ace_ets_component_apilack/entry/src/main/ets/test/list_item.test.ets
...ponent_apilack/entry/src/main/ets/test/list_item.test.ets
+3
-3
arkui/ace_ets_component_apilack/entry/src/main/ets/test/swiper.test.ets
...component_apilack/entry/src/main/ets/test/swiper.test.ets
+1
-1
arkui/ace_ets_component_four/entry/src/main/ets/MainAbility/pages/textArea.ets
...nt_four/entry/src/main/ets/MainAbility/pages/textArea.ets
+1
-1
arkui/ace_ets_component_four/entry/src/main/ets/test/TextAreaJsunit.test.ets
...nent_four/entry/src/main/ets/test/TextAreaJsunit.test.ets
+2
-1
未找到文件。
arkui/ace_ets_component_apilack/entry/src/main/ets/test/gauge.test.ets
浏览文件 @
f2f2da48
...
@@ -142,7 +142,7 @@ export default function gaugeColorsJsunit() {
...
@@ -142,7 +142,7 @@ export default function gaugeColorsJsunit() {
console.info("[testgaugeColors0006] component colors strJson:" + strJson);
console.info("[testgaugeColors0006] component colors strJson:" + strJson);
let obj = JSON.parse(strJson);
let obj = JSON.parse(strJson);
expect(obj.$type).assertEqual('Gauge');
expect(obj.$type).assertEqual('Gauge');
expect(obj.$attrs.colors).assertEqual('[
"#FF317AF7","#FF5BA854","#FFE08C3A","#FF9C554B","#FFD94838"
]');
expect(obj.$attrs.colors).assertEqual('[
["#FF317AF7",1],["#FF5BA854",1],["#FFE08C3A",1],["#FF9C554B",1],["#FFD94838",1]
]');
console.info("[testgaugeColors0006] colors value :" + obj.$attrs.colors);
console.info("[testgaugeColors0006] colors value :" + obj.$attrs.colors);
done();
done();
});
});
...
...
arkui/ace_ets_component_apilack/entry/src/main/ets/test/line.test.ets
浏览文件 @
f2f2da48
...
@@ -108,7 +108,7 @@ export default function lineNeJsunit() {
...
@@ -108,7 +108,7 @@ export default function lineNeJsunit() {
console.info("[testlineNe0006] component height strJson:" + strJson);
console.info("[testlineNe0006] component height strJson:" + strJson);
let obj = JSON.parse(strJson);
let obj = JSON.parse(strJson);
expect(obj.$type).assertEqual('Shape');
expect(obj.$type).assertEqual('Shape');
expect(obj.$attrs.height).assertEqual("200.00");
expect(obj.$attrs.height).assertEqual("200.00
vp
");
console.info("[testlineNe0006] height value :" + obj.$attrs.height);
console.info("[testlineNe0006] height value :" + obj.$attrs.height);
done();
done();
});
});
...
...
arkui/ace_ets_component_apilack/entry/src/main/ets/test/list_item.test.ets
浏览文件 @
f2f2da48
...
@@ -21,7 +21,7 @@ import Utils from './Utils.ets'
...
@@ -21,7 +21,7 @@ import Utils from './Utils.ets'
export default function list_itemOnSelectJsunit() {
export default function list_itemOnSelectJsunit() {
describe('list_itemOnSelectTest', function () {
describe('list_itemOnSelectTest', function () {
beforeAll(async function (done) {
beforeAll(async function (done) {
console.info("flex beforeEach start");
testlist_itemOnSelect0002
console.info("flex beforeEach start");
let options = {
let options = {
uri: 'pages/list_item',
uri: 'pages/list_item',
}
}
...
@@ -75,7 +75,7 @@ export default function list_itemOnSelectJsunit() {
...
@@ -75,7 +75,7 @@ export default function list_itemOnSelectJsunit() {
console.info("[testlist_itemOnSelect0002] component border strJson:" + strJson);
console.info("[testlist_itemOnSelect0002] component border strJson:" + strJson);
let obj = JSON.parse(strJson);
let obj = JSON.parse(strJson);
expect(obj.$type).assertEqual('ListItem');
expect(obj.$type).assertEqual('ListItem');
expect(obj.$attrs.selectable).assertEqual(
false
);
expect(obj.$attrs.selectable).assertEqual(
"false"
);
console.info("[testlist_itemOnSelect0002] selectable value :" + obj.$attrs.selectable);
console.info("[testlist_itemOnSelect0002] selectable value :" + obj.$attrs.selectable);
done();
done();
});
});
...
@@ -106,7 +106,7 @@ export default function list_itemOnSelectJsunit() {
...
@@ -106,7 +106,7 @@ export default function list_itemOnSelectJsunit() {
console.info('selectOnSelect testlist_itemSwipeAction0004 START');
console.info('selectOnSelect testlist_itemSwipeAction0004 START');
await Utils.sleep(2000);
await Utils.sleep(2000);
let obj = JSON.stringify(sendEventByKey('Del', 10, ""))
let obj = JSON.stringify(sendEventByKey('Del', 10, ""))
expect(obj).assertEqual('
fals
e');
expect(obj).assertEqual('
tru
e');
done();
done();
});
});
})
})
...
...
arkui/ace_ets_component_apilack/entry/src/main/ets/test/swiper.test.ets
浏览文件 @
f2f2da48
...
@@ -28,7 +28,7 @@ export default function swiperCurveJsunit() {
...
@@ -28,7 +28,7 @@ export default function swiperCurveJsunit() {
router.clear();
router.clear();
let pages = router.getState();
let pages = router.getState();
console.info("get swiper state success " + JSON.stringify(pages));
console.info("get swiper state success " + JSON.stringify(pages));
if (!("swiper" == pages.name))
if (!("swiper" == pages.name))
{
console.info("get swiper state success " + JSON.stringify(pages.name));
console.info("get swiper state success " + JSON.stringify(pages.name));
let result = await router.push(options);
let result = await router.push(options);
await Utils.sleep(2000);
await Utils.sleep(2000);
...
...
arkui/ace_ets_component_four/entry/src/main/ets/MainAbility/pages/textArea.ets
浏览文件 @
f2f2da48
...
@@ -19,7 +19,7 @@ import events_emitter from '@ohos.events.emitter';
...
@@ -19,7 +19,7 @@ import events_emitter from '@ohos.events.emitter';
@Component
@Component
struct TextAreaExample2 {
struct TextAreaExample2 {
@State text: string = 'TextArea'
@State text: string = 'TextArea'
@State fontColor: string = "
Color.Red
";
@State fontColor: string = "
#FF182432
";
@State fontSize: number = 30;
@State fontSize: number = 30;
@State textAlign: TextAlign = TextAlign.Center;
@State textAlign: TextAlign = TextAlign.Center;
@State text: String = 'test text';
@State text: String = 'test text';
...
...
arkui/ace_ets_component_four/entry/src/main/ets/test/TextAreaJsunit.test.ets
浏览文件 @
f2f2da48
...
@@ -90,7 +90,8 @@ export default function textAreaJsunit() {
...
@@ -90,7 +90,8 @@ export default function textAreaJsunit() {
let strJson = getInspectorByKey('textArea');
let strJson = getInspectorByKey('textArea');
let obj = JSON.parse(strJson);
let obj = JSON.parse(strJson);
console.info("[textAreaTest03] obj is: " + JSON.stringify(obj));
console.info("[textAreaTest03] obj is: " + JSON.stringify(obj));
expect(obj.$attrs.fontColor).assertEqual('#FF000000');
// 适配开发侧非法入参修改
expect(obj.$attrs.fontColor).assertEqual('#FF182432');
console.info('textAreaTest03 END');
console.info('textAreaTest03 END');
done();
done();
});
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录