From 015cb5e5141a9a63cace764d7024762bbf86d371 Mon Sep 17 00:00:00 2001 From: shuxiong Date: Thu, 9 Sep 2021 09:44:48 +0800 Subject: [PATCH] =?UTF-8?q?account=E5=92=8Cmiscservices=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shuxiong --- .../OsAccountTest_js/src/main/js/default/pages/index/index.js | 3 +++ .../TimeTest_js/src/main/js/default/pages/index/index.js | 3 +++ test_packages.gni | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/account/OsAccountTest_js/src/main/js/default/pages/index/index.js b/account/OsAccountTest_js/src/main/js/default/pages/index/index.js index 48b0246d7..e485a7268 100755 --- a/account/OsAccountTest_js/src/main/js/default/pages/index/index.js +++ b/account/OsAccountTest_js/src/main/js/default/pages/index/index.js @@ -31,6 +31,9 @@ export default { // const instrumentLog = new InstrumentLog({ // 'id': 'report' // }) + const expectExtend = new ExpectExtend({ + 'id': 'extend' + }) core.addService('expect', expectExtend) // core.addService('report', instrumentLog) core.init() diff --git a/miscservices/TimeTest_js/src/main/js/default/pages/index/index.js b/miscservices/TimeTest_js/src/main/js/default/pages/index/index.js index ce1823b2f..c41eff977 100755 --- a/miscservices/TimeTest_js/src/main/js/default/pages/index/index.js +++ b/miscservices/TimeTest_js/src/main/js/default/pages/index/index.js @@ -17,6 +17,9 @@ import app from '@system.app' //import {Core, ExpectExtend, ReportExtend, InstrumentLog} from 'deccjsunit/index' import {Core, ExpectExtend} from 'deccjsunit/index' +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + export default { data: { title: "" diff --git a/test_packages.gni b/test_packages.gni index 421822918..e063dec2e 100755 --- a/test_packages.gni +++ b/test_packages.gni @@ -21,12 +21,12 @@ _all_test_packages = [ "${ACTS_ROOT}/barrierfree:barrierfree", # "${ACTS_ROOT}/telephony:telephony", # "${ACTS_ROOT}/appexecfwk:appexecfwk", -# "${ACTS_ROOT}/account:account", + "${ACTS_ROOT}/account:account", # "${ACTS_ROOT}/communication:communication", #"${ACTS_ROOT}/notification:notification", # "${ACTS_ROOT}/aafwk:aafwk", "${ACTS_ROOT}/location:location", - # "${ACTS_ROOT}/miscservices:miscservices", + "${ACTS_ROOT}/miscservices:miscservices", # "${ACTS_ROOT}/powermgr:powermgr", "${ACTS_ROOT}/startup:startup", "${ACTS_ROOT}/sensors:sensors", -- GitLab