Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
03271d6f
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看板
未验证
提交
03271d6f
编写于
6月 13, 2023
作者:
O
openharmony_ci
提交者:
Gitee
6月 13, 2023
浏览文件
操作
浏览文件
下载
差异文件
!8994 【ACE子系统】删除重复用例
Merge pull request !8994 from hekun/OpenHarmony-3.2-Release
上级
1258c7ae
03a07486
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
19 addition
and
122 deletion
+19
-122
arkui/ace_ets_component_apilack/entry/src/main/ets/test/listTest.test.ets
...mponent_apilack/entry/src/main/ets/test/listTest.test.ets
+13
-30
arkui/ace_ets_component_apilack/entry/src/main/ets/test/router.test.ets
...component_apilack/entry/src/main/ets/test/router.test.ets
+1
-2
arkui/ace_ets_component_apilack/entry/src/main/ets/test/stateManagement.test.ets
..._apilack/entry/src/main/ets/test/stateManagement.test.ets
+1
-22
arkui/ace_ets_component_four/entry/src/main/ets/test/SubscribaleAbstractJsunit.test.ets
...ntry/src/main/ets/test/SubscribaleAbstractJsunit.test.ets
+0
-17
arkui/ace_ets_standard/entry/src/main/ets/test/ProgressJsunit.test.ets
..._standard/entry/src/main/ets/test/ProgressJsunit.test.ets
+1
-1
arkui/ace_ets_test/entry/src/main/ets/test/AppStorageJsunit.test.ets
...ts_test/entry/src/main/ets/test/AppStorageJsunit.test.ets
+1
-1
arkui/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
...ard/src/main/js/default/test/commonComponentJsApi.test.js
+1
-48
arkui/ace_standard/src/main/js/default/test/videoProps.test.js
.../ace_standard/src/main/js/default/test/videoProps.test.js
+1
-1
未找到文件。
arkui/ace_ets_component_apilack/entry/src/main/ets/test/listTest.test.ets
浏览文件 @
03271d6f
...
...
@@ -115,46 +115,29 @@ export default function listNewJsunit() {
});
/*
* @tc.number SUB_ACE_BASIC_ETS_API_000
6
* @tc.name testListNe000
6
* @tc.desic acelistNeEtsTest000
6
* @tc.number SUB_ACE_BASIC_ETS_API_000
5
* @tc.name testListNe000
5
* @tc.desic acelistNeEtsTest000
5
*/
it('testListNe000
6
', 0, async function (done) {
console.info('listNe testListNe000
6
START');
it('testListNe000
5
', 0, async function (done) {
console.info('listNe testListNe000
5
START');
await Utils.sleep(2000);
let strJson = getInspectorByKey('list1');
console.info("[testListNe000
6
] component lanes strJson:" + strJson);
console.info("[testListNe000
5
] component lanes strJson:" + strJson);
let obj = JSON.parse(strJson);
expect(obj.$type).assertEqual('List');
expect(obj.$attrs.lanes).assertEqual(undefined);
console.info("[testListNe000
6
] lanes value :" + obj.$attrs.lanes);
console.info("[testListNe000
5
] lanes value :" + obj.$attrs.lanes);
done();
});
/*
* @tc.number SUB_ACE_BASIC_ETS_API_0006
* @tc.name testListNe0006
* @tc.desic
acelistNeEtsTest0006
* @tc.desic acelistNeEtsTest0006
*/
it('testListNe0006', 0, async function (done) {
console.info('listNe testListNe0006 START');
await Utils.sleep(2000);
let strJson = getInspectorByKey('list1');
console.info("[testListNe0006] component lanes strJson:" + strJson);
let obj = JSON.parse(strJson);
expect(obj.$type).assertEqual('List');
expect(obj.$attrs.lanes).assertEqual(undefined);
console.info("[testListNe0006] lanes value :" + obj.$attrs.lanes);
done();
});
/*
* @tc.number SUB_ACE_BASIC_ETS_API_0007
* @tc.name testListNe0007
* @tc.desic acelistNeEtsTest0007
*/
it('testListNe0007', 0, async function (done) {
console.info('listNe testListNe0007 START');
var innerEvent = {
eventId: 60216,
priority: events_emitter.EventPriority.LOW
...
...
@@ -162,18 +145,18 @@ export default function listNewJsunit() {
var callback = (eventData) => {
try{
console.info("callback success" );
console.info("testListNe000
7
eventData.data.result result is: " + eventData.data.result);
console.info("testListNe000
6
eventData.data.result result is: " + eventData.data.result);
expect(eventData.data.result).assertEqual("success");
console.info("testListNe000
7
end");
console.info("testListNe000
6
end");
}catch(err){
console.info("testListNe000
7
on events_emitter err : " + JSON.stringify(err));
console.info("testListNe000
6
on events_emitter err : " + JSON.stringify(err));
}
}
try{
console.info("testListNe000
7
click result is: " + JSON.stringify(sendEventByKey('onScrollBegin', 10, "")));
console.info("testListNe000
6
click result is: " + JSON.stringify(sendEventByKey('onScrollBegin', 10, "")));
events_emitter.on(innerEvent, callback);
}catch(err){
console.info("testListNe000
7
on events_emitter err : " + JSON.stringify(err));
console.info("testListNe000
6
on events_emitter err : " + JSON.stringify(err));
}
done();
});
...
...
arkui/ace_ets_component_apilack/entry/src/main/ets/test/router.test.ets
浏览文件 @
03271d6f
...
...
@@ -81,7 +81,7 @@ export default function routerJsunit() {
* @tc.name tesRouter_002
* @tc.desc testRouterAPi
*/
it('testRouter_00
1
', 0, async function (done) {
it('testRouter_00
2
', 0, async function (done) {
await Utils.sleep(2000);
try {
router.hideAlertBeforeBackPage();
...
...
@@ -92,7 +92,6 @@ export default function routerJsunit() {
expect(error.code == 13004).assertTrue();
done();
}
});
...
...
arkui/ace_ets_component_apilack/entry/src/main/ets/test/stateManagement.test.ets
浏览文件 @
03271d6f
...
...
@@ -151,29 +151,8 @@ export default function stateManagementGetSharedJsunit() {
console.info('teststateManagementsetAndProp0001 END');
});
/*
* @tc.number SUB_ACE_BASIC_ETS_API_0007
* @tc.name test_setAndLink_0001
* @tc.desc bind localStorage
*/
it('test_setAndLink_0001', 0, async function (done) {
console.info('test_setAndLink_0001 START');
await Utils.sleep(2000);
try {
let storage = new LocalStorage()
storage.setAndLink<string>('storageSimpleProp', '121');
let size = storage.size()
expect(size == 1).assertTrue();
done();
} catch (err) {
console.info("test_font_registerFont_0001 err : " + JSON.stringify(err));
expect().assertFail();
done();
}
});
/*
* @tc.number SUB_ACE_BASIC_ETS_API_000
7
* @tc.number SUB_ACE_BASIC_ETS_API_000
1
* @tc.name test_setAndLink_0001
* @tc.desc bind localStorage
*/
...
...
arkui/ace_ets_component_four/entry/src/main/ets/test/SubscribaleAbstractJsunit.test.ets
浏览文件 @
03271d6f
...
...
@@ -100,23 +100,6 @@ export default function SubscribaleAbstractJsunit() {
done();
});
/**
* @tc.number stateManagement_IPropertySubscriber_0100
* @tc.name stateManagement IPropertySubscriber validation
* @tc.desc Function test
*/
it('stateManagement_IPropertySubscriber_0100', 0, function (done) {
done();
return;
console.info('[stateManagement_IPropertySubscriber_0100] Start');
let iPropertySubscriber =new IPropertySubscriber();
let id = iPropertySubscriber.id();
let aboutToBeDeleted = iPropertySubscriber.aboutToBeDeleted();
expect(true).assertTrue();
console.info('[stateManagement_IPropertySubscriber_0100] END');
done();
});
/**
* @tc.number stateManagement_SyncedPropertyOneWay_0100
* @tc.name stateManagement stateManagement_SyncedPropertyOneWay_0100 validation
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/ProgressJsunit.test.ets
浏览文件 @
03271d6f
...
...
@@ -133,7 +133,7 @@ export default function progressJsunit() {
* @tc.name testGetProgressAttr050
* @tc.desc aceEtsTest
*/
it('testGetProgressAttr0
2
0', 0, async function (done) {
it('testGetProgressAttr0
5
0', 0, async function (done) {
console.info('testGetProgressAttr5 START');
let strJson = getInspectorByKey('progress5');
let obj = JSON.parse(strJson);
...
...
arkui/ace_ets_test/entry/src/main/ets/test/AppStorageJsunit.test.ets
浏览文件 @
03271d6f
...
...
@@ -194,7 +194,7 @@ export default function appStorageJsunit() {
* @tc.name appStorageTest009
* @tc.desc aceEtsTest
*/
it('appStorageTest00
8
', 0, async function (done) {
it('appStorageTest00
9
', 0, async function (done) {
console.info('AppStorageTest009 START');
let strJson = getInspectorByKey('Button0_9');
let obj = JSON.parse(strJson);
...
...
arkui/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
浏览文件 @
03271d6f
...
...
@@ -104,30 +104,6 @@ describe('aceJsTest', function () {
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testCameraComponent
* @tc.desc ACE
*/
it
(
'
testCameraComponent
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testCameraComponent START
'
);
let
result
;
let
options
=
{
uri
:
'
pages/camera/router/index
'
}
try
{
result
=
router
.
push
(
options
)
console
.
info
(
"
push camera page success
"
+
JSON
.
stringify
(
result
));
}
catch
(
err
)
{
console
.
error
(
"
push camera page error
"
+
JSON
.
stringify
(
result
));
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
console
.
info
(
"
[router.camera] getState
"
+
JSON
.
stringify
(
pages
));
expect
(
"
pages/camera/router/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0300
* @tc.name testInputComponent
...
...
@@ -828,29 +804,6 @@ describe('aceJsTest', function () {
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testMarqueeComponent
* @tc.desc ACE
*/
it
(
'
testMarqueeComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/marquee/router/index
'
}
try
{
result
=
router
.
push
(
options
)
console
.
info
(
"
push marquee page success
"
+
JSON
.
stringify
(
result
));
}
catch
(
err
)
{
console
.
error
(
"
push marquee page error
"
+
JSON
.
stringify
(
result
));
}
await
sleep
(
5000
)
let
pages
=
router
.
getState
();
console
.
info
(
"
[router.marquee] getState
"
+
JSON
.
stringify
(
pages
));
expect
(
"
pages/marquee/router/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testRefreshComponent
...
...
@@ -1220,7 +1173,7 @@ describe('aceJsTest', function () {
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name test
Camera
Component
* @tc.name test
Web
Component
* @tc.desc ACE
*/
it
(
'
testWebComponent
'
,
0
,
async
function
(
done
)
{
...
...
arkui/ace_standard/src/main/js/default/test/videoProps.test.js
浏览文件 @
03271d6f
...
...
@@ -732,7 +732,7 @@ describe('videoPropsJsTest', function () {
* @tc.name testVideoAutoplayPropTrue
* @tc.desc ACE
*/
it
(
'
testVideoAutoplayProp
Fals
e
'
,
0
,
async
function
(
done
)
{
it
(
'
testVideoAutoplayProp
Tru
e
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testVideoAutoplayPropTrue START
'
);
console
.
info
(
"
[videoProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录