diff --git a/ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js b/ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js index 64500a1614dacfeb9828dc2fade30591c2c0538c..cc90b7c1616be9ee109b94b848a576e1b854afd9 100644 --- a/ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js +++ b/ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js @@ -1219,73 +1219,72 @@ describe('aceJsTest', function () { expect("pages/obj_Path2D/").assertEqual(pages.path); done(); }); - + /** * @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(); });