Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
d3521707
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
d3521707
编写于
6月 07, 2022
作者:
O
openharmony_ci
提交者:
Gitee
6月 07, 2022
浏览文件
操作
浏览文件
下载
差异文件
!3450 modify sleep logic in app account xts
Merge pull request !3450 from jidong/dev
上级
d7eebfa2
22bfee1c
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
80 addition
and
47 deletion
+80
-47
account/appaccount/actsaccounttest/entry/src/main/js/test/AppAccess.test.js
.../actsaccounttest/entry/src/main/js/test/AppAccess.test.js
+9
-6
account/appaccount/actsaccounttest/entry/src/main/js/test/AssociatedData.test.js
...accounttest/entry/src/main/js/test/AssociatedData.test.js
+9
-6
account/appaccount/actsaccounttest/entry/src/main/js/test/CreatManager.test.js
...tsaccounttest/entry/src/main/js/test/CreatManager.test.js
+8
-5
account/appaccount/actsaccounttest/entry/src/main/js/test/Credential.test.js
...actsaccounttest/entry/src/main/js/test/Credential.test.js
+9
-6
account/appaccount/actsaccounttest/entry/src/main/js/test/DeleteAccount.test.js
...saccounttest/entry/src/main/js/test/DeleteAccount.test.js
+8
-5
account/appaccount/actsaccounttest/entry/src/main/js/test/ExtraInfo.test.js
.../actsaccounttest/entry/src/main/js/test/ExtraInfo.test.js
+9
-6
account/appaccount/actsaccounttest/entry/src/main/js/test/NoPermission.test.js
...tsaccounttest/entry/src/main/js/test/NoPermission.test.js
+8
-6
account/appaccount/actsaccounttest/entry/src/main/js/test/OAuthToken.test.js
...actsaccounttest/entry/src/main/js/test/OAuthToken.test.js
+9
-6
account/appaccount/actsaccounttest/entry/src/main/js/test/OnOff.js
...ppaccount/actsaccounttest/entry/src/main/js/test/OnOff.js
+11
-1
未找到文件。
account/appaccount/actsaccounttest/entry/src/main/js/test/AppAccess.test.js
浏览文件 @
d3521707
...
...
@@ -20,22 +20,25 @@ const STRCOUNT = 1025;
const
EACHTIMEOUT
=
500
;
describe
(
'
ActsAccountAppAccess
'
,
function
()
{
function
sleep
(
delay
)
{
var
start
=
(
new
Date
()).
getTime
();
while
((
new
Date
()).
getTime
()
-
start
<
delay
)
{
continue
;
}
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
resolve
()
},
delay
)
}).
then
(()
=>
{
console
.
info
(
`sleep #{time} over ...`
)
})
}
beforeAll
(
async
function
(
done
)
{
console
.
debug
(
"
====>beforeAll start====
"
);
sleep
(
TIMEOUT
);
await
sleep
(
TIMEOUT
);
console
.
debug
(
"
====>beforeAll end====
"
);
done
();
})
beforeEach
(
async
function
(
done
)
{
console
.
debug
(
"
====>beforeEach enter====
"
);
sleep
(
EACHTIMEOUT
);
await
sleep
(
EACHTIMEOUT
);
done
();
})
...
...
account/appaccount/actsaccounttest/entry/src/main/js/test/AssociatedData.test.js
浏览文件 @
d3521707
...
...
@@ -19,22 +19,25 @@ const TIMEOUT = 5000;
const
EACHTIMEOUT
=
500
;
describe
(
'
ActsAccountAssociatedData
'
,
function
()
{
function
sleep
(
delay
)
{
var
start
=
(
new
Date
()).
getTime
();
while
((
new
Date
()).
getTime
()
-
start
<
delay
)
{
continue
;
}
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
resolve
()
},
delay
)
}).
then
(()
=>
{
console
.
info
(
`sleep #{time} over ...`
)
})
}
beforeAll
(
async
function
(
done
)
{
console
.
debug
(
"
====>beforeAll start====
"
);
sleep
(
TIMEOUT
);
await
sleep
(
TIMEOUT
);
console
.
debug
(
"
====>beforeAll end====
"
);
done
();
})
beforeEach
(
async
function
(
done
)
{
console
.
debug
(
"
====>beforeEach enter====
"
);
sleep
(
EACHTIMEOUT
);
await
sleep
(
EACHTIMEOUT
);
done
();
})
...
...
account/appaccount/actsaccounttest/entry/src/main/js/test/CreatManager.test.js
浏览文件 @
d3521707
...
...
@@ -18,15 +18,18 @@ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '
const
TIMEOUT
=
5000
;
describe
(
'
ActsCreatAppAccountManager
'
,
function
()
{
function
sleep
(
delay
)
{
var
start
=
(
new
Date
()).
getTime
();
while
((
new
Date
()).
getTime
()
-
start
<
delay
)
{
continue
;
}
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
resolve
()
},
delay
)
}).
then
(()
=>
{
console
.
info
(
`sleep #{time} over ...`
)
})
}
beforeAll
(
async
function
(
done
)
{
console
.
debug
(
"
====>beforeAll start====
"
);
sleep
(
TIMEOUT
);
await
sleep
(
TIMEOUT
);
console
.
debug
(
"
====>beforeAll end====
"
);
done
();
});
...
...
account/appaccount/actsaccounttest/entry/src/main/js/test/Credential.test.js
浏览文件 @
d3521707
...
...
@@ -19,22 +19,25 @@ const TIMEOUT = 5000;
const
EACHTIMEOUT
=
500
;
describe
(
'
ActsAccountCredential
'
,
function
()
{
function
sleep
(
delay
)
{
var
start
=
(
new
Date
()).
getTime
();
while
((
new
Date
()).
getTime
()
-
start
<
delay
)
{
continue
;
}
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
resolve
()
},
delay
)
}).
then
(()
=>
{
console
.
info
(
`sleep #{time} over ...`
)
})
}
beforeAll
(
async
function
(
done
)
{
console
.
debug
(
"
====>beforeAll start====
"
);
sleep
(
TIMEOUT
);
await
sleep
(
TIMEOUT
);
console
.
debug
(
"
====>beforeAll end====
"
);
done
();
})
beforeEach
(
async
function
(
done
)
{
console
.
debug
(
"
====>beforeEach enter====
"
);
sleep
(
EACHTIMEOUT
);
await
sleep
(
EACHTIMEOUT
);
done
();
})
...
...
account/appaccount/actsaccounttest/entry/src/main/js/test/DeleteAccount.test.js
浏览文件 @
d3521707
...
...
@@ -19,15 +19,18 @@ const NAMELIMIT = 512;
const
TIMEOUT
=
5000
;
describe
(
'
ActsAccountDeleteAccount
'
,
function
()
{
function
sleep
(
delay
)
{
var
start
=
(
new
Date
()).
getTime
();
while
((
new
Date
()).
getTime
()
-
start
<
delay
)
{
continue
;
}
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
resolve
()
},
delay
)
}).
then
(()
=>
{
console
.
info
(
`sleep #{time} over ...`
)
})
}
beforeAll
(
async
function
(
done
)
{
console
.
debug
(
"
====>beforeAll start====
"
);
sleep
(
TIMEOUT
);
await
sleep
(
TIMEOUT
);
console
.
debug
(
"
====>beforeAll end====
"
);
done
();
});
...
...
account/appaccount/actsaccounttest/entry/src/main/js/test/ExtraInfo.test.js
浏览文件 @
d3521707
...
...
@@ -19,22 +19,25 @@ const TIMEOUT = 5000;
const
EACHTIMEOUT
=
500
;
describe
(
'
ActsAccountSetGetExtraInfo
'
,
function
()
{
function
sleep
(
delay
)
{
var
start
=
(
new
Date
()).
getTime
();
while
((
new
Date
()).
getTime
()
-
start
<
delay
)
{
continue
;
}
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
resolve
()
},
delay
)
}).
then
(()
=>
{
console
.
info
(
`sleep #{time} over ...`
)
})
}
beforeAll
(
async
function
(
done
)
{
console
.
debug
(
"
====>beforeAll start====
"
);
sleep
(
TIMEOUT
);
await
sleep
(
TIMEOUT
);
console
.
debug
(
"
====>beforeAll end====
"
);
done
();
})
beforeEach
(
async
function
(
done
)
{
console
.
debug
(
"
====>beforeEach enter====
"
);
sleep
(
EACHTIMEOUT
);
await
sleep
(
EACHTIMEOUT
);
done
();
})
...
...
account/appaccount/actsaccounttest/entry/src/main/js/test/NoPermission.test.js
浏览文件 @
d3521707
...
...
@@ -19,15 +19,17 @@ const TIMEOUT = 5000;
const
ERR_APPACCOUNT_SERVICE_PERMISSION_DENIED
=
4521993
;
describe
(
'
ActsAccountNoPermission
'
,
function
()
{
function
sleep
(
delay
)
{
var
start
=
(
new
Date
()).
getTime
();
while
((
new
Date
()).
getTime
()
-
start
<
delay
)
{
continue
;
}
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
resolve
()
},
delay
)
}).
then
(()
=>
{
console
.
info
(
`sleep #{time} over ...`
)
})
}
beforeAll
(
async
function
(
done
)
{
console
.
debug
(
"
====>beforeAll start====
"
);
sleep
(
TIMEOUT
);
await
sleep
(
TIMEOUT
);
console
.
debug
(
"
====>beforeAll end====
"
);
done
();
});
...
...
account/appaccount/actsaccounttest/entry/src/main/js/test/OAuthToken.test.js
浏览文件 @
d3521707
...
...
@@ -30,22 +30,25 @@ const OWNERSELF = "com.example.actsaccounttest";
describe
(
'
ActsAccountOAuthToken
'
,
function
()
{
function
sleep
(
delay
)
{
var
start
=
(
new
Date
()).
getTime
();
while
((
new
Date
()).
getTime
()
-
start
<
delay
)
{
continue
;
}
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
resolve
()
},
delay
)
}).
then
(()
=>
{
console
.
info
(
`sleep #{time} over ...`
)
})
}
beforeAll
(
async
function
(
done
)
{
console
.
debug
(
"
====>beforeAll start====
"
);
sleep
(
TIMEOUT
);
await
sleep
(
TIMEOUT
);
console
.
debug
(
"
====>beforeAll end====
"
);
done
();
});
beforeEach
(
async
function
(
done
)
{
console
.
debug
(
"
====>beforeAll enter====
"
);
sleep
(
EACHTIMEOUT
);
await
sleep
(
EACHTIMEOUT
);
done
();
});
...
...
account/appaccount/actsaccounttest/entry/src/main/js/test/OnOff.js
浏览文件 @
d3521707
...
...
@@ -20,6 +20,15 @@ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '
const
TIMEOUT
=
5000
;
describe
(
'
ActsAccountChangeOnOff
'
,
async
function
()
{
function
sleep
(
delay
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
resolve
()
},
delay
)
}).
then
(()
=>
{
console
.
info
(
`sleep #{time} over ...`
)
})
}
beforeAll
(
async
function
(
done
)
{
console
.
debug
(
"
====>startAbility start====
"
);
await
featureAbility
.
startAbility
(
...
...
@@ -35,7 +44,8 @@ describe('ActsAccountChangeOnOff', async function () {
},
},
);
setTimeout
(
done
(),
TIMEOUT
);
await
sleep
(
TIMEOUT
);
done
();
});
/*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录