提交 6e5412d4 编写于 作者: C chengxingzhen

XTS测试套onShow改成onActive

Signed-off-by: Nchengxingzhen <chengxingzhen@huawei.com>
上级 93686748
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "300000", "test-timeout": "300000",
"package": "com.example.actsamscallbackfifthscene", "package": "com.example.actsamscallbackfifthscene",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
if (once) { if (once) {
once = false once = false
console.info('onShow finish') console.info('onShow finish')
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "300000", "test-timeout": "300000",
"package": "com.example.actsamscallbackfirstscene", "package": "com.example.actsamscallbackfirstscene",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -26,7 +26,7 @@ export default { ...@@ -26,7 +26,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
if (once) { if (once) {
once = false once = false
console.info('onShow finish') console.info('onShow finish')
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "300000", "test-timeout": "300000",
"package": "com.example.actsamscallbackfourthscene", "package": "com.example.actsamscallbackfourthscene",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
if (once) { if (once) {
once = false once = false
console.info('onShow finish') console.info('onShow finish')
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "300000", "test-timeout": "300000",
"package": "com.example.actsamscallbacksecondscene", "package": "com.example.actsamscallbacksecondscene",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
if (once) { if (once) {
once = false once = false
console.info('onShow finish') console.info('onShow finish')
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "300000", "test-timeout": "300000",
"package": "com.example.actsamscallbackthirdscene", "package": "com.example.actsamscallbackthirdscene",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
if (once) { if (once) {
once = false once = false
console.info('onShow finish') console.info('onShow finish')
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "120000", "test-timeout": "120000",
"package": "com.example.actsamstestfifthscene", "package": "com.example.actsamstestfifthscene",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
if (once) { if (once) {
once = false once = false
console.info('onShow finish') console.info('onShow finish')
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "120000", "test-timeout": "120000",
"package": "com.example.actsamstestfirstscene", "package": "com.example.actsamstestfirstscene",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
if (once) { if (once) {
once = false once = false
console.info('onShow finish') console.info('onShow finish')
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
if (once) { if (once) {
once = false once = false
console.info('onShow finish') console.info('onShow finish')
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "120000", "test-timeout": "120000",
"package": "com.example.actsamstestsecondscene", "package": "com.example.actsamstestsecondscene",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
if (once) { if (once) {
once = false once = false
console.info('onShow finish') console.info('onShow finish')
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "120000", "test-timeout": "120000",
"package": "com.example.actsamstestthirdscene", "package": "com.example.actsamstestthirdscene",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
if (once) { if (once) {
once = false once = false
console.info('onShow finish') console.info('onShow finish')
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"test-timeout": "120000", "test-timeout": "120000",
"package": "com.ohos.launcher", "package": "com.ohos.launcher",
"abilityName": "com.ohos.launcherSed11.MainAbility", "abilityName": "com.ohos.launcherSed11.MainAbility",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
*/ */
import file from '@system.file' import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index' import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
var once = true var once = true
export default { export default {
data: { data: {
...@@ -22,7 +25,7 @@ export default { ...@@ -22,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
if (once) { if (once) {
once = false once = false
console.info('onShow finish') console.info('onShow finish')
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"test-timeout": "120000", "test-timeout": "120000",
"package": "com.ohos.launcher", "package": "com.ohos.launcher",
"abilityName": "com.ohos.launcherSed111.MainAbility", "abilityName": "com.ohos.launcherSed111.MainAbility",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
*/ */
import file from '@system.file' import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index' import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
var once = true var once = true
export default { export default {
data: { data: {
...@@ -22,7 +25,7 @@ export default { ...@@ -22,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
if (once) { if (once) {
once = false once = false
console.info('onShow finish') console.info('onShow finish')
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type" : "JSUnitTest", "type" : "JSUnitTest",
"test-timeout": "180000", "test-timeout": "180000",
"package": "com.example.actsabilitydistributetest", "package": "com.example.actsabilitydistributetest",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "18000", "test-timeout": "18000",
"package": "com.amsst.amsMissionSnapshotTest", "package": "com.amsst.amsMissionSnapshotTest",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -23,7 +23,7 @@ export default { ...@@ -23,7 +23,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
console.info('====onShow finish====<') console.info('====onShow finish====<')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "180000", "test-timeout": "180000",
"package": "com.amsst.amsdatauriutils", "package": "com.amsst.amsdatauriutils",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -23,7 +23,7 @@ export default { ...@@ -23,7 +23,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
console.info('====onShow finish====<') console.info('====onShow finish====<')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
......
...@@ -23,7 +23,7 @@ export default { ...@@ -23,7 +23,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
console.info('====onShow finish====<') console.info('====onShow finish====<')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
......
...@@ -23,7 +23,7 @@ export default { ...@@ -23,7 +23,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
console.info('====onShow finish====<') console.info('====onShow finish====<')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "120000", "test-timeout": "120000",
"package": "com.example.amsZipfileUnzipfileST", "package": "com.example.amsZipfileUnzipfileST",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -25,7 +25,7 @@ export default{ ...@@ -25,7 +25,7 @@ export default{
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "500000", "test-timeout": "500000",
"package": "com.example.actscontext", "package": "com.example.actscontext",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "180000", "test-timeout": "180000",
"package": "com.example.actsfeatureabilitytest", "package": "com.example.actsfeatureabilitytest",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -27,7 +27,7 @@ export default { ...@@ -27,7 +27,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
if (!once) { if (!once) {
return; return;
} }
...@@ -40,6 +40,7 @@ export default { ...@@ -40,6 +40,7 @@ export default {
core.addService('expect', expectExtend) core.addService('expect', expectExtend)
core.init() core.init()
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
this.timeout = 10000;
configService.setConfig(this) configService.setConfig(this)
require('../../../test/List.test') require('../../../test/List.test')
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "420000", "test-timeout": "420000",
"package": "com.example.formfuzztest", "package": "com.example.formfuzztest",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
onInit() { onInit() {
this.title = "FMS Fuzz Test"; this.title = "FMS Fuzz Test";
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests",
"driver": { "driver": {
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "60000", "test-timeout": "300000",
"package": "com.example.formsoneandone", "package": "com.example.formsoneandone",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
onInit() { onInit() {
this.title = "卡片配置信息查询 \n有权限、是系统应用"; this.title = "卡片配置信息查询 \n有权限、是系统应用";
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "120000", "test-timeout": "120000",
"package": "com.example.formsoneandtwo", "package": "com.example.formsoneandtwo",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
onInit() { onInit() {
this.title = "卡片配置信息查询 \n有权限、是系统应用"; this.title = "卡片配置信息查询 \n有权限、是系统应用";
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests",
"driver": { "driver": {
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "60000", "test-timeout": "300000",
"package": "com.example.formszeroandone", "package": "com.example.formszeroandone",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
onInit() { onInit() {
this.title = "卡片配置信息查询 \n有权限、是系统应用"; this.title = "卡片配置信息查询 \n有权限、是系统应用";
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests",
"driver": { "driver": {
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "60000", "test-timeout": "300000",
"package": "com.example.formszero", "package": "com.example.formszero",
"shell-timeout": "60000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
onInit() { onInit() {
this.title = "卡片配置信息查询 \n有权限、是系统应用"; this.title = "卡片配置信息查询 \n有权限、是系统应用";
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests",
"driver": { "driver": {
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "30000", "test-timeout": "300000",
"package": "com.example.getactiveprocessinfo", "package": "com.example.getactiveprocessinfo",
"shell-timeout": "30000" "shell-timeout": "600000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -25,7 +25,7 @@ export default{ ...@@ -25,7 +25,7 @@ export default{
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
......
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onActive() {
if (once) { if (once) {
once = false once = false
console.info('onShow finish') console.info('onShow finish')
......
...@@ -18,19 +18,7 @@ import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from ...@@ -18,19 +18,7 @@ import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from
describe('ActsGetWantTest', function () { describe('ActsGetWantTest', function () {
beforeAll(async (done) => { beforeAll(async (done) => {
await featureAbility.startAbility( console.info('ActsGetWantTest begin')
{
want:
{
deviceId: "",
bundleName: "com.ohos.launcher",
abilityName: "com.ohos.launcher.MainAbility",
action: "action1",
parameters:
{},
},
},
);
done(); done();
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册