Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
6f676894
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看板
提交
6f676894
编写于
6月 12, 2023
作者:
H
hekun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
delete Repeate case
Signed-off-by:
N
hekun
<
hekun18@huawei.com
>
上级
24d40e0c
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
18 addition
and
81 deletion
+18
-81
arkui/ace_ets_component_apilack/entry/src/main/ets/test/listTest.test.ets
...mponent_apilack/entry/src/main/ets/test/listTest.test.ets
+6
-6
arkui/ace_ets_component_apilack/entry/src/main/ets/test/stateManagement.test.ets
..._apilack/entry/src/main/ets/test/stateManagement.test.ets
+4
-4
arkui/ace_ets_component_four/entry/src/main/ets/test/SubscribaleAbstractJsunit.test.ets
...ntry/src/main/ets/test/SubscribaleAbstractJsunit.test.ets
+1
-18
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
+3
-4
arkui/ace_standard/Test.json
arkui/ace_standard/Test.json
+1
-0
arkui/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
...ard/src/main/js/default/test/commonComponentJsApi.test.js
+1
-47
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
浏览文件 @
6f676894
...
...
@@ -115,19 +115,19 @@ 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('testListNe0005', 0, async function (done) {
console.info('listNe testListNe000
6
START');
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('4');
console.info("[testListNe000
6
] lanes value :" + obj.$attrs.lanes);
console.info("[testListNe000
5
] lanes value :" + obj.$attrs.lanes);
done();
});
...
...
arkui/ace_ets_component_apilack/entry/src/main/ets/test/stateManagement.test.ets
浏览文件 @
6f676894
...
...
@@ -214,11 +214,11 @@ export default function stateManagementGetSharedJsunit() {
/*
* @tc.number SUB_ACE_BASIC_ETS_API_0008
* @tc.name test_setAndProp_000
1
* @tc.name test_setAndProp_000
2
* @tc.desc bind localStorage
*/
it('test_setAndProp_000
1
', 0, async function (done) {
console.info('test_setAndProp_000
1
START');
it('test_setAndProp_000
2
', 0, async function (done) {
console.info('test_setAndProp_000
2
START');
await Utils.sleep(2000);
try {
let storage = new LocalStorage()
...
...
@@ -227,7 +227,7 @@ export default function stateManagementGetSharedJsunit() {
expect(size == 1).assertTrue();
done();
} catch (err) {
console.info("test_setAndProp_000
1
err : " + JSON.stringify(err));
console.info("test_setAndProp_000
2
err : " + JSON.stringify(err));
expect().assertFail();
done();
}
...
...
arkui/ace_ets_component_four/entry/src/main/ets/test/SubscribaleAbstractJsunit.test.ets
浏览文件 @
6f676894
...
...
@@ -99,24 +99,7 @@ export default function SubscribaleAbstractJsunit() {
console.info('[stateManagement_IPropertySubscriber_0100] END');
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
浏览文件 @
6f676894
...
...
@@ -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
浏览文件 @
6f676894
...
...
@@ -13,7 +13,6 @@
* limitations under the License.
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "@ohos/hypium"
import router from '@system.router';
...
...
@@ -22,7 +21,7 @@ export default function appStorageJsunit() {
function sleep(time) {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve()
resolve(
'ok'
)
}, time * 1000)
}).then(() => {
console.info(`sleep ${time} over...`)
...
...
@@ -44,7 +43,7 @@ export default function appStorageJsunit() {
console.info("push AppStorage page success " + JSON.stringify(result));
}
} catch (err) {
console.error("push AppStorage page error " + JSON.stringify(
result
));
console.error("push AppStorage page error " + JSON.stringify(
err
));
}
await sleep(2)
done()
...
...
@@ -194,7 +193,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/Test.json
浏览文件 @
6f676894
...
...
@@ -17,6 +17,7 @@
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"hilog -Q pidoff"
,
"power-shell wakeup"
,
"power-shell setmode 602"
]
...
...
arkui/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
浏览文件 @
6f676894
...
...
@@ -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,28 +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
...
...
@@ -1199,7 +1153,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
浏览文件 @
6f676894
...
...
@@ -515,7 +515,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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录