Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
db61e164
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看板
提交
db61e164
编写于
1月 04, 2022
作者:
L
liu-xu01
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ACEcommit
Signed-off-by:
N
liu-xu01
<
l18612094222@163.com
>
上级
3f450895
变更
37
显示空白变更内容
内联
并排
Showing
37 changed file
with
218 addition
and
218 deletion
+218
-218
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/BadgeJsunit.test.ets
.../entry/src/main/ets/MainAbility/test/BadgeJsunit.test.ets
+7
-5
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/BlankJsunit.test.ets
.../entry/src/main/ets/MainAbility/test/BlankJsunit.test.ets
+4
-4
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets
...entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets
+4
-4
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ColumnJsunit.test.ets
...entry/src/main/ets/MainAbility/test/ColumnJsunit.test.ets
+4
-4
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ColumnSplitJsunit.test.ets
.../src/main/ets/MainAbility/test/ColumnSplitJsunit.test.ets
+4
-4
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/CounterJsunit.test.ets
...ntry/src/main/ets/MainAbility/test/CounterJsunit.test.ets
+4
-4
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/DataPanelJsunit.test.ets
...ry/src/main/ets/MainAbility/test/DataPanelJsunit.test.ets
+5
-5
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/DividerJsunit.test.ets
...ntry/src/main/ets/MainAbility/test/DividerJsunit.test.ets
+6
-5
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/FlexJsunit.test.ets
...d/entry/src/main/ets/MainAbility/test/FlexJsunit.test.ets
+4
-4
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/GridContainerJsunit.test.ets
...rc/main/ets/MainAbility/test/GridContainerJsunit.test.ets
+4
-4
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ImageJsunit.test.ets
.../entry/src/main/ets/MainAbility/test/ImageJsunit.test.ets
+4
-4
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/PanelJsunit.test.ets
.../entry/src/main/ets/MainAbility/test/PanelJsunit.test.ets
+6
-6
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ProgressJsunit.test.ets
...try/src/main/ets/MainAbility/test/ProgressJsunit.test.ets
+5
-5
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/QrcodeJsunit.test.ets
...entry/src/main/ets/MainAbility/test/QrcodeJsunit.test.ets
+4
-4
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/RatingJsunit.test.ets
...entry/src/main/ets/MainAbility/test/RatingJsunit.test.ets
+4
-4
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/RowSplitJsunit.test.ets
...try/src/main/ets/MainAbility/test/RowSplitJsunit.test.ets
+4
-4
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ScrollJsunit.test.ets
...entry/src/main/ets/MainAbility/test/ScrollJsunit.test.ets
+4
-4
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/SliderJsunit.test.ets
...entry/src/main/ets/MainAbility/test/SliderJsunit.test.ets
+4
-4
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/SpanJsunit.test.ets
...d/entry/src/main/ets/MainAbility/test/SpanJsunit.test.ets
+4
-4
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/StackJsunit.test.ets
.../entry/src/main/ets/MainAbility/test/StackJsunit.test.ets
+4
-4
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets
...d/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets
+4
-4
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/AlphabetIndexerJsunit.test.ets
.../main/ets/MainAbility/test/AlphabetIndexerJsunit.test.ets
+5
-6
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/AppStorageJsunit.test.ets
...y/src/main/ets/MainAbility/test/AppStorageJsunit.test.ets
+4
-5
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/GridItem.test.ets
...est/entry/src/main/ets/MainAbility/test/GridItem.test.ets
+9
-10
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/GridJsnuit.test.ets
...t/entry/src/main/ets/MainAbility/test/GridJsnuit.test.ets
+8
-7
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/HyperLinkJsunit.test.ets
...ry/src/main/ets/MainAbility/test/HyperLinkJsunit.test.ets
+6
-7
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/LinkJsunit.test.ets
...t/entry/src/main/ets/MainAbility/test/LinkJsunit.test.ets
+6
-7
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/ListItemJsunit.test.ets
...try/src/main/ets/MainAbility/test/ListItemJsunit.test.ets
+5
-6
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/ListJsunit.test.ets
...t/entry/src/main/ets/MainAbility/test/ListJsunit.test.ets
+4
-5
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/NavigatorJsunit.test.ets
...ry/src/main/ets/MainAbility/test/NavigatorJsunit.test.ets
+13
-12
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/PanelJsunit.test.ets
.../entry/src/main/ets/MainAbility/test/PanelJsunit.test.ets
+16
-16
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/PropJsunit.test.ets
...t/entry/src/main/ets/MainAbility/test/PropJsunit.test.ets
+9
-9
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/RowJsunit.test.ets
...st/entry/src/main/ets/MainAbility/test/RowJsunit.test.ets
+9
-8
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/SwiperJsunit.test.ets
...entry/src/main/ets/MainAbility/test/SwiperJsunit.test.ets
+12
-12
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/TabJsunit.test.ets
...st/entry/src/main/ets/MainAbility/test/TabJsunit.test.ets
+4
-4
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets
...t/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets
+4
-4
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/VideoJsunit.test.ets
.../entry/src/main/ets/MainAbility/test/VideoJsunit.test.ets
+11
-10
未找到文件。
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/BadgeJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function badgeJsunit() {
}
describe('badgeTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Badge',
}
...
...
@@ -38,7 +38,7 @@ export default function badgeJsunit() {
router.clear();
let pages = router.getState();
console.info("get Badge state success " + JSON.stringify(pages));
if
(!("Badge" == pages.name))
{
if
(!("Badge" == pages.name))
{
console.info("get Badge state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Badge page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function badgeJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Badge after each called");
});
...
...
@@ -113,5 +113,7 @@ export default function badgeJsunit() {
console.info('testGetInspectorByKey END');
done();
});
})
}
)
}
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/BlankJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function blankJsunit() {
}
describe('BlankTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Blank',
}
...
...
@@ -38,7 +38,7 @@ export default function blankJsunit() {
router.clear();
let pages = router.getState();
console.info("get Blank state success " + JSON.stringify(pages));
if
(!("Blank" == pages.name))
{
if
(!("Blank" == pages.name))
{
console.info("get Blank state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Blank page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function blankJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Blank after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function buttonJsunit() {
}
describe('buttonTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Button',
}
...
...
@@ -38,7 +38,7 @@ export default function buttonJsunit() {
router.clear();
let pages = router.getState();
console.info("get Button state success " + JSON.stringify(pages));
if
(!("Button" == pages.name))
{
if
(!("Button" == pages.name))
{
console.info("get Button state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Button page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function buttonJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Button after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ColumnJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function columnJsunit() {
}
describe('columnTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Column',
}
...
...
@@ -38,7 +38,7 @@ export default function columnJsunit() {
router.clear();
let pages = router.getState();
console.info("get Column state success " + JSON.stringify(pages));
if
(!("Column" == pages.name))
{
if
(!("Column" == pages.name))
{
console.info("get Column state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Column page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function columnJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Column after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ColumnSplitJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function columnSplitJsunit() {
}
describe('columnSplitTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/ColumnSplit',
}
...
...
@@ -38,7 +38,7 @@ export default function columnSplitJsunit() {
router.clear();
let pages = router.getState();
console.info("get ColumnSplit state success " + JSON.stringify(pages));
if
(!("ColumnSplit" == pages.name))
{
if
(!("ColumnSplit" == pages.name))
{
console.info("get ColumnSplit state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push ColumnSplit page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function columnSplitJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("ColumnSplit after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/CounterJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function counterJsunit() {
}
describe('counterTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Counter',
}
...
...
@@ -38,7 +38,7 @@ export default function counterJsunit() {
router.clear();
let pages = router.getState();
console.info("get Counter state success " + JSON.stringify(pages));
if
(!("Counter" == pages.name))
{
if
(!("Counter" == pages.name))
{
console.info("get Counter state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Counter page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function counterJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Counter after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/DataPanelJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function datapanelJsunit() {
}
describe('dataPanelTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/DataPanel',
}
...
...
@@ -38,7 +38,7 @@ export default function datapanelJsunit() {
router.clear();
let pages = router.getState();
console.info("get DataPanel state success " + JSON.stringify(pages));
if
(!("DataPanel" == pages.name))
{
if
(!("DataPanel" == pages.name))
{
console.info("get DataPanel state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push DataPanel page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function datapanelJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("DataPanel after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/DividerJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function dividerJsunit() {
}
describe('dividerTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Divider',
}
...
...
@@ -38,10 +38,11 @@ export default function dividerJsunit() {
router.clear();
let pages = router.getState();
console.info("get divider state success " + JSON.stringify(pages));
if
(!("Divider" == pages.name))
{
if
(!("Divider" == pages.name))
{
console.info("get divider state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push divider page success " + JSON.stringify(result));}
console.info("push divider page success " + JSON.stringify(result));
}
} catch (err) {
console.error("push divider page error " + JSON.stringify(result));
}
...
...
@@ -49,7 +50,7 @@ export default function dividerJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Divider after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/FlexJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function flexJsunit() {
}
describe('flexTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Flex',
}
...
...
@@ -38,7 +38,7 @@ export default function flexJsunit() {
router.clear();
let pages = router.getState();
console.info("get Flex state success " + JSON.stringify(pages));
if
(!("Flex" == pages.name))
{
if
(!("Flex" == pages.name))
{
console.info("get Flex state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Flex page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function flexJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Flex after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/GridContainerJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function gridContainerJsunit() {
}
describe('gridContainerTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/GridContainer',
}
...
...
@@ -38,7 +38,7 @@ export default function gridContainerJsunit() {
router.clear();
let pages = router.getState();
console.info("get GridContainer state success " + JSON.stringify(pages));
if
(!("GridContainer" == pages.name))
{
if
(!("GridContainer" == pages.name))
{
console.info("get GridContainer state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push GridContainer page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function gridContainerJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("GridContainer after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ImageJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function imageJsunit() {
}
describe('imageTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Image',
}
...
...
@@ -38,7 +38,7 @@ export default function imageJsunit() {
router.clear();
let pages = router.getState();
console.info("get Image state success " + JSON.stringify(pages));
if
(!("Image" == pages.name))
{
if
(!("Image" == pages.name))
{
console.info("get Image state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Image page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function imageJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Image after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/PanelJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function panelJsunit() {
}
describe('panelTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Panel',
}
...
...
@@ -38,7 +38,7 @@ export default function panelJsunit() {
router.clear();
let pages = router.getState();
console.info("get Panel state success " + JSON.stringify(pages));
if
(!("Panel" == pages.name))
{
if
(!("Panel" == pages.name))
{
console.info("get Panel state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Panel page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function panelJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Panel after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ProgressJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function progressJsunit() {
}
describe('progressTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Progress',
}
...
...
@@ -38,7 +38,7 @@ export default function progressJsunit() {
router.clear();
let pages = router.getState();
console.info("get Progress state success " + JSON.stringify(pages));
if
(!("Progress" == pages.name))
{
if
(!("Progress" == pages.name))
{
console.info("get Progress state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Progress page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function progressJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Progress after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/QrcodeJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function qrcodeJsunit() {
}
describe('QrcodeTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Qrcode',
}
...
...
@@ -38,7 +38,7 @@ export default function qrcodeJsunit() {
router.clear();
let pages = router.getState();
console.info("get Qrcode state success " + JSON.stringify(pages));
if
(!("Qrcode" == pages.name))
{
if
(!("Qrcode" == pages.name))
{
console.info("get Qrcode state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Qrcode page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function qrcodeJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Qrcode after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/RatingJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function ratingJsunit() {
}
describe('ratingTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Rating',
}
...
...
@@ -38,7 +38,7 @@ export default function ratingJsunit() {
router.clear();
let pages = router.getState();
console.info("get Rating state success " + JSON.stringify(pages));
if
(!("Rating" == pages.name))
{
if
(!("Rating" == pages.name))
{
console.info("get Rating state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Rating page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function ratingJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Rating after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/RowSplitJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function rowSplitJsunit() {
}
describe('RowSplitTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/RowSplit',
}
...
...
@@ -38,7 +38,7 @@ export default function rowSplitJsunit() {
router.clear();
let pages = router.getState();
console.info("get RowSplit state success " + JSON.stringify(pages));
if
(!("RowSplit" == pages.name))
{
if
(!("RowSplit" == pages.name))
{
console.info("get RowSplit state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push RowSplit page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function rowSplitJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("RowSplit after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ScrollJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function ScrollJsunit() {
}
describe('scrollTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Scroll',
}
...
...
@@ -38,7 +38,7 @@ export default function ScrollJsunit() {
router.clear();
let pages = router.getState();
console.info("get Scroll state success " + JSON.stringify(pages));
if
(!("Scroll" == pages.name))
{
if
(!("Scroll" == pages.name))
{
console.info("get Scroll state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Scroll page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function ScrollJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Scroll after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/SliderJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function sliderJsunit() {
}
describe('SliderTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Slider',
}
...
...
@@ -38,7 +38,7 @@ export default function sliderJsunit() {
router.clear();
let pages = router.getState();
console.info("get Slider state success " + JSON.stringify(pages));
if
(!("Slider" == pages.name))
{
if
(!("Slider" == pages.name))
{
console.info("get Slider state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Slider page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function sliderJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Slider after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/SpanJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function spanJsunit() {
}
describe('SpanTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Span',
}
...
...
@@ -38,7 +38,7 @@ export default function spanJsunit() {
router.clear();
let pages = router.getState();
console.info("get Span state success " + JSON.stringify(pages));
if
(!("Span" == pages.name))
{
if
(!("Span" == pages.name))
{
console.info("get Span state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Span page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function spanJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Span after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/StackJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function StackJsunit() {
}
describe('StackTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Stack',
}
...
...
@@ -38,7 +38,7 @@ export default function StackJsunit() {
router.clear();
let pages = router.getState();
console.info("get Stack state success " + JSON.stringify(pages));
if
(!("Stack" == pages.name))
{
if
(!("Stack" == pages.name))
{
console.info("get Stack state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Stack page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function StackJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Stack after each called");
});
...
...
ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,7 +30,7 @@ export default function textJsunit() {
}
describe('textTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Text',
}
...
...
@@ -38,7 +38,7 @@ export default function textJsunit() {
router.clear();
let pages = router.getState();
console.info("get Text state success " + JSON.stringify(pages));
if
(!("Text" == pages.name))
{
if
(!("Text" == pages.name))
{
console.info("get Text state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Text page success " + JSON.stringify(result));
...
...
@@ -50,7 +50,7 @@ export default function textJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Text after each called");
});
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/AlphabetIndexerJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,8 +30,7 @@ export default function alphabetIndexerJsunit() {
}
describe('alphabetIndexerTest', function () {
beforeEach(async function(done){
beforeEach(async function (done) {
let options = {
uri: 'pages/AlphabetIndexer',
}
...
...
@@ -39,7 +38,7 @@ export default function alphabetIndexerJsunit() {
router.clear();
let pages = router.getState();
console.info("get AlphabetIndexer state success " + JSON.stringify(pages));
if
(!("AlphabetIndexer" == pages.name))
{
if
(!("AlphabetIndexer" == pages.name))
{
console.info("get AlphabetIndexer state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push AlphabetIndexer page success " + JSON.stringify(result));
...
...
@@ -51,7 +50,7 @@ export default function alphabetIndexerJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("AlphabetIndexer after each called");
});
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/AppStorageJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,8 +30,7 @@ export default function appStorageJsunit() {
}
describe('appStorageTest', function () {
beforeEach(async function(done){
beforeEach(async function (done) {
let options = {
uri: 'pages/AppStorage',
}
...
...
@@ -39,7 +38,7 @@ export default function appStorageJsunit() {
router.clear();
let pages = router.getState();
console.info("get AppStorage state success " + JSON.stringify(pages));
if
(!("AppStorage" == pages.name))
{
if
(!("AppStorage" == pages.name))
{
console.info("get AppStorage state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push AppStorage page success " + JSON.stringify(result));
...
...
@@ -51,7 +50,7 @@ export default function appStorageJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("AppStorage after each called");
});
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/GridItem.test.ets
浏览文件 @
db61e164
...
...
@@ -30,8 +30,7 @@ export default function gridItemJsunit() {
}
describe('gridItemTest', function () {
beforeEach(async function(done){
beforeEach(async function (done) {
let options = {
uri: 'pages/GridItem',
}
...
...
@@ -39,7 +38,7 @@ export default function gridItemJsunit() {
router.clear();
let pages = router.getState();
console.info("get GridItem state success " + JSON.stringify(pages));
if
(!("GridItem" == pages.name))
{
if
(!("GridItem" == pages.name))
{
console.info("get GridItem state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push GridItem page success " + JSON.stringify(result));
...
...
@@ -51,7 +50,7 @@ export default function gridItemJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("GridItem after each called");
});
...
...
@@ -69,11 +68,11 @@ export default function gridItemJsunit() {
console.info("属性值集合: " + JSON.stringify(obj));
console.log(JSON.stringify(obj.$type))
expect(obj.$type).assertEqual('GridItem')
console.log('GridItem1‘s rowStart is '
+
JSON.stringify(obj.$attrs.rowStart))
console.log('GridItem1‘s rowEnd is '
+
JSON.stringify(obj.$attrs.rowEnd))
console.log('GridItem1‘s columnStart is '
+
JSON.stringify(obj.$attrs.columnStart))
console.log('GridItem1‘s columnEnd is '
+
JSON.stringify(obj.$attrs.columnEnd))
console.log('GridItem1‘s forceRebuild is '
+
JSON.stringify(obj.$attrs.forceRebuild))
console.log('GridItem1‘s rowStart is '
+
JSON.stringify(obj.$attrs.rowStart))
console.log('GridItem1‘s rowEnd is '
+
JSON.stringify(obj.$attrs.rowEnd))
console.log('GridItem1‘s columnStart is '
+
JSON.stringify(obj.$attrs.columnStart))
console.log('GridItem1‘s columnEnd is '
+
JSON.stringify(obj.$attrs.columnEnd))
console.log('GridItem1‘s forceRebuild is '
+
JSON.stringify(obj.$attrs.forceRebuild))
await sleep(1)
expect(obj.$attrs.rowStart).assertEqual('1')
expect(obj.$attrs.rowEnd).assertEqual('4')
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/GridJsnuit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,8 +30,7 @@ export default function gridJsunit() {
}
describe('gridTest', function () {
beforeEach(async function(done){
beforeEach(async function (done) {
let options = {
uri: 'pages/Grid',
}
...
...
@@ -39,7 +38,7 @@ export default function gridJsunit() {
router.clear();
let pages = router.getState();
console.info("get Grid state success " + JSON.stringify(pages));
if
(!("Grid" == pages.name))
{
if
(!("Grid" == pages.name))
{
console.info("get Grid state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Grid page success " + JSON.stringify(result));
...
...
@@ -51,7 +50,7 @@ export default function gridJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Grid after each called");
});
...
...
@@ -80,5 +79,7 @@ export default function gridJsunit() {
console.info('gridTest001 END');
done();
});
})
}
)
}
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/HyperLinkJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,8 +30,7 @@ export default function hyperlinkJsunit() {
}
describe('hyperLinkTest', function () {
beforeEach(async function(done){
beforeEach(async function (done) {
let options = {
uri: 'pages/HyperLink',
}
...
...
@@ -39,7 +38,7 @@ export default function hyperlinkJsunit() {
router.clear();
let pages = router.getState();
console.info("get HyperLink state success " + JSON.stringify(pages));
if
(!("HyperLink" == pages.name))
{
if
(!("HyperLink" == pages.name))
{
console.info("get HyperLink state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push HyperLink page success " + JSON.stringify(result));
...
...
@@ -51,7 +50,7 @@ export default function hyperlinkJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("HyperLink after each called");
});
...
...
@@ -68,8 +67,8 @@ export default function hyperlinkJsunit() {
let obj = JSON.parse(strJson);
expect(obj.$type).assertEqual('Hyperlink')
console.info("属性值集合: " + JSON.stringify(obj));
console.log('Hyperlink‘s address is '
+
JSON.stringify(obj.$attrs.address))
console.log('Hyperlink‘s content is '
+
JSON.stringify(obj.$attrs.content))
console.log('Hyperlink‘s address is '
+
JSON.stringify(obj.$attrs.address))
console.log('Hyperlink‘s content is '
+
JSON.stringify(obj.$attrs.content))
expect(obj.$attrs.address).assertEqual('https://developer.harmonyos.com/')
expect(obj.$attrs.content).assertEqual('Go to the developer website')
console.info('++++++++++++++++ Hyperlink TestCase 1 End ++++++++++++++++');
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/LinkJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -31,8 +31,7 @@ export default function linkJsunit() {
describe('linkTest', function () {
beforeEach(async function(done){
beforeEach(async function (done) {
let options = {
uri: 'pages/Link',
}
...
...
@@ -40,7 +39,7 @@ export default function linkJsunit() {
router.clear();
let pages = router.getState();
console.info("get Link state success " + JSON.stringify(pages));
if
(!("Link" == pages.name))
{
if
(!("Link" == pages.name))
{
console.info("get Link state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Link page success " + JSON.stringify(result));
...
...
@@ -52,7 +51,7 @@ export default function linkJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Link after each called");
});
...
...
@@ -72,7 +71,7 @@ export default function linkJsunit() {
console.info("yr link0 type: " + JSON.stringify(obj.$type));
console.info("component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.stateEffect).assertEqual('false');
console.log("yr link0 stateEffect-'false'"
+
JSON.stringify(obj.$attrs.stateEffect))
console.log("yr link0 stateEffect-'false'"
+
JSON.stringify(obj.$attrs.stateEffect))
console.info('linkTest001 END');
done();
});
...
...
@@ -88,7 +87,7 @@ export default function linkJsunit() {
let obj = JSON.parse(strJson);
console.info("component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.stateEffect).assertEqual('false');
console.log("yr link1 stateEffect-'false'"
+
JSON.stringify(obj.$attrs.stateEffect))
console.log("yr link1 stateEffect-'false'"
+
JSON.stringify(obj.$attrs.stateEffect))
console.info('linkTest002 END');
done();
});
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/ListItemJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,8 +30,7 @@ export default function listItemJsunit() {
}
describe('listItemTest', function () {
beforeEach(async function(done){
beforeEach(async function (done) {
let options = {
uri: 'pages/ListItem',
}
...
...
@@ -39,7 +38,7 @@ export default function listItemJsunit() {
router.clear();
let pages = router.getState();
console.info("get ListItem state success " + JSON.stringify(pages));
if
(!("ListItem" == pages.name))
{
if
(!("ListItem" == pages.name))
{
console.info("get ListItem state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push ListItem page success " + JSON.stringify(result));
...
...
@@ -51,7 +50,7 @@ export default function listItemJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("ListItem after each called");
});
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/ListJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,8 +30,7 @@ export default function listJsunit() {
}
describe('listTest', function () {
beforeEach(async function(done){
beforeEach(async function (done) {
let options = {
uri: 'pages/List',
}
...
...
@@ -39,7 +38,7 @@ export default function listJsunit() {
router.clear();
let pages = router.getState();
console.info("get List state success " + JSON.stringify(pages));
if
(!("List" == pages.name))
{
if
(!("List" == pages.name))
{
console.info("get List state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push List page success " + JSON.stringify(result));
...
...
@@ -51,7 +50,7 @@ export default function listJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("List after each called");
});
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/NavigatorJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -30,8 +30,7 @@ export default function navigatorJsunit() {
}
describe('navigatorTest', function () {
beforeEach(async function(done){
beforeEach(async function (done) {
let options = {
uri: 'pages/Navigator',
}
...
...
@@ -39,7 +38,7 @@ export default function navigatorJsunit() {
router.clear();
let pages = router.getState();
console.info("get Navigator state success " + JSON.stringify(pages));
if
(!("Navigator" == pages.name))
{
if
(!("Navigator" == pages.name))
{
console.info("get Navigator state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Navigator page success " + JSON.stringify(result));
...
...
@@ -51,7 +50,7 @@ export default function navigatorJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Navigator after each called");
});
...
...
@@ -69,14 +68,16 @@ export default function navigatorJsunit() {
console.info("get inspector value is: " + JSON.stringify(obj));
console.log(JSON.stringify(obj.$type))
expect(obj.$type).assertEqual('Navigator')
console.log('Navigator‘s target is '
+
JSON.stringify(obj.$attrs.target))
console.log('Navigator‘s type is '
+
JSON.stringify(obj.$attrs.type))
console.log('Navigator‘s active is '
+
JSON.stringify(obj.$attrs.active))
console.log('Navigator‘s params is '
+
JSON.stringify(obj.$attrs.params))
console.log('Navigator‘s target is '
+
JSON.stringify(obj.$attrs.target))
console.log('Navigator‘s type is '
+
JSON.stringify(obj.$attrs.type))
console.log('Navigator‘s active is '
+
JSON.stringify(obj.$attrs.active))
console.log('Navigator‘s params is '
+
JSON.stringify(obj.$attrs.params))
expect(obj.$attrs.target).assertEqual('pages/index')
expect(obj.$attrs.type).assertEqual('NavigationType.Back')
expect(obj.$attrs.active).assertEqual('false')
expect(obj.$attrs.params).assertEqual(JSON.stringify({"data":24}))
expect(obj.$attrs.params).assertEqual(JSON.stringify({
"data": 24
}))
console.info('++++++++++++++++ Navigator TestCase 1 End ++++++++++++++++');
done();
});
...
...
@@ -94,7 +95,7 @@ export default function navigatorJsunit() {
console.info("get inspector value is: " + JSON.stringify(obj));
console.log(JSON.stringify(obj.$type))
expect(obj.$type).assertEqual('Navigator')
console.log('Navigator‘s type is '
+
JSON.stringify(obj.$attrs.type))
console.log('Navigator‘s type is '
+
JSON.stringify(obj.$attrs.type))
expect(obj.$attrs.type).assertEqual('NavigationType.Push')
console.info('++++++++++++++++ Navigator TestCase 2 End ++++++++++++++++');
done();
...
...
@@ -113,7 +114,7 @@ export default function navigatorJsunit() {
console.info("get inspector value is: " + JSON.stringify(obj));
console.log(JSON.stringify(obj.$type))
expect(obj.$type).assertEqual('Navigator')
console.log('Navigator‘s type is '
+
JSON.stringify(obj.$attrs.type))
console.log('Navigator‘s type is '
+
JSON.stringify(obj.$attrs.type))
expect(obj.$attrs.type).assertEqual('NavigationType.Replace')
console.info('++++++++++++++++ Navigator TestCase 3 End ++++++++++++++++');
done();
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/PanelJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -31,7 +31,7 @@ export default function panelJsunit() {
describe('panelTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Panel',
}
...
...
@@ -39,7 +39,7 @@ export default function panelJsunit() {
router.clear();
let pages = router.getState();
console.info("get Panel state success " + JSON.stringify(pages));
if
(!("Panel" == pages.name))
{
if
(!("Panel" == pages.name))
{
console.info("get Panel state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Panel page success " + JSON.stringify(result));
...
...
@@ -51,7 +51,7 @@ export default function panelJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Panel after each called");
});
...
...
@@ -68,12 +68,12 @@ export default function panelJsunit() {
console.info("get inspector value is: " + JSON.stringify(obj));
console.log(JSON.stringify(obj.$type))
expect(obj.$type).assertEqual('Panel')
console.log('Panel‘s type is '
+
JSON.stringify(obj.$attrs.type))
console.log('Panel‘s mode is '
+
JSON.stringify(obj.$attrs.mode))
console.log('Panel‘s dragBar is '
+
JSON.stringify(obj.$attrs.dragBar))
console.log('Panel‘s fullHeight is '
+
JSON.stringify(obj.$attrs.fullHeight))
console.log('Panel‘s halfHeight is '
+
JSON.stringify(obj.$attrs.halfHeight))
console.log('Panel‘s miniHeight is '
+
JSON.stringify(obj.$attrs.miniHeight))
console.log('Panel‘s type is '
+
JSON.stringify(obj.$attrs.type))
console.log('Panel‘s mode is '
+
JSON.stringify(obj.$attrs.mode))
console.log('Panel‘s dragBar is '
+
JSON.stringify(obj.$attrs.dragBar))
console.log('Panel‘s fullHeight is '
+
JSON.stringify(obj.$attrs.fullHeight))
console.log('Panel‘s halfHeight is '
+
JSON.stringify(obj.$attrs.halfHeight))
console.log('Panel‘s miniHeight is '
+
JSON.stringify(obj.$attrs.miniHeight))
expect(obj.$attrs.type).assertEqual('PanelType.Foldable')
expect(obj.$attrs.mode).assertEqual('PanelMode.Half')
expect(obj.$attrs.dragBar).assertEqual('true')
...
...
@@ -97,9 +97,9 @@ export default function panelJsunit() {
console.info("get inspector value is: " + JSON.stringify(obj));
console.log(JSON.stringify(obj.$type))
expect(obj.$type).assertEqual('Panel')
console.log('Panel‘s type is '
+
JSON.stringify(obj.$attrs.type))
console.log('Panel‘s mode is '
+
JSON.stringify(obj.$attrs.mode))
console.log('Panel‘s show is '
+
JSON.stringify(obj.$attrs.show))
console.log('Panel‘s type is '
+
JSON.stringify(obj.$attrs.type))
console.log('Panel‘s mode is '
+
JSON.stringify(obj.$attrs.mode))
console.log('Panel‘s show is '
+
JSON.stringify(obj.$attrs.show))
expect(obj.$attrs.type).assertEqual('PanelType.Minibar')
expect(obj.$attrs.mode).assertEqual('PanelMode.Mini')
expect(obj.$attrs.show).assertEqual('true')
...
...
@@ -120,9 +120,9 @@ export default function panelJsunit() {
console.info("get inspector value is: " + JSON.stringify(obj));
console.log(JSON.stringify(obj.$type))
expect(obj.$type).assertEqual('Panel')
console.log('Panel‘s type is '
+
JSON.stringify(obj.$attrs.type))
console.log('Panel‘s mode is '
+
JSON.stringify(obj.$attrs.mode))
console.log('Panel‘s show is '
+
JSON.stringify(obj.$attrs.show))
console.log('Panel‘s type is '
+
JSON.stringify(obj.$attrs.type))
console.log('Panel‘s mode is '
+
JSON.stringify(obj.$attrs.mode))
console.log('Panel‘s show is '
+
JSON.stringify(obj.$attrs.show))
expect(obj.$attrs.type).assertEqual('PanelType.Temporary')
expect(obj.$attrs.mode).assertEqual('PanelMode.Full')
expect(obj.$attrs.show).assertEqual('false')
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/PropJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -31,7 +31,7 @@ export default function propJsunit() {
describe('propTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Prop',
}
...
...
@@ -39,7 +39,7 @@ export default function propJsunit() {
router.clear();
let pages = router.getState();
console.info("get Prop state success " + JSON.stringify(pages));
if
(!("Prop" == pages.name))
{
if
(!("Prop" == pages.name))
{
console.info("get Prop state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Prop page success " + JSON.stringify(result));
...
...
@@ -51,7 +51,7 @@ export default function propJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Prop after each called");
});
...
...
@@ -68,8 +68,8 @@ export default function propJsunit() {
let obj = JSON.parse(strJson);
expect(obj.$type).assertEqual('Text');
console.log(JSON.stringify(obj.$type))
console.log("cd attrs.conten type1"
+typeof
("10"))
console.log("yr prop0 content-'10'"
+
obj.$attrs.content)
console.log("cd attrs.conten type1"
+ typeof
("10"))
console.log("yr prop0 content-'10'"
+
obj.$attrs.content)
expect(obj.$attrs.content).assertEqual("10");
console.info('propTest001 END');
done();
...
...
@@ -85,10 +85,10 @@ export default function propJsunit() {
let strJson = getInspectorByKey('Text002');
let obj = JSON.parse(strJson);
console.info("component obj is: " + JSON.stringify(obj));
console.log("cd attrs.conten type"
+typeof
(obj.$attrs.content))
console.log("cd attrs.conten type1 "
+typeof
("10"))
console.log("cd attrs.conten type"
+ typeof
(obj.$attrs.content))
console.log("cd attrs.conten type1 "
+ typeof
("10"))
expect(obj.$attrs.content).assertEqual("10");
console.log("cd prop0 content-'10'"
+
JSON.stringify(obj.$attrs.content))
console.log("cd prop0 content-'10'"
+
JSON.stringify(obj.$attrs.content))
console.info('propTest002 END');
done();
});
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/RowJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -28,8 +28,9 @@ export default function rowJsunit() {
console.info(`sleep ${time} over...`)
})
}
describe('rowTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Row',
}
...
...
@@ -37,7 +38,7 @@ export default function rowJsunit() {
router.clear();
let pages = router.getState();
console.info("get Row state success " + JSON.stringify(pages));
if
(!("Row" == pages.name))
{
if
(!("Row" == pages.name))
{
console.info("get Row state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Row page success " + JSON.stringify(result));
...
...
@@ -49,7 +50,7 @@ export default function rowJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Row after each called");
});
...
...
@@ -67,9 +68,9 @@ export default function rowJsunit() {
console.info("get inspector value is: " + JSON.stringify(obj));
console.log(JSON.stringify(obj.$type))
expect(obj.$type).assertEqual('Row')
console.log('Row‘s useAlign is '
+
JSON.stringify(obj.$attrs.useAlign))
console.log('Row‘s space is '
+
JSON.stringify(obj.$attrs.space))
console.log('Row‘s alignItems is '
+
JSON.stringify(obj.$attrs.alignItems))
console.log('Row‘s useAlign is '
+
JSON.stringify(obj.$attrs.useAlign))
console.log('Row‘s space is '
+
JSON.stringify(obj.$attrs.space))
console.log('Row‘s alignItems is '
+
JSON.stringify(obj.$attrs.alignItems))
expect(obj.$attrs.alignItems).assertEqual('VerticalAlign.Top')
console.info('++++++++++++++++ Row TestCase 1 End ++++++++++++++++');
done();
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/SwiperJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -54,7 +54,7 @@ export default function swiperJsunit() {
describe
(
'swiperTest'
,
function
()
{
beforeEach
(
async
function
(
done
)
{
beforeEach
(
async
function
(
done
)
{
let
options
=
{
uri
:
'pages/Swiper'
,
}
...
...
@@ -62,7 +62,7 @@ export default function swiperJsunit() {
router
.
clear
();
let
pages
=
router
.
getState
();
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
));
let
result
=
await
router
.
push
(
options
)
console
.
info
(
"push Swiper page success "
+
JSON
.
stringify
(
result
));
...
...
@@ -74,7 +74,7 @@ export default function swiperJsunit() {
done
()
});
afterEach
(
async
function
{
afterEach
(
async
function
()
{
await
sleep
(
1
)
console
.
info
(
"Swiper after each called"
);
});
...
...
@@ -92,14 +92,14 @@ export default function swiperJsunit() {
console
.
info
(
"get inspector value is: "
+
JSON
.
stringify
(
obj
));
console
.
log
(
JSON
.
stringify
(
obj
.
$type
))
expect
(
obj
.
$type
)
.
assertEqual
(
'Swiper'
)
console
.
log
(
'Swiper‘s index is '
+
JSON
.
stringify
(
obj
.
$attrs
.
index
))
console
.
log
(
'Swiper‘s autoPlay is '
+
JSON
.
stringify
(
obj
.
$attrs
.
autoPlay
))
console
.
log
(
'Swiper‘s interval is '
+
JSON
.
stringify
(
obj
.
$attrs
.
interval
))
console
.
log
(
'Swiper‘s indicator is '
+
JSON
.
stringify
(
obj
.
$attrs
.
indicator
))
console
.
log
(
'Swiper‘s loop is '
+
JSON
.
stringify
(
obj
.
$attrs
.
loop
))
console
.
log
(
'Swiper‘s duration is '
+
JSON
.
stringify
(
obj
.
$attrs
.
duration
))
console
.
log
(
'Swiper‘s vertical is '
+
JSON
.
stringify
(
obj
.
$attrs
.
vertical
))
console
.
log
(
'Swiper‘s itemSpace is '
+
JSON
.
stringify
(
obj
.
$attrs
.
itemSpace
))
console
.
log
(
'Swiper‘s index is '
+
JSON
.
stringify
(
obj
.
$attrs
.
index
))
console
.
log
(
'Swiper‘s autoPlay is '
+
JSON
.
stringify
(
obj
.
$attrs
.
autoPlay
))
console
.
log
(
'Swiper‘s interval is '
+
JSON
.
stringify
(
obj
.
$attrs
.
interval
))
console
.
log
(
'Swiper‘s indicator is '
+
JSON
.
stringify
(
obj
.
$attrs
.
indicator
))
console
.
log
(
'Swiper‘s loop is '
+
JSON
.
stringify
(
obj
.
$attrs
.
loop
))
console
.
log
(
'Swiper‘s duration is '
+
JSON
.
stringify
(
obj
.
$attrs
.
duration
))
console
.
log
(
'Swiper‘s vertical is '
+
JSON
.
stringify
(
obj
.
$attrs
.
vertical
))
console
.
log
(
'Swiper‘s itemSpace is '
+
JSON
.
stringify
(
obj
.
$attrs
.
itemSpace
))
expect
(
obj
.
$attrs
.
index
)
.
assertEqual
(
'1'
)
expect
(
obj
.
$attrs
.
autoPlay
)
.
assertEqual
(
'true'
)
expect
(
obj
.
$attrs
.
interval
)
.
assertEqual
(
'4000'
)
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/TabJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -31,7 +31,7 @@ export default function tabJsunit() {
describe('tabTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Tab',
}
...
...
@@ -39,7 +39,7 @@ export default function tabJsunit() {
router.clear();
let pages = router.getState();
console.info("get Tab state success " + JSON.stringify(pages));
if
(!("Tab" == pages.name))
{
if
(!("Tab" == pages.name))
{
console.info("get Tab state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Tab page success " + JSON.stringify(result));
...
...
@@ -51,7 +51,7 @@ export default function tabJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
await sleep(1)
console.info("Tab after each called");
});
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -31,7 +31,7 @@ export default function textJsunit() {
describe('textTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Text',
}
...
...
@@ -39,7 +39,7 @@ export default function textJsunit() {
router.clear();
let pages = router.getState();
console.info("get Text state success " + JSON.stringify(pages));
if
(!("Text" == pages.name))
{
if
(!("Text" == pages.name))
{
console.info("get Text state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Text page success " + JSON.stringify(result));
...
...
@@ -51,7 +51,7 @@ export default function textJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
console.info("Text after each called")
await sleep(1)
});
...
...
ace/ace_ets_test/entry/src/main/ets/MainAbility/test/VideoJsunit.test.ets
浏览文件 @
db61e164
...
...
@@ -28,9 +28,10 @@ export default function videoJsunit() {
console.info(`sleep ${time} over...`)
})
}
describe('VideoAppInfoTest', function () {
beforeEach(async function
(done)
{
beforeEach(async function
(done)
{
let options = {
uri: 'pages/Video',
}
...
...
@@ -38,7 +39,7 @@ export default function videoJsunit() {
router.clear();
let pages = router.getState();
console.info("get Video state success " + JSON.stringify(pages));
if
(!("Video" == pages.name))
{
if
(!("Video" == pages.name))
{
console.info("get Video state success " + JSON.stringify(pages.name));
let result = await router.push(options)
console.info("push Video page success " + JSON.stringify(result));
...
...
@@ -50,7 +51,7 @@ export default function videoJsunit() {
done()
});
afterEach(async function{
afterEach(async function
()
{
console.info("Video after each called");
await sleep(1)
});
...
...
@@ -66,12 +67,12 @@ export default function videoJsunit() {
let strJson = getInspectorByKey('video');
let obj = JSON.parse(strJson);
console.info("cd video component obj is: " + JSON.stringify(obj));
console.log("cd video type" +JSON.stringify(obj.$type));
console.log("cd video autoPlay" +JSON.stringify(obj.$attrs.autoPlay));
console.log("cd video muted" +JSON.stringify(obj.$attrs.muted));
console.log("cd video controls" +JSON.stringify(obj.$attrs.controls));
console.log("cd video loop" +JSON.stringify(obj.$attrs.loop));
console.log("cd video objectFit" +JSON.stringify(obj.$attrs.objectFit));
console.log("cd video type" +
JSON.stringify(obj.$type));
console.log("cd video autoPlay" +
JSON.stringify(obj.$attrs.autoPlay));
console.log("cd video muted" +
JSON.stringify(obj.$attrs.muted));
console.log("cd video controls" +
JSON.stringify(obj.$attrs.controls));
console.log("cd video loop" +
JSON.stringify(obj.$attrs.loop));
console.log("cd video objectFit" +
JSON.stringify(obj.$attrs.objectFit));
console.info('videoAppInfoTest001 END');
done();
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录