Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
9f62e878
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看板
提交
9f62e878
编写于
2月 16, 2022
作者:
B
bayanxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
UI组件 路由测试用例
Signed-off-by:
N
bayanxing
<
bayanxing@kaihongdigi.com
>
上级
b9f860dc
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
495 addition
and
495 deletion
+495
-495
ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
...ard/src/main/js/default/test/commonComponentJsApi.test.js
+495
-495
未找到文件。
ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
浏览文件 @
9f62e878
...
...
@@ -57,501 +57,501 @@ describe('aceJsTest', function () {
await
sleep
(
1000
)
});
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
//
* @tc.name testButtonComponent
//
* @tc.desc ACE
//
*/
//
it('testButtonComponent', 0, async function (done) {
//
console.info('testButtonComponent START');
//
let result;
//
let options = {
//
uri: 'pages/button/index'
//
}
//
try {
//
result = router.push(options)
//
console.info("push button page success " + JSON.stringify(result));
//
} catch (err) {
//
console.error("push button page error " + JSON.stringify(result));
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
console.info("[router.button] getState" + JSON.stringify(pages));
//
expect("pages/button/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0200
//
* @tc.name testChartComponent
//
* @tc.desc ACE
//
*/
//
it('testChartComponent', 0, async function (done) {
//
console.info('testButtonComponent START');
//
let result;
//
let options = {
//
uri: 'pages/chart/index'
//
}
//
try {
//
result = router.push(options)
//
console.info("push button page success " + JSON.stringify(result));
//
} catch (err) {
//
console.error("push button page error " + JSON.stringify(result));
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
console.info("[router.chart] getState" + JSON.stringify(pages));
//
expect("pages/chart/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0300
//
* @tc.name testInputComponent
//
* @tc.desc ACE
//
*/
//
it('testInputComponent', 0, async function (done) {
//
console.info('testButtonComponent START');
//
let result;
//
let options = {
//
uri: 'pages/input/index'
//
}
//
try {
//
result = router.push(options)
//
console.info("push button page success " + JSON.stringify(result));
//
} catch (err) {
//
console.error("push button page error " + JSON.stringify(result));
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
console.info("[router.input] getState" + JSON.stringify(pages));
//
expect("pages/input/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0400
//
* @tc.name testSliderComponent
//
* @tc.desc ACE
//
*/
//
it('testSliderComponent', 0, async function (done) {
//
console.info('testSliderComponent START');
//
let result;
//
let options = {
//
uri: 'pages/slider/index'
//
}
//
try {
//
result = router.push(options)
//
console.info("push button page success " + JSON.stringify(result));
//
} catch (err) {
//
console.error("push button page error " + JSON.stringify(result));
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
console.info("[router.slider] getState" + JSON.stringify(pages));
//
expect("pages/slider/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0400
//
* @tc.name testTextComponent
//
* @tc.desc ACE
//
*/
//
it('testTextComponent', 0, async function (done) {
//
let result;
//
let options = {
//
uri: 'pages/text/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/text/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0400
//
* @tc.name testLabelComponent
//
* @tc.desc ACE
//
*/
//
it('testLabelComponent', 0, async function (done) {
//
console.info('testLabelComponent START');
//
let result;
//
let options = {
//
uri: 'pages/label/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/label/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
//
* @tc.name testDividerComponent
//
* @tc.desc ACE
//
*/
//
it('testDividerComponent', 0, async function (done) {
//
let result;
//
let options = {
//
uri: 'pages/divider/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/divider/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
//
* @tc.name testGetImageComponent
//
* @tc.desc ACE
//
*/
//
it('testGetImageComponent', 0, async function (done) {
//
let result;
//
let options = {
//
uri: 'pages/image/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/image/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
//
* @tc.name testGetMenuComponent
//
* @tc.desc ACE
//
*/
//
it('testGetMenuComponent', 0, async function (done) {
//
let result;
//
let options = {
//
uri: 'pages/menu/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/menu/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
//
* @tc.name testRatingComponent
//
* @tc.desc ACE
//
*/
//
it('testRatingComponent', 0, async function (done) {
//
let result;
//
let options = {
//
uri: 'pages/rating/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/rating/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
//
* @tc.name testSearchComponent
//
* @tc.desc ACE
//
*/
//
it('testSearchComponent', 0, async function (done) {
//
let result;
//
let options = {
//
uri: 'pages/search/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/search/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
//
* @tc.name testToolbarComponent
//
* @tc.desc ACE
//
*/
//
it('testToolbarComponent', 0, async function (done) {
//
let result;
//
let options = {
//
uri: 'pages/toolbar/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/toolbar/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
//
* @tc.name testTextareaComponent
//
* @tc.desc ACE
//
*/
//
it('testTextareaComponent', 0, async function (done) {
//
let result;
//
let options = {
//
uri: 'pages/textarea/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/textarea/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
//
* @tc.name testSpanComponent
//
* @tc.desc ACE
//
*/
//
it('testSpanComponent', 0, async function (done) {
//
let result;
//
let options = {
//
uri: 'pages/span/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/span/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
//
* @tc.name testSwitchComponent
//
* @tc.desc ACE
//
*/
//
it('testSwitchComponent', 0, async function (done) {
//
let result;
//
let options = {
//
uri: 'pages/switch/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/switch/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
//
* @tc.name testToggleComponent
//
* @tc.desc ACE
//
*/
//
it('testToggleComponent', 0, async function (done) {
//
let result;
//
let options = {
//
uri: 'pages/toggle/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/toggle/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
//
* @tc.name testOptionComponent
//
* @tc.desc ACE
//
*/
//
it('testOptionComponent', 0, async function (done) {
//
let result;
//
let options = {
//
uri: 'pages/option/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/option/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
//
* @tc.name testPickerComponent
//
* @tc.desc ACE
//
*/
//
it('testPickerComponent', 0, async function (done) {
//
let result;
//
let options = {
//
uri: 'pages/picker/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/picker/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
//
* @tc.name testPickerViewComponent
//
* @tc.desc ACE
//
*/
//
it('testPickerViewComponent', 0, async function (done) {
//
let result;
//
let options = {
//
uri: 'pages/pickerView/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/pickerView/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
//
* @tc.name testPieceComponent
//
* @tc.desc ACE
//
*/
//
it('testPieceComponent', 0, async function (done) {
//
let result;
//
let options = {
//
uri: 'pages/piece/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/piece/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
//
* @tc.name testProgressComponent
//
* @tc.desc ACE
//
*/
//
it('testProgressComponent', 0, async function (done) {
//
let result;
//
let options = {
//
uri: 'pages/progress/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/progress/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
//
* @tc.name testQrcodeComponent
//
* @tc.desc ACE
//
*/
//
it('testQrcodeComponent', 0, async function (done) {
//
let result;
//
let options = {
//
uri: 'pages/qrcode/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/qrcode/").assertEqual(pages.path);
//
done();
//
});
//
//
/**
//
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
//
* @tc.name testSelectComponent
//
* @tc.desc ACE
//
*/
//
it('testSelectComponent', 0, async function (done) {
//
let result;
//
let options = {
//
uri: 'pages/select/index'
//
}
//
try {
//
result = router.push(options)
//
} catch (err) {
//
result = err
//
}
//
await sleep(1000)
//
let pages = router.getState();
//
expect("pages/select/").assertEqual(pages.path);
//
done();
//
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testButtonComponent
* @tc.desc ACE
*/
it
(
'
testButtonComponent
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testButtonComponent START
'
);
let
result
;
let
options
=
{
uri
:
'
pages/button/index
'
}
try
{
result
=
router
.
push
(
options
)
console
.
info
(
"
push button page success
"
+
JSON
.
stringify
(
result
));
}
catch
(
err
)
{
console
.
error
(
"
push button page error
"
+
JSON
.
stringify
(
result
));
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
console
.
info
(
"
[router.button] getState
"
+
JSON
.
stringify
(
pages
));
expect
(
"
pages/button/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0200
* @tc.name testChartComponent
* @tc.desc ACE
*/
it
(
'
testChartComponent
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testButtonComponent START
'
);
let
result
;
let
options
=
{
uri
:
'
pages/chart/index
'
}
try
{
result
=
router
.
push
(
options
)
console
.
info
(
"
push button page success
"
+
JSON
.
stringify
(
result
));
}
catch
(
err
)
{
console
.
error
(
"
push button page error
"
+
JSON
.
stringify
(
result
));
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
console
.
info
(
"
[router.chart] getState
"
+
JSON
.
stringify
(
pages
));
expect
(
"
pages/chart/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0300
* @tc.name testInputComponent
* @tc.desc ACE
*/
it
(
'
testInputComponent
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testButtonComponent START
'
);
let
result
;
let
options
=
{
uri
:
'
pages/input/index
'
}
try
{
result
=
router
.
push
(
options
)
console
.
info
(
"
push button page success
"
+
JSON
.
stringify
(
result
));
}
catch
(
err
)
{
console
.
error
(
"
push button page error
"
+
JSON
.
stringify
(
result
));
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
console
.
info
(
"
[router.input] getState
"
+
JSON
.
stringify
(
pages
));
expect
(
"
pages/input/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0400
* @tc.name testSliderComponent
* @tc.desc ACE
*/
it
(
'
testSliderComponent
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testSliderComponent START
'
);
let
result
;
let
options
=
{
uri
:
'
pages/slider/index
'
}
try
{
result
=
router
.
push
(
options
)
console
.
info
(
"
push button page success
"
+
JSON
.
stringify
(
result
));
}
catch
(
err
)
{
console
.
error
(
"
push button page error
"
+
JSON
.
stringify
(
result
));
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
console
.
info
(
"
[router.slider] getState
"
+
JSON
.
stringify
(
pages
));
expect
(
"
pages/slider/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0400
* @tc.name testTextComponent
* @tc.desc ACE
*/
it
(
'
testTextComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/text/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/text/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0400
* @tc.name testLabelComponent
* @tc.desc ACE
*/
it
(
'
testLabelComponent
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testLabelComponent START
'
);
let
result
;
let
options
=
{
uri
:
'
pages/label/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/label/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testDividerComponent
* @tc.desc ACE
*/
it
(
'
testDividerComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/divider/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/divider/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testGetImageComponent
* @tc.desc ACE
*/
it
(
'
testGetImageComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/image/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/image/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testGetMenuComponent
* @tc.desc ACE
*/
it
(
'
testGetMenuComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/menu/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/menu/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testRatingComponent
* @tc.desc ACE
*/
it
(
'
testRatingComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/rating/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/rating/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testSearchComponent
* @tc.desc ACE
*/
it
(
'
testSearchComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/search/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/search/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testToolbarComponent
* @tc.desc ACE
*/
it
(
'
testToolbarComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/toolbar/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/toolbar/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testTextareaComponent
* @tc.desc ACE
*/
it
(
'
testTextareaComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/textarea/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/textarea/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testSpanComponent
* @tc.desc ACE
*/
it
(
'
testSpanComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/span/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/span/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testSwitchComponent
* @tc.desc ACE
*/
it
(
'
testSwitchComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/switch/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/switch/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testToggleComponent
* @tc.desc ACE
*/
it
(
'
testToggleComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/toggle/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/toggle/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testOptionComponent
* @tc.desc ACE
*/
it
(
'
testOptionComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/option/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/option/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPickerComponent
* @tc.desc ACE
*/
it
(
'
testPickerComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/picker/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/picker/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPickerViewComponent
* @tc.desc ACE
*/
it
(
'
testPickerViewComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/pickerView/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/pickerView/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPieceComponent
* @tc.desc ACE
*/
it
(
'
testPieceComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/piece/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/piece/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testProgressComponent
* @tc.desc ACE
*/
it
(
'
testProgressComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/progress/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/progress/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testQrcodeComponent
* @tc.desc ACE
*/
it
(
'
testQrcodeComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/qrcode/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/qrcode/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testSelectComponent
* @tc.desc ACE
*/
it
(
'
testSelectComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/select/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/select/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录