diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/BadgeJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/BadgeJsunit.test.ets index c4c713b19e0be54f3398f7265b6855cf5fe44d2c..685551526e8e15383eece315b56cb53d237f1a01 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/BadgeJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/BadgeJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function badgeJsunit() { } describe('badgeTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Badge', } @@ -38,7 +38,7 @@ export default function badgeJsunit() { router.clear(); let pages = router.getState(); console.info("get Badge state success " + JSON.stringify(pages)); - if(!("Badge" == pages.name)){ + if (!("Badge" == pages.name)) { console.info("get Badge state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Badge page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function badgeJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Badge after each called"); }); @@ -113,5 +113,7 @@ export default function badgeJsunit() { console.info('testGetInspectorByKey END'); done(); }); - }) + } + + ) } diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/BlankJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/BlankJsunit.test.ets index 706bcb9a5673507b7ac321851ee25ec0fb3ec7bb..5132ec27d15e9e11849bccd15837e8582eec53a9 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/BlankJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/BlankJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function blankJsunit() { } describe('BlankTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Blank', } @@ -38,7 +38,7 @@ export default function blankJsunit() { router.clear(); let pages = router.getState(); console.info("get Blank state success " + JSON.stringify(pages)); - if(!("Blank" == pages.name)){ + if (!("Blank" == pages.name)) { console.info("get Blank state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Blank page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function blankJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Blank after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets index eb7889c458dcfe5d1257a80b7f545c16a8bc0444..abd5a81aa7cf3efd2377d7e4f60f560840526a18 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ButtonJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function buttonJsunit() { } describe('buttonTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Button', } @@ -38,7 +38,7 @@ export default function buttonJsunit() { router.clear(); let pages = router.getState(); console.info("get Button state success " + JSON.stringify(pages)); - if(!("Button" == pages.name)){ + if (!("Button" == pages.name)) { console.info("get Button state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Button page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function buttonJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Button after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ColumnJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ColumnJsunit.test.ets index 63ddadd1a9ab21f76893e89bc88eb33ecf915963..b74769d41ca891600be899390d38aeff078ee85d 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ColumnJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ColumnJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function columnJsunit() { } describe('columnTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Column', } @@ -38,7 +38,7 @@ export default function columnJsunit() { router.clear(); let pages = router.getState(); console.info("get Column state success " + JSON.stringify(pages)); - if(!("Column" == pages.name)){ + if (!("Column" == pages.name)) { console.info("get Column state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Column page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function columnJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Column after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ColumnSplitJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ColumnSplitJsunit.test.ets index cd62fab3cf3e925c7f8c506d079a87dee24b6174..eaf3be411872de170e9de6d8429cf47c5bf3eff1 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ColumnSplitJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ColumnSplitJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function columnSplitJsunit() { } describe('columnSplitTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/ColumnSplit', } @@ -38,7 +38,7 @@ export default function columnSplitJsunit() { router.clear(); let pages = router.getState(); console.info("get ColumnSplit state success " + JSON.stringify(pages)); - if(!("ColumnSplit" == pages.name)){ + if (!("ColumnSplit" == pages.name)) { console.info("get ColumnSplit state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push ColumnSplit page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function columnSplitJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("ColumnSplit after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/CounterJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/CounterJsunit.test.ets index 0cbabc4e650328944f3e56796093216c9f49843d..46b72a881f51fd542fa72bd89cf05380e05ad250 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/CounterJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/CounterJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function counterJsunit() { } describe('counterTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Counter', } @@ -38,7 +38,7 @@ export default function counterJsunit() { router.clear(); let pages = router.getState(); console.info("get Counter state success " + JSON.stringify(pages)); - if(!("Counter" == pages.name)){ + if (!("Counter" == pages.name)) { console.info("get Counter state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Counter page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function counterJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Counter after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/DataPanelJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/DataPanelJsunit.test.ets index d1770783388e3f4e49a1813dfc7b9ab04a63956f..4bb2c3192d10c54f49fca3c17872c0341b690c57 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/DataPanelJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/DataPanelJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,15 +30,15 @@ export default function datapanelJsunit() { } describe('dataPanelTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/DataPanel', } - try { + try { router.clear(); let pages = router.getState(); console.info("get DataPanel state success " + JSON.stringify(pages)); - if(!("DataPanel" == pages.name)){ + if (!("DataPanel" == pages.name)) { console.info("get DataPanel state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push DataPanel page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function datapanelJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("DataPanel after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/DividerJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/DividerJsunit.test.ets index ff0756ddb3fa31f092d43ecbb0adee352bda739f..4c2d1a14e2ce80d68464872133b089f2b7107597 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/DividerJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/DividerJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function dividerJsunit() { } describe('dividerTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Divider', } @@ -38,10 +38,11 @@ export default function dividerJsunit() { router.clear(); let pages = router.getState(); console.info("get divider state success " + JSON.stringify(pages)); - if(!("Divider" == pages.name)){ + if (!("Divider" == pages.name)) { console.info("get divider state success " + JSON.stringify(pages.name)); let result = await router.push(options) - console.info("push divider page success " + JSON.stringify(result));} + console.info("push divider page success " + JSON.stringify(result)); + } } catch (err) { console.error("push divider page error " + JSON.stringify(result)); } @@ -49,7 +50,7 @@ export default function dividerJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Divider after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/FlexJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/FlexJsunit.test.ets index 71e972d4d37d1e34624d159aae0ae2e030d08633..e743cdfba2b9ee0324a61a9897be47e00056450f 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/FlexJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/FlexJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function flexJsunit() { } describe('flexTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Flex', } @@ -38,7 +38,7 @@ export default function flexJsunit() { router.clear(); let pages = router.getState(); console.info("get Flex state success " + JSON.stringify(pages)); - if(!("Flex" == pages.name)){ + if (!("Flex" == pages.name)) { console.info("get Flex state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Flex page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function flexJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Flex after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/GridContainerJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/GridContainerJsunit.test.ets index 522613b958348445c2ea616e059727ad29d170f9..114922d703883e4b9afb7e4b0cd505fa34b59d30 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/GridContainerJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/GridContainerJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function gridContainerJsunit() { } describe('gridContainerTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/GridContainer', } @@ -38,7 +38,7 @@ export default function gridContainerJsunit() { router.clear(); let pages = router.getState(); console.info("get GridContainer state success " + JSON.stringify(pages)); - if(!("GridContainer" == pages.name)){ + if (!("GridContainer" == pages.name)) { console.info("get GridContainer state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push GridContainer page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function gridContainerJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("GridContainer after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ImageJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ImageJsunit.test.ets index 7a43a214c67cfe17f37cdf46cc6a048bea3e1e72..2e998f47270384b1e4d549a17a0009865fa1362a 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ImageJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ImageJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function imageJsunit() { } describe('imageTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Image', } @@ -38,7 +38,7 @@ export default function imageJsunit() { router.clear(); let pages = router.getState(); console.info("get Image state success " + JSON.stringify(pages)); - if(!("Image" == pages.name)){ + if (!("Image" == pages.name)) { console.info("get Image state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Image page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function imageJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Image after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/PanelJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/PanelJsunit.test.ets index 7202cbbee12ea0350e8bf88c6a3435085288a8b5..7bd66787a44a5ebad5aea7d9958d8b04372a089d 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/PanelJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/PanelJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function panelJsunit() { } describe('panelTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Panel', } @@ -38,19 +38,19 @@ export default function panelJsunit() { router.clear(); let pages = router.getState(); console.info("get Panel state success " + JSON.stringify(pages)); - if(!("Panel" == pages.name)){ + if (!("Panel" == pages.name)) { console.info("get Panel state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Panel page success " + JSON.stringify(result)); } } catch (err) { console.error(JSON.stringify(result)); - } + } await sleep(1) done() }); - - afterEach(async function{ + + afterEach(async function () { await sleep(1) console.info("Panel after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ProgressJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ProgressJsunit.test.ets index 52d5db3a1f30153a234333e0b538c7cb0fac8c5b..3110351ae2acf7c5accfb7c91499bfebc8ce0f3d 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ProgressJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ProgressJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,15 +30,15 @@ export default function progressJsunit() { } describe('progressTest', function () { - beforeEach(async function(done){ - let options = { + beforeEach(async function (done) { + let options = { uri: 'pages/Progress', } try { router.clear(); let pages = router.getState(); console.info("get Progress state success " + JSON.stringify(pages)); - if(!("Progress" == pages.name)){ + if (!("Progress" == pages.name)) { console.info("get Progress state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Progress page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function progressJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Progress after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/QrcodeJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/QrcodeJsunit.test.ets index 8daac7e4d2aa62a1764e045957bce0edc5e186d0..123a8764384f2bb8e21409432b1b3b2358a1c06b 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/QrcodeJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/QrcodeJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function qrcodeJsunit() { } describe('QrcodeTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Qrcode', } @@ -38,7 +38,7 @@ export default function qrcodeJsunit() { router.clear(); let pages = router.getState(); console.info("get Qrcode state success " + JSON.stringify(pages)); - if(!("Qrcode" == pages.name)){ + if (!("Qrcode" == pages.name)) { console.info("get Qrcode state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Qrcode page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function qrcodeJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Qrcode after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/RatingJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/RatingJsunit.test.ets index 580892a60a9336e105fc914ccd83c8c5f8952f3e..b01afaa6ec120881615354b07c35e0b37ac7bc83 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/RatingJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/RatingJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function ratingJsunit() { } describe('ratingTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Rating', } @@ -38,7 +38,7 @@ export default function ratingJsunit() { router.clear(); let pages = router.getState(); console.info("get Rating state success " + JSON.stringify(pages)); - if(!("Rating" == pages.name)){ + if (!("Rating" == pages.name)) { console.info("get Rating state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Rating page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function ratingJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Rating after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/RowSplitJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/RowSplitJsunit.test.ets index d5203f2329bcf29234d402ffacf1affde024d431..69a0b640918689d410799ea427d07ea4c679573e 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/RowSplitJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/RowSplitJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function rowSplitJsunit() { } describe('RowSplitTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/RowSplit', } @@ -38,7 +38,7 @@ export default function rowSplitJsunit() { router.clear(); let pages = router.getState(); console.info("get RowSplit state success " + JSON.stringify(pages)); - if(!("RowSplit" == pages.name)){ + if (!("RowSplit" == pages.name)) { console.info("get RowSplit state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push RowSplit page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function rowSplitJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("RowSplit after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ScrollJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ScrollJsunit.test.ets index cca7788cf1eb6a5dd4eea2fab4312dae0c576be7..71afb201f5bd2b850c469bb027391985711cfc8d 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ScrollJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/ScrollJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function ScrollJsunit() { } describe('scrollTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Scroll', } @@ -38,7 +38,7 @@ export default function ScrollJsunit() { router.clear(); let pages = router.getState(); console.info("get Scroll state success " + JSON.stringify(pages)); - if(!("Scroll" == pages.name)){ + if (!("Scroll" == pages.name)) { console.info("get Scroll state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Scroll page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function ScrollJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Scroll after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/SliderJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/SliderJsunit.test.ets index 98980b67894f244587964505f6da83dac4b563b6..da9fc4b52ebe9849f56dd5e27b0e86007a016a93 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/SliderJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/SliderJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function sliderJsunit() { } describe('SliderTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Slider', } @@ -38,7 +38,7 @@ export default function sliderJsunit() { router.clear(); let pages = router.getState(); console.info("get Slider state success " + JSON.stringify(pages)); - if(!("Slider" == pages.name)){ + if (!("Slider" == pages.name)) { console.info("get Slider state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Slider page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function sliderJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Slider after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/SpanJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/SpanJsunit.test.ets index 9787cc5dd73ec3150796ae0107020ec0f2b0bb77..4a529f325ebb873e797a4f97557562eac1a9a99e 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/SpanJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/SpanJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function spanJsunit() { } describe('SpanTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Span', } @@ -38,7 +38,7 @@ export default function spanJsunit() { router.clear(); let pages = router.getState(); console.info("get Span state success " + JSON.stringify(pages)); - if(!("Span" == pages.name)){ + if (!("Span" == pages.name)) { console.info("get Span state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Span page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function spanJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Span after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/StackJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/StackJsunit.test.ets index c7a46223a1bfd547ac4d7688571fe65ae191b2c9..cf8a4ff47ae3d80575bb9c63a934ab9057ade84e 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/StackJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/StackJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function StackJsunit() { } describe('StackTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Stack', } @@ -38,7 +38,7 @@ export default function StackJsunit() { router.clear(); let pages = router.getState(); console.info("get Stack state success " + JSON.stringify(pages)); - if(!("Stack" == pages.name)){ + if (!("Stack" == pages.name)) { console.info("get Stack state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Stack page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function StackJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Stack after each called"); }); diff --git a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets index 4a993e7b7f4104a29f620df2a96c253d70e50f84..7835446bf6754cf5aef9bca1b6f6674384e2a73c 100644 --- a/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets +++ b/ace/ace_ets_standard/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,7 +30,7 @@ export default function textJsunit() { } describe('textTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Text', } @@ -38,7 +38,7 @@ export default function textJsunit() { router.clear(); let pages = router.getState(); console.info("get Text state success " + JSON.stringify(pages)); - if(!("Text" == pages.name)){ + if (!("Text" == pages.name)) { console.info("get Text state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Text page success " + JSON.stringify(result)); @@ -50,7 +50,7 @@ export default function textJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Text after each called"); }); diff --git a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/AlphabetIndexerJsunit.test.ets b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/AlphabetIndexerJsunit.test.ets index 1dd3c6544e788ce4d4d2419e40f6162458a52aab..18d7985968447204f0328f85a718f66fda01e04e 100644 --- a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/AlphabetIndexerJsunit.test.ets +++ b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/AlphabetIndexerJsunit.test.ets @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,16 +30,15 @@ export default function alphabetIndexerJsunit() { } describe('alphabetIndexerTest', function () { - - beforeEach(async function(done){ - let options = { + beforeEach(async function (done) { + let options = { uri: 'pages/AlphabetIndexer', } try { router.clear(); let pages = router.getState(); console.info("get AlphabetIndexer state success " + JSON.stringify(pages)); - if(!("AlphabetIndexer" == pages.name)){ + if (!("AlphabetIndexer" == pages.name)) { console.info("get AlphabetIndexer state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push AlphabetIndexer page success " + JSON.stringify(result)); @@ -51,7 +50,7 @@ export default function alphabetIndexerJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("AlphabetIndexer after each called"); }); diff --git a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/AppStorageJsunit.test.ets b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/AppStorageJsunit.test.ets index 58c849b82533c9dbe0269ff905d4b0b8b899361f..a16df557c0c5e48c8c30d76f8226904e9e4cfa73 100644 --- a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/AppStorageJsunit.test.ets +++ b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/AppStorageJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,8 +30,7 @@ export default function appStorageJsunit() { } describe('appStorageTest', function () { - - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/AppStorage', } @@ -39,7 +38,7 @@ export default function appStorageJsunit() { router.clear(); let pages = router.getState(); console.info("get AppStorage state success " + JSON.stringify(pages)); - if(!("AppStorage" == pages.name)){ + if (!("AppStorage" == pages.name)) { console.info("get AppStorage state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push AppStorage page success " + JSON.stringify(result)); @@ -51,7 +50,7 @@ export default function appStorageJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("AppStorage after each called"); }); diff --git a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/GridItem.test.ets b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/GridItem.test.ets index c64545ddaba9ad52c673843709ecdc23f7481aa8..6d70fb5df5fa889e3bdfcdd84f061616efcc6f2d 100644 --- a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/GridItem.test.ets +++ b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/GridItem.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,8 +30,7 @@ export default function gridItemJsunit() { } describe('gridItemTest', function () { - - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/GridItem', } @@ -39,7 +38,7 @@ export default function gridItemJsunit() { router.clear(); let pages = router.getState(); console.info("get GridItem state success " + JSON.stringify(pages)); - if(!("GridItem" == pages.name)){ + if (!("GridItem" == pages.name)) { console.info("get GridItem state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push GridItem page success " + JSON.stringify(result)); @@ -51,7 +50,7 @@ export default function gridItemJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("GridItem after each called"); }); @@ -69,11 +68,11 @@ export default function gridItemJsunit() { console.info("属性值集合: " + JSON.stringify(obj)); console.log(JSON.stringify(obj.$type)) expect(obj.$type).assertEqual('GridItem') - console.log('GridItem1‘s rowStart is '+JSON.stringify(obj.$attrs.rowStart)) - console.log('GridItem1‘s rowEnd is '+JSON.stringify(obj.$attrs.rowEnd)) - console.log('GridItem1‘s columnStart is '+JSON.stringify(obj.$attrs.columnStart)) - console.log('GridItem1‘s columnEnd is '+JSON.stringify(obj.$attrs.columnEnd)) - console.log('GridItem1‘s forceRebuild is '+JSON.stringify(obj.$attrs.forceRebuild)) + console.log('GridItem1‘s rowStart is ' + JSON.stringify(obj.$attrs.rowStart)) + console.log('GridItem1‘s rowEnd is ' + JSON.stringify(obj.$attrs.rowEnd)) + console.log('GridItem1‘s columnStart is ' + JSON.stringify(obj.$attrs.columnStart)) + console.log('GridItem1‘s columnEnd is ' + JSON.stringify(obj.$attrs.columnEnd)) + console.log('GridItem1‘s forceRebuild is ' + JSON.stringify(obj.$attrs.forceRebuild)) await sleep(1) expect(obj.$attrs.rowStart).assertEqual('1') expect(obj.$attrs.rowEnd).assertEqual('4') diff --git a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/GridJsnuit.test.ets b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/GridJsnuit.test.ets index 8489cab4133b3b5a19f79cdba7c94466b10cada5..904ccd93c4bbce43eee49a62b51db74bcda18ede 100644 --- a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/GridJsnuit.test.ets +++ b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/GridJsnuit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,16 +30,15 @@ export default function gridJsunit() { } describe('gridTest', function () { - - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Grid', } - try { + try { router.clear(); let pages = router.getState(); console.info("get Grid state success " + JSON.stringify(pages)); - if(!("Grid" == pages.name)){ + if (!("Grid" == pages.name)) { console.info("get Grid state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Grid page success " + JSON.stringify(result)); @@ -51,7 +50,7 @@ export default function gridJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Grid after each called"); }); @@ -80,5 +79,7 @@ export default function gridJsunit() { console.info('gridTest001 END'); done(); }); - }) + } + + ) } diff --git a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/HyperLinkJsunit.test.ets b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/HyperLinkJsunit.test.ets index 6b5f44636c031a0960df900f71811ea50b8a9fc1..9e6f1109ad370fa9403ae62f4ddbbec5aeb4112c 100644 --- a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/HyperLinkJsunit.test.ets +++ b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/HyperLinkJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,8 +30,7 @@ export default function hyperlinkJsunit() { } describe('hyperLinkTest', function () { - - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/HyperLink', } @@ -39,7 +38,7 @@ export default function hyperlinkJsunit() { router.clear(); let pages = router.getState(); console.info("get HyperLink state success " + JSON.stringify(pages)); - if(!("HyperLink" == pages.name)){ + if (!("HyperLink" == pages.name)) { console.info("get HyperLink state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push HyperLink page success " + JSON.stringify(result)); @@ -51,7 +50,7 @@ export default function hyperlinkJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("HyperLink after each called"); }); @@ -68,8 +67,8 @@ export default function hyperlinkJsunit() { let obj = JSON.parse(strJson); expect(obj.$type).assertEqual('Hyperlink') console.info("属性值集合: " + JSON.stringify(obj)); - console.log('Hyperlink‘s address is '+JSON.stringify(obj.$attrs.address)) - console.log('Hyperlink‘s content is '+JSON.stringify(obj.$attrs.content)) + console.log('Hyperlink‘s address is ' + JSON.stringify(obj.$attrs.address)) + console.log('Hyperlink‘s content is ' + JSON.stringify(obj.$attrs.content)) expect(obj.$attrs.address).assertEqual('https://developer.harmonyos.com/') expect(obj.$attrs.content).assertEqual('Go to the developer website') console.info('++++++++++++++++ Hyperlink TestCase 1 End ++++++++++++++++'); diff --git a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/LinkJsunit.test.ets b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/LinkJsunit.test.ets index 35872c3605d6ec62e8dca4bbc13086272ddbfaa8..4bcc5a0e4fbde463a461a1a6b5787706f44987c5 100644 --- a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/LinkJsunit.test.ets +++ b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/LinkJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -31,8 +31,7 @@ export default function linkJsunit() { describe('linkTest', function () { - - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Link', } @@ -40,7 +39,7 @@ export default function linkJsunit() { router.clear(); let pages = router.getState(); console.info("get Link state success " + JSON.stringify(pages)); - if(!("Link" == pages.name)){ + if (!("Link" == pages.name)) { console.info("get Link state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Link page success " + JSON.stringify(result)); @@ -52,7 +51,7 @@ export default function linkJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Link after each called"); }); @@ -72,7 +71,7 @@ export default function linkJsunit() { console.info("yr link0 type: " + JSON.stringify(obj.$type)); console.info("component obj is: " + JSON.stringify(obj)); expect(obj.$attrs.stateEffect).assertEqual('false'); - console.log("yr link0 stateEffect-'false'"+JSON.stringify(obj.$attrs.stateEffect)) + console.log("yr link0 stateEffect-'false'" + JSON.stringify(obj.$attrs.stateEffect)) console.info('linkTest001 END'); done(); }); @@ -88,7 +87,7 @@ export default function linkJsunit() { let obj = JSON.parse(strJson); console.info("component obj is: " + JSON.stringify(obj)); expect(obj.$attrs.stateEffect).assertEqual('false'); - console.log("yr link1 stateEffect-'false'"+JSON.stringify(obj.$attrs.stateEffect)) + console.log("yr link1 stateEffect-'false'" + JSON.stringify(obj.$attrs.stateEffect)) console.info('linkTest002 END'); done(); }); diff --git a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/ListItemJsunit.test.ets b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/ListItemJsunit.test.ets index 5810640e017b786b2e3aa5e8bc5cc402d28dfeb8..12d77424510f3e01ed51342f1153bef69b1ab418 100644 --- a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/ListItemJsunit.test.ets +++ b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/ListItemJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,16 +30,15 @@ export default function listItemJsunit() { } describe('listItemTest', function () { - - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/ListItem', } - try { + try { router.clear(); let pages = router.getState(); console.info("get ListItem state success " + JSON.stringify(pages)); - if(!("ListItem" == pages.name)){ + if (!("ListItem" == pages.name)) { console.info("get ListItem state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push ListItem page success " + JSON.stringify(result)); @@ -51,7 +50,7 @@ export default function listItemJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("ListItem after each called"); }); diff --git a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/ListJsunit.test.ets b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/ListJsunit.test.ets index 564f0b49107a2b942e23eaed8aff99cd8292a521..47c6ab6c8d2693420fb61da55776d298675822d5 100644 --- a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/ListJsunit.test.ets +++ b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/ListJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,8 +30,7 @@ export default function listJsunit() { } describe('listTest', function () { - - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/List', } @@ -39,7 +38,7 @@ export default function listJsunit() { router.clear(); let pages = router.getState(); console.info("get List state success " + JSON.stringify(pages)); - if(!("List" == pages.name)){ + if (!("List" == pages.name)) { console.info("get List state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push List page success " + JSON.stringify(result)); @@ -51,7 +50,7 @@ export default function listJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("List after each called"); }); diff --git a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/NavigatorJsunit.test.ets b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/NavigatorJsunit.test.ets index 19f2e4f8cb680ea14fc8a597275370bcbc6e68fb..07f3daea6009830f57b9cc87d961a3a97c5885eb 100644 --- a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/NavigatorJsunit.test.ets +++ b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/NavigatorJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -30,8 +30,7 @@ export default function navigatorJsunit() { } describe('navigatorTest', function () { - - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Navigator', } @@ -39,7 +38,7 @@ export default function navigatorJsunit() { router.clear(); let pages = router.getState(); console.info("get Navigator state success " + JSON.stringify(pages)); - if(!("Navigator" == pages.name)){ + if (!("Navigator" == pages.name)) { console.info("get Navigator state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Navigator page success " + JSON.stringify(result)); @@ -51,7 +50,7 @@ export default function navigatorJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Navigator after each called"); }); @@ -69,14 +68,16 @@ export default function navigatorJsunit() { console.info("get inspector value is: " + JSON.stringify(obj)); console.log(JSON.stringify(obj.$type)) expect(obj.$type).assertEqual('Navigator') - console.log('Navigator‘s target is '+JSON.stringify(obj.$attrs.target)) - console.log('Navigator‘s type is '+JSON.stringify(obj.$attrs.type)) - console.log('Navigator‘s active is '+JSON.stringify(obj.$attrs.active)) - console.log('Navigator‘s params is '+JSON.stringify(obj.$attrs.params)) + console.log('Navigator‘s target is ' + JSON.stringify(obj.$attrs.target)) + console.log('Navigator‘s type is ' + JSON.stringify(obj.$attrs.type)) + console.log('Navigator‘s active is ' + JSON.stringify(obj.$attrs.active)) + console.log('Navigator‘s params is ' + JSON.stringify(obj.$attrs.params)) expect(obj.$attrs.target).assertEqual('pages/index') expect(obj.$attrs.type).assertEqual('NavigationType.Back') expect(obj.$attrs.active).assertEqual('false') - expect(obj.$attrs.params).assertEqual(JSON.stringify({"data":24})) + expect(obj.$attrs.params).assertEqual(JSON.stringify({ + "data": 24 + })) console.info('++++++++++++++++ Navigator TestCase 1 End ++++++++++++++++'); done(); }); @@ -94,7 +95,7 @@ export default function navigatorJsunit() { console.info("get inspector value is: " + JSON.stringify(obj)); console.log(JSON.stringify(obj.$type)) expect(obj.$type).assertEqual('Navigator') - console.log('Navigator‘s type is '+JSON.stringify(obj.$attrs.type)) + console.log('Navigator‘s type is ' + JSON.stringify(obj.$attrs.type)) expect(obj.$attrs.type).assertEqual('NavigationType.Push') console.info('++++++++++++++++ Navigator TestCase 2 End ++++++++++++++++'); done(); @@ -113,7 +114,7 @@ export default function navigatorJsunit() { console.info("get inspector value is: " + JSON.stringify(obj)); console.log(JSON.stringify(obj.$type)) expect(obj.$type).assertEqual('Navigator') - console.log('Navigator‘s type is '+JSON.stringify(obj.$attrs.type)) + console.log('Navigator‘s type is ' + JSON.stringify(obj.$attrs.type)) expect(obj.$attrs.type).assertEqual('NavigationType.Replace') console.info('++++++++++++++++ Navigator TestCase 3 End ++++++++++++++++'); done(); diff --git a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/PanelJsunit.test.ets b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/PanelJsunit.test.ets index 5d9e089bb9cb1d7dc6d913f7ed1aac6553dccb07..354caf6ded425602d317cadafa34bde6d205e253 100644 --- a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/PanelJsunit.test.ets +++ b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/PanelJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -31,7 +31,7 @@ export default function panelJsunit() { describe('panelTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Panel', } @@ -39,7 +39,7 @@ export default function panelJsunit() { router.clear(); let pages = router.getState(); console.info("get Panel state success " + JSON.stringify(pages)); - if(!("Panel" == pages.name)){ + if (!("Panel" == pages.name)) { console.info("get Panel state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Panel page success " + JSON.stringify(result)); @@ -51,7 +51,7 @@ export default function panelJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Panel after each called"); }); @@ -68,12 +68,12 @@ export default function panelJsunit() { console.info("get inspector value is: " + JSON.stringify(obj)); console.log(JSON.stringify(obj.$type)) expect(obj.$type).assertEqual('Panel') - console.log('Panel‘s type is '+JSON.stringify(obj.$attrs.type)) - console.log('Panel‘s mode is '+JSON.stringify(obj.$attrs.mode)) - console.log('Panel‘s dragBar is '+JSON.stringify(obj.$attrs.dragBar)) - console.log('Panel‘s fullHeight is '+JSON.stringify(obj.$attrs.fullHeight)) - console.log('Panel‘s halfHeight is '+JSON.stringify(obj.$attrs.halfHeight)) - console.log('Panel‘s miniHeight is '+JSON.stringify(obj.$attrs.miniHeight)) + console.log('Panel‘s type is ' + JSON.stringify(obj.$attrs.type)) + console.log('Panel‘s mode is ' + JSON.stringify(obj.$attrs.mode)) + console.log('Panel‘s dragBar is ' + JSON.stringify(obj.$attrs.dragBar)) + console.log('Panel‘s fullHeight is ' + JSON.stringify(obj.$attrs.fullHeight)) + console.log('Panel‘s halfHeight is ' + JSON.stringify(obj.$attrs.halfHeight)) + console.log('Panel‘s miniHeight is ' + JSON.stringify(obj.$attrs.miniHeight)) expect(obj.$attrs.type).assertEqual('PanelType.Foldable') expect(obj.$attrs.mode).assertEqual('PanelMode.Half') expect(obj.$attrs.dragBar).assertEqual('true') @@ -97,9 +97,9 @@ export default function panelJsunit() { console.info("get inspector value is: " + JSON.stringify(obj)); console.log(JSON.stringify(obj.$type)) expect(obj.$type).assertEqual('Panel') - console.log('Panel‘s type is '+JSON.stringify(obj.$attrs.type)) - console.log('Panel‘s mode is '+JSON.stringify(obj.$attrs.mode)) - console.log('Panel‘s show is '+JSON.stringify(obj.$attrs.show)) + console.log('Panel‘s type is ' + JSON.stringify(obj.$attrs.type)) + console.log('Panel‘s mode is ' + JSON.stringify(obj.$attrs.mode)) + console.log('Panel‘s show is ' + JSON.stringify(obj.$attrs.show)) expect(obj.$attrs.type).assertEqual('PanelType.Minibar') expect(obj.$attrs.mode).assertEqual('PanelMode.Mini') expect(obj.$attrs.show).assertEqual('true') @@ -120,9 +120,9 @@ export default function panelJsunit() { console.info("get inspector value is: " + JSON.stringify(obj)); console.log(JSON.stringify(obj.$type)) expect(obj.$type).assertEqual('Panel') - console.log('Panel‘s type is '+JSON.stringify(obj.$attrs.type)) - console.log('Panel‘s mode is '+JSON.stringify(obj.$attrs.mode)) - console.log('Panel‘s show is '+JSON.stringify(obj.$attrs.show)) + console.log('Panel‘s type is ' + JSON.stringify(obj.$attrs.type)) + console.log('Panel‘s mode is ' + JSON.stringify(obj.$attrs.mode)) + console.log('Panel‘s show is ' + JSON.stringify(obj.$attrs.show)) expect(obj.$attrs.type).assertEqual('PanelType.Temporary') expect(obj.$attrs.mode).assertEqual('PanelMode.Full') expect(obj.$attrs.show).assertEqual('false') diff --git a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/PropJsunit.test.ets b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/PropJsunit.test.ets index a2b3bbb52b9b129eec802c5b9057b9319ee0429d..db5d1d98e4a3c029c67a95277ef96a750138749c 100644 --- a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/PropJsunit.test.ets +++ b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/PropJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -31,7 +31,7 @@ export default function propJsunit() { describe('propTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Prop', } @@ -39,7 +39,7 @@ export default function propJsunit() { router.clear(); let pages = router.getState(); console.info("get Prop state success " + JSON.stringify(pages)); - if(!("Prop" == pages.name)){ + if (!("Prop" == pages.name)) { console.info("get Prop state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Prop page success " + JSON.stringify(result)); @@ -51,7 +51,7 @@ export default function propJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Prop after each called"); }); @@ -68,8 +68,8 @@ export default function propJsunit() { let obj = JSON.parse(strJson); expect(obj.$type).assertEqual('Text'); console.log(JSON.stringify(obj.$type)) - console.log("cd attrs.conten type1"+typeof("10")) - console.log("yr prop0 content-'10'"+obj.$attrs.content) + console.log("cd attrs.conten type1" + typeof ("10")) + console.log("yr prop0 content-'10'" + obj.$attrs.content) expect(obj.$attrs.content).assertEqual("10"); console.info('propTest001 END'); done(); @@ -85,10 +85,10 @@ export default function propJsunit() { let strJson = getInspectorByKey('Text002'); let obj = JSON.parse(strJson); console.info("component obj is: " + JSON.stringify(obj)); - console.log("cd attrs.conten type"+typeof(obj.$attrs.content)) - console.log("cd attrs.conten type1 "+typeof("10")) + console.log("cd attrs.conten type" + typeof (obj.$attrs.content)) + console.log("cd attrs.conten type1 " + typeof ("10")) expect(obj.$attrs.content).assertEqual("10"); - console.log("cd prop0 content-'10'"+JSON.stringify(obj.$attrs.content)) + console.log("cd prop0 content-'10'" + JSON.stringify(obj.$attrs.content)) console.info('propTest002 END'); done(); }); diff --git a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/RowJsunit.test.ets b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/RowJsunit.test.ets index b7299ffd9db4517d2460f76d99f70187b798b20b..f0c5a0e971fd0714cfbd906c1d9b434496a6fd0f 100644 --- a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/RowJsunit.test.ets +++ b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/RowJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -28,16 +28,17 @@ export default function rowJsunit() { console.info(`sleep ${time} over...`) }) } + describe('rowTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Row', } - try { + try { router.clear(); let pages = router.getState(); console.info("get Row state success " + JSON.stringify(pages)); - if(!("Row" == pages.name)){ + if (!("Row" == pages.name)) { console.info("get Row state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Row page success " + JSON.stringify(result)); @@ -49,7 +50,7 @@ export default function rowJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Row after each called"); }); @@ -67,9 +68,9 @@ export default function rowJsunit() { console.info("get inspector value is: " + JSON.stringify(obj)); console.log(JSON.stringify(obj.$type)) expect(obj.$type).assertEqual('Row') - console.log('Row‘s useAlign is '+JSON.stringify(obj.$attrs.useAlign)) - console.log('Row‘s space is '+JSON.stringify(obj.$attrs.space)) - console.log('Row‘s alignItems is '+JSON.stringify(obj.$attrs.alignItems)) + console.log('Row‘s useAlign is ' + JSON.stringify(obj.$attrs.useAlign)) + console.log('Row‘s space is ' + JSON.stringify(obj.$attrs.space)) + console.log('Row‘s alignItems is ' + JSON.stringify(obj.$attrs.alignItems)) expect(obj.$attrs.alignItems).assertEqual('VerticalAlign.Top') console.info('++++++++++++++++ Row TestCase 1 End ++++++++++++++++'); done(); diff --git a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/SwiperJsunit.test.ets b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/SwiperJsunit.test.ets index 0c2104ebcecc8efdf5d836b00f83302779a5d2f7..1eb5ab2bb4cea34cf2ae30f710e7b7113555f925 100644 --- a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/SwiperJsunit.test.ets +++ b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/SwiperJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -54,7 +54,7 @@ export default function swiperJsunit() { describe('swiperTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Swiper', } @@ -62,7 +62,7 @@ export default function swiperJsunit() { router.clear(); let pages = router.getState(); console.info("get Swiper state success " + JSON.stringify(pages)); - if(!("Swiper" == pages.name)){ + if (!("Swiper" == pages.name)) { console.info("get Swiper state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Swiper page success " + JSON.stringify(result)); @@ -74,7 +74,7 @@ export default function swiperJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Swiper after each called"); }); @@ -92,14 +92,14 @@ export default function swiperJsunit() { console.info("get inspector value is: " + JSON.stringify(obj)); console.log(JSON.stringify(obj.$type)) expect(obj.$type).assertEqual('Swiper') - console.log('Swiper‘s index is '+JSON.stringify(obj.$attrs.index)) - console.log('Swiper‘s autoPlay is '+JSON.stringify(obj.$attrs.autoPlay)) - console.log('Swiper‘s interval is '+JSON.stringify(obj.$attrs.interval)) - console.log('Swiper‘s indicator is '+JSON.stringify(obj.$attrs.indicator)) - console.log('Swiper‘s loop is '+JSON.stringify(obj.$attrs.loop)) - console.log('Swiper‘s duration is '+JSON.stringify(obj.$attrs.duration)) - console.log('Swiper‘s vertical is '+JSON.stringify(obj.$attrs.vertical)) - console.log('Swiper‘s itemSpace is '+JSON.stringify(obj.$attrs.itemSpace)) + console.log('Swiper‘s index is ' + JSON.stringify(obj.$attrs.index)) + console.log('Swiper‘s autoPlay is ' + JSON.stringify(obj.$attrs.autoPlay)) + console.log('Swiper‘s interval is ' + JSON.stringify(obj.$attrs.interval)) + console.log('Swiper‘s indicator is ' + JSON.stringify(obj.$attrs.indicator)) + console.log('Swiper‘s loop is ' + JSON.stringify(obj.$attrs.loop)) + console.log('Swiper‘s duration is ' + JSON.stringify(obj.$attrs.duration)) + console.log('Swiper‘s vertical is ' + JSON.stringify(obj.$attrs.vertical)) + console.log('Swiper‘s itemSpace is ' + JSON.stringify(obj.$attrs.itemSpace)) expect(obj.$attrs.index).assertEqual('1') expect(obj.$attrs.autoPlay).assertEqual('true') expect(obj.$attrs.interval).assertEqual('4000') diff --git a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/TabJsunit.test.ets b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/TabJsunit.test.ets index 5d4e71e85907dc1d06c70e542b8052b246f9621b..924763dd43090c79b191189a8016dfe8c66a07bd 100644 --- a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/TabJsunit.test.ets +++ b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/TabJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -31,7 +31,7 @@ export default function tabJsunit() { describe('tabTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Tab', } @@ -39,7 +39,7 @@ export default function tabJsunit() { router.clear(); let pages = router.getState(); console.info("get Tab state success " + JSON.stringify(pages)); - if(!("Tab" == pages.name)){ + if (!("Tab" == pages.name)) { console.info("get Tab state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Tab page success " + JSON.stringify(result)); @@ -51,7 +51,7 @@ export default function tabJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { await sleep(1) console.info("Tab after each called"); }); diff --git a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets index 55603ef660ac18eb4d0d32dd6d2383b21a191554..0e0bf6cb323ec0009e79f7417a5408157dae2115 100644 --- a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets +++ b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/TextJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -31,7 +31,7 @@ export default function textJsunit() { describe('textTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Text', } @@ -39,7 +39,7 @@ export default function textJsunit() { router.clear(); let pages = router.getState(); console.info("get Text state success " + JSON.stringify(pages)); - if(!("Text" == pages.name)){ + if (!("Text" == pages.name)) { console.info("get Text state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Text page success " + JSON.stringify(result)); @@ -51,7 +51,7 @@ export default function textJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { console.info("Text after each called") await sleep(1) }); diff --git a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/VideoJsunit.test.ets b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/VideoJsunit.test.ets index 2ec14e37248ae159149dc9af2d57fb7549280ae6..aca3a453028391eba5e457d513f90dde5ba98d69 100644 --- a/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/VideoJsunit.test.ets +++ b/ace/ace_ets_test/entry/src/main/ets/MainAbility/test/VideoJsunit.test.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + // @ts-nocheck import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index.ets" import router from '@system.router'; @@ -28,9 +28,10 @@ export default function videoJsunit() { console.info(`sleep ${time} over...`) }) } + describe('VideoAppInfoTest', function () { - beforeEach(async function(done){ + beforeEach(async function (done) { let options = { uri: 'pages/Video', } @@ -38,7 +39,7 @@ export default function videoJsunit() { router.clear(); let pages = router.getState(); console.info("get Video state success " + JSON.stringify(pages)); - if(!("Video" == pages.name)){ + if (!("Video" == pages.name)) { console.info("get Video state success " + JSON.stringify(pages.name)); let result = await router.push(options) console.info("push Video page success " + JSON.stringify(result)); @@ -50,7 +51,7 @@ export default function videoJsunit() { done() }); - afterEach(async function{ + afterEach(async function () { console.info("Video after each called"); await sleep(1) }); @@ -66,12 +67,12 @@ export default function videoJsunit() { let strJson = getInspectorByKey('video'); let obj = JSON.parse(strJson); console.info("cd video component obj is: " + JSON.stringify(obj)); - console.log("cd video type" +JSON.stringify(obj.$type)); - console.log("cd video autoPlay" +JSON.stringify(obj.$attrs.autoPlay)); - console.log("cd video muted" +JSON.stringify(obj.$attrs.muted)); - console.log("cd video controls" +JSON.stringify(obj.$attrs.controls)); - console.log("cd video loop" +JSON.stringify(obj.$attrs.loop)); - console.log("cd video objectFit" +JSON.stringify(obj.$attrs.objectFit)); + console.log("cd video type" + JSON.stringify(obj.$type)); + console.log("cd video autoPlay" + JSON.stringify(obj.$attrs.autoPlay)); + console.log("cd video muted" + JSON.stringify(obj.$attrs.muted)); + console.log("cd video controls" + JSON.stringify(obj.$attrs.controls)); + console.log("cd video loop" + JSON.stringify(obj.$attrs.loop)); + console.log("cd video objectFit" + JSON.stringify(obj.$attrs.objectFit)); console.info('videoAppInfoTest001 END'); done(); });