提交 82340ef7 编写于 作者: B bayanxing

change testcase position

Signed-off-by: Nbayanxing <bayanxing@kaihongdigi.com>
上级 d053fdd7
......@@ -1222,70 +1222,69 @@ describe('aceJsTest', function () {
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testImageBitmapComponent
* @tc.name testOffCanvasRC2DComponent
* @tc.desc ACE
*/
it('testImageBitmapComponent', 0, async function (done) {
it('testOffCanvasRC2DComponent', 0, async function (done) {
let result;
let options = {
uri: 'pages/obj_ImageBitmap/index'
uri: 'pages/obj_OffscreenCanvasRenderingContext2D/index'
}
try {
result = router.push(options)
console.info("push obj_ImageBitmap page success " + JSON.stringify(result));
console.info("push obj_OffscreenCanvasRenderingContext2D page success " + JSON.stringify(result));
} catch (err) {
console.error("push obj_ImageBitmap page error " + JSON.stringify(result));
console.error("push obj_OffscreenCanvasRenderingContext2D page error " + JSON.stringify(result));
}
await sleep(5000)
let pages = router.getState();
console.info("[router.obj_ImageBitmap] getState" + JSON.stringify(pages));
expect("pages/obj_ImageBitmap/").assertEqual(pages.path);
console.info("[router.obj_OffscreenCanvasRenderingContext2D] getState" + JSON.stringify(pages));
expect("pages/obj_OffscreenCanvasRenderingContext2D/").assertEqual(pages.path);
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testOffScreenCanvasComponent
* @tc.name testImageBitmapComponent
* @tc.desc ACE
*/
it('testOffScreenCanvasComponent', 0, async function (done) {
it('testImageBitmapComponent', 0, async function (done) {
let result;
let options = {
uri: 'pages/obj_OffscreenCanvas/index'
uri: 'pages/obj_ImageBitmap/index'
}
try {
result = router.push(options)
console.info("push obj_OffscreenCanvas page success " + JSON.stringify(result));
console.info("push obj_ImageBitmap page success " + JSON.stringify(result));
} catch (err) {
console.error("push obj_OffscreenCanvas page error " + JSON.stringify(result));
console.error("push obj_ImageBitmap page error " + JSON.stringify(result));
}
await sleep(5000)
let pages = router.getState();
console.info("[router.obj_OffscreenCanvas] getState" + JSON.stringify(pages));
expect("pages/obj_OffscreenCanvas/").assertEqual(pages.path);
console.info("[router.obj_ImageBitmap] getState" + JSON.stringify(pages));
expect("pages/obj_ImageBitmap/").assertEqual(pages.path);
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testOffCanvasRC2DComponent
* @tc.name testOffScreenCanvasComponent
* @tc.desc ACE
*/
it('testOffCanvasRC2DComponent', 0, async function (done) {
it('testOffScreenCanvasComponent', 0, async function (done) {
let result;
let options = {
uri: 'pages/obj_OffscreenCanvasRenderingContext2D/index'
uri: 'pages/obj_OffscreenCanvas/index'
}
try {
result = router.push(options)
console.info("push obj_OffscreenCanvasRenderingContext2D page success " + JSON.stringify(result));
console.info("push obj_OffscreenCanvas page success " + JSON.stringify(result));
} catch (err) {
console.error("push obj_OffscreenCanvasRenderingContext2D page error " + JSON.stringify(result));
console.error("push obj_OffscreenCanvas page error " + JSON.stringify(result));
}
await sleep(5000)
let pages = router.getState();
console.info("[router.obj_OffscreenCanvasRenderingContext2D] getState" + JSON.stringify(pages));
expect("pages/obj_OffscreenCanvasRenderingContext2D/").assertEqual(pages.path);
console.info("[router.obj_OffscreenCanvas] getState" + JSON.stringify(pages));
expect("pages/obj_OffscreenCanvas/").assertEqual(pages.path);
done();
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册