提交 7d1d0fc3 编写于 作者: C chengxingzhen
上级 74804799
...@@ -22,11 +22,16 @@ var mainability ...@@ -22,11 +22,16 @@ var mainability
const START_ABILITY_TIMEOUT = 10000; const START_ABILITY_TIMEOUT = 10000;
const START_ABILITY_TIMEOUT_TWO_THOUSAND = 2000; const START_ABILITY_TIMEOUT_TWO_THOUSAND = 2000;
const START_ABILITY_TIMEOUT_THOUSAND = 1000; const START_ABILITY_TIMEOUT_THOUSAND = 1000;
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
export default function abilityTest() { export default function abilityTest() {
describe('ActsChangeAbilityStagetest', function () { describe('ActsChangeAbilityStagetest', function () {
beforeAll(async function (done) { beforeAll(async function (done) {
console.info('beforeAll called') console.info('beforeAll called')
await sleep(2000)
await globalThis.abilitydelegator.getCurrentTopAbility().then((data) => { await globalThis.abilitydelegator.getCurrentTopAbility().then((data) => {
mainability = data mainability = data
done() done()
......
...@@ -26,10 +26,10 @@ ...@@ -26,10 +26,10 @@
{ {
"type": "PushKit", "type": "PushKit",
"push":[ "push":[
"atomizationresultstageentry.hap -> /data/test/AtomizationResultStageEntry.hap", "AtomizationResultStageEntry.hap -> /data/test/AtomizationResultStageEntry.hap",
"atomizationresultstagehm2.hap -> /data/test/AtomizationResultStageHm2.hap", "AtomizationResultStageHm2.hap -> /data/test/AtomizationResultStageHm2.hap",
"atomizationresultstagehnm2.hap -> /data/test/AtomizationResultStageHnm2.hap", "AtomizationResultStageHnm2.hap -> /data/test/AtomizationResultStageHnm2.hap",
"stageresultmyapplication1.hap -> /data/test/StageResultMyApplication1.hap", "StageResultMyApplication1.hap -> /data/test/StageResultMyApplication1.hap",
"MockService.hap -> /data/test/MockService.hap" "MockService.hap -> /data/test/MockService.hap"
] ]
} }
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
{ {
"type": "PushKit", "type": "PushKit",
"push":[ "push":[
"atomizationresultstageentry.hap -> /data/test/AtomizationResultStageEntry.hap", "AtomizationResultStageEntry.hap -> /data/test/AtomizationResultStageEntry.hap",
"MockService.hap -> /data/test/MockService.hap" "MockService.hap -> /data/test/MockService.hap"
] ]
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册