提交 22b78f40 编写于 作者: S shenchunping

add test cases

Signed-off-by: Nshenchunping <shenchunping@kaihongdigi.com>
上级 444a3036
...@@ -127,8 +127,10 @@ ...@@ -127,8 +127,10 @@
"pages/tab-content/router/index", "pages/tab-content/router/index",
"pages/tab-content/prop/index", "pages/tab-content/prop/index",
"pages/svg_text/index", "pages/svg_text/index",
"pages/video/index", "pages/video/prop/index",
"pages/gridContainer/index", "pages/video/router/index",
"pages/gridContainer/prop/index",
"pages/gridContainer/router/index",
"pages/gridRow/index", "pages/gridRow/index",
"pages/gridCol/index", "pages/gridCol/index",
"pages/canvas/index", "pages/canvas/index",
......
...@@ -55,3 +55,5 @@ require('./ratingProps.test.js') ...@@ -55,3 +55,5 @@ require('./ratingProps.test.js')
require('./inputProps.test.js') require('./inputProps.test.js')
require('./imageAnimatorProps.test.js') require('./imageAnimatorProps.test.js')
require('./textareaProps.test.js') require('./textareaProps.test.js')
require('./videoProps.test.js')
require('./gridContainerProps.test.js')
\ No newline at end of file
...@@ -996,7 +996,7 @@ describe('aceJsTest', function () { ...@@ -996,7 +996,7 @@ describe('aceJsTest', function () {
it('testVideoComponent', 0, async function (done) { it('testVideoComponent', 0, async function (done) {
let result; let result;
let options = { let options = {
uri: 'pages/video/index' uri: 'pages/video/router/index'
} }
try { try {
result = router.push(options) result = router.push(options)
...@@ -1007,7 +1007,7 @@ describe('aceJsTest', function () { ...@@ -1007,7 +1007,7 @@ describe('aceJsTest', function () {
await sleep(5000) await sleep(5000)
let pages = router.getState(); let pages = router.getState();
console.info("[router.video] getState" + JSON.stringify(pages)); console.info("[router.video] getState" + JSON.stringify(pages));
expect("pages/video/").assertEqual(pages.path); expect("pages/video/router/").assertEqual(pages.path);
done(); done();
}); });
...@@ -1042,7 +1042,7 @@ describe('aceJsTest', function () { ...@@ -1042,7 +1042,7 @@ describe('aceJsTest', function () {
it('testGridContainerComponent', 0, async function (done) { it('testGridContainerComponent', 0, async function (done) {
let result; let result;
let options = { let options = {
uri: 'pages/gridContainer/index' uri: 'pages/gridContainer/router/index'
} }
try { try {
result = router.push(options) result = router.push(options)
...@@ -1053,7 +1053,7 @@ describe('aceJsTest', function () { ...@@ -1053,7 +1053,7 @@ describe('aceJsTest', function () {
await sleep(5000) await sleep(5000)
let pages = router.getState(); let pages = router.getState();
console.info("[router.gridContainer] getState" + JSON.stringify(pages)); console.info("[router.gridContainer] getState" + JSON.stringify(pages));
expect("pages/gridContainer/").assertEqual(pages.path); expect("pages/gridContainer/router/").assertEqual(pages.path);
done(); done();
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册