From b65922796fb51a7dca049d95c325146c9e770efc Mon Sep 17 00:00:00 2001 From: bayanxing Date: Wed, 16 Feb 2022 19:54:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: bayanxing --- .../default/test/commonComponentJsApi.test.js | 82 +++++++++---------- 1 file changed, 41 insertions(+), 41 deletions(-) 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 a385176aa..6118164d5 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 @@ -174,27 +174,27 @@ describe('aceJsTest', function () { done(); }); -// /** -// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0400 -// * @tc.name testLabelComponent -// * @tc.desc ACE -// */ -// it('testLabelComponent', 0, async function (done) { -// console.info('testLabelComponent START'); -// let result; -// let options = { -// uri: 'pages/label/index' -// } -// try { -// result = router.push(options) -// } catch (err) { -// result = err -// } -// await sleep(1000) -// let pages = router.getState(); -// expect("pages/label/").assertEqual(pages.path); -// done(); -// }); + /** + * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0400 + * @tc.name testLabelComponent + * @tc.desc ACE + */ + it('testLabelComponent', 0, async function (done) { + console.info('testLabelComponent START'); + let result; + let options = { + uri: 'pages/label/index' + } + try { + result = router.push(options) + } catch (err) { + result = err + } + await sleep(1000) + let pages = router.getState(); + expect("pages/label/").assertEqual(pages.path); + done(); + }); /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 @@ -448,26 +448,26 @@ describe('aceJsTest', function () { done(); }); -// /** -// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 -// * @tc.name testPickerViewComponent -// * @tc.desc ACE -// */ -// it('testPickerViewComponent', 0, async function (done) { -// let result; -// let options = { -// uri: 'pages/pickerView/index' -// } -// try { -// result = router.push(options) -// } catch (err) { -// result = err -// } -// await sleep(1000) -// let pages = router.getState(); -// expect("pages/pickerView/").assertEqual(pages.path); -// done(); -// }); + /** + * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 + * @tc.name testPickerViewComponent + * @tc.desc ACE + */ + it('testPickerViewComponent', 0, async function (done) { + let result; + let options = { + uri: 'pages/pickerView/index' + } + try { + result = router.push(options) + } catch (err) { + result = err + } + await sleep(1000) + let pages = router.getState(); + expect("pages/pickerView/").assertEqual(pages.path); + done(); + }); /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 -- GitLab