提交 6ef0f404 编写于 作者: Z zhongjianfei

zhongjianfei@huawei.com

Signed-off-by: Nzhongjianfei <zhongjianfei@huawei.com>
Change-Id: I291b1ea545d6ecb2bd58318791a98d7afcaa6e8c
上级 ff5e9288
...@@ -20,7 +20,7 @@ import {Core, ExpectExtend} from 'deccjsunit/index' ...@@ -20,7 +20,7 @@ import {Core, ExpectExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
var once = true
export default { export default {
data: { data: {
title: "" title: ""
...@@ -29,19 +29,22 @@ export default { ...@@ -29,19 +29,22 @@ export default {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
}, },
onShow() { onShow() {
console.info('onShow finish') if (once) {
const core = Core.getInstance() once = false
const expectExtend = new ExpectExtend({ console.info('onShow finish')
'id': 'extend' const core = Core.getInstance()
}) const expectExtend = new ExpectExtend({
core.addService('expect', expectExtend) 'id': 'extend'
core.init() })
core.addService('expect', expectExtend)
core.init()
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
configService.setConfig(this) configService.setConfig(this)
require('../../../test/List.test') require('../../../test/List.test')
core.execute() core.execute()
}
}, },
onReady() { onReady() {
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册