提交 89b2d755 编写于 作者: W wang_lijian

add test cases

Signed-off-by: Nwang_lijian <wanglijian@kaihongdigi.com>
上级 4e868210
......@@ -96,7 +96,8 @@
"pages/listItem/prop/index",
"pages/listItemGroup/router/index",
"pages/listItemGroup/prop/index",
"pages/marquee/index",
"pages/marquee/router/index",
"pages/marquee/prop/index",
"pages/imageAnimator/index",
"pages/panel/router/index",
"pages/panel/prop/index",
......
......@@ -21,6 +21,7 @@ require('./buttonProps.test.js')
require('./chartProps.test.js')
require('./imageProps.test.js')
require('./spanProps.test.js')
require('./marqueeProps.test.js')
require('./menuProps.test.js')
require('./switchProps.test.js')
require('./tabsProps.test.js')
......
......@@ -219,6 +219,27 @@ 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)
} catch (err) {
result = err
}
await sleep(1000)
let pages = router.getState();
expect("pages/marquee/router/").assertEqual(pages.path);
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testDividerComponent
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册