提交 6416ab6e 编写于 作者: O openharmony_ci 提交者: Gitee

!542 命令编译js hap执行问题规避

Merge pull request !542 from 舒雄/master
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
*/ */
import {Core, ExpectExtend} from 'deccjsunit/index' import {Core, ExpectExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -16,6 +16,9 @@ import file from '@system.file' ...@@ -16,6 +16,9 @@ import file from '@system.file'
import {Core, ExpectExtend} from 'deccjsunit/index' import {Core, ExpectExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
...@@ -26,7 +29,9 @@ export default { ...@@ -26,7 +29,9 @@ export default {
onShow() { onShow() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({
'id': 'extend'
})
core.addService('expect', expectExtend) core.addService('expect', expectExtend)
core.init() core.init()
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
*/ */
import {Core} from 'deccjsunit/index' import {Core} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -25,7 +25,9 @@ export default { ...@@ -25,7 +25,9 @@ export default {
onShow() { onShow() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({
'id': 'extend'
})
core.addService('expect', expectExtend) core.addService('expect', expectExtend)
core.init() core.init()
......
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
import {Core, ExpectExtend} from 'deccjsunit/index' import {Core, ExpectExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
...@@ -25,6 +28,9 @@ export default { ...@@ -25,6 +28,9 @@ export default {
onShow() { onShow() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() const core = Core.getInstance()
const expectExtend = new ExpectExtend({
'id': 'extend'
})
core.addService('expect', expectExtend) core.addService('expect', expectExtend)
core.init() core.init()
......
...@@ -16,6 +16,9 @@ ...@@ -16,6 +16,9 @@
import app from '@system.app' import app from '@system.app'
import {Core, ExpectExtend} from 'deccjsunit/index' import {Core, ExpectExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -16,6 +16,9 @@ ...@@ -16,6 +16,9 @@
import app from '@system.app' import app from '@system.app'
import {Core, ExpectExtend} from 'deccjsunit/index' import {Core, ExpectExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -16,6 +16,9 @@ ...@@ -16,6 +16,9 @@
import app from '@system.app' import app from '@system.app'
import {Core, ExpectExtend} from 'deccjsunit/index' import {Core, ExpectExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ""
......
...@@ -14,6 +14,10 @@ ...@@ -14,6 +14,10 @@
*/ */
import {Core} from 'deccjsunit/lite' import {Core} from 'deccjsunit/lite'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
const core = Core.getInstance() const core = Core.getInstance()
core.init() core.init()
require('../../test/List.test.js') require('../../test/List.test.js')
......
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
import app from '@system.app' import app from '@system.app'
import {Core} from 'deccjsunit/index' import {Core} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: '' title: ''
......
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
import app from '@system.app' import app from '@system.app'
import {Core} from 'deccjsunit/index' import {Core} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: '' title: ''
......
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
import app from '@system.app' import app from '@system.app'
import {Core} from 'deccjsunit/index' import {Core} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: '' title: ''
......
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
import app from '@system.app' import app from '@system.app'
import {Core} from 'deccjsunit/index' import {Core} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: '' title: ''
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
import app from '@system.app' import app from '@system.app'
import {Core} from 'deccjsunit/index' import {Core} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: '' title: ''
......
...@@ -28,7 +28,7 @@ _all_test_packages = [ ...@@ -28,7 +28,7 @@ _all_test_packages = [
"${ACTS_ROOT}/location:location", "${ACTS_ROOT}/location:location",
# "${ACTS_ROOT}/miscservices:miscservices", # "${ACTS_ROOT}/miscservices:miscservices",
# "${ACTS_ROOT}/powermgr:powermgr", # "${ACTS_ROOT}/powermgr:powermgr",
# "${ACTS_ROOT}/startup:startup", "${ACTS_ROOT}/startup:startup",
"${ACTS_ROOT}/sensors:sensors", "${ACTS_ROOT}/sensors:sensors",
"${ACTS_ROOT}/distributeddatamgr:distributeddatamgr", "${ACTS_ROOT}/distributeddatamgr:distributeddatamgr",
# "${ACTS_ROOT}/resourceschedule:resourceschedule", # "${ACTS_ROOT}/resourceschedule:resourceschedule",
...@@ -39,7 +39,7 @@ _all_test_packages = [ ...@@ -39,7 +39,7 @@ _all_test_packages = [
"${ACTS_ROOT}/updater:update", "${ACTS_ROOT}/updater:update",
"${ACTS_ROOT}/graphic:graphic", "${ACTS_ROOT}/graphic:graphic",
"${ACTS_ROOT}/ace:ace", "${ACTS_ROOT}/ace:ace",
# "${ACTS_ROOT}/storage:storage", "${ACTS_ROOT}/storage:storage",
] ]
_all_test_packages_ivi = [ _all_test_packages_ivi = [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册