Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
b86f9be0
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看板
提交
b86f9be0
编写于
9月 24, 2022
作者:
Z
zhoujun62
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Solve XTS ActsFaApiCoverTest fail problem
Signed-off-by:
N
zhoujun62
<
zhoujun62@huawei.com
>
上级
8325fd71
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
18 addition
and
6 deletion
+18
-6
ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets
...rhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets
+1
-1
ability/ability_runtime/faapicover/faapicoverhaptest/Test.json
...ty/ability_runtime/faapicover/faapicoverhaptest/Test.json
+2
-1
ability/ability_runtime/newwant/actsnewwantapi7relyhap/entry/src/main/js/default/pages/index/index.js
...pi7relyhap/entry/src/main/js/default/pages/index/index.js
+10
-1
ability/ability_runtime/newwant/actsnewwanttest/entry/src/main/ets/test/Ability.test.ets
.../actsnewwanttest/entry/src/main/ets/test/Ability.test.ets
+5
-3
未找到文件。
ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets
浏览文件 @
b86f9be0
...
...
@@ -39,7 +39,7 @@ export default function ApiCoverTest() {
afterEach(async (done) => {
setTimeout(function () {
done();
}, 2
0
00);
}, 2
5
00);
})
/*
...
...
ability/ability_runtime/faapicover/faapicoverhaptest/Test.json
浏览文件 @
b86f9be0
...
...
@@ -5,7 +5,8 @@
"test-timeout"
:
"600000"
,
"bundle-name"
:
"com.example.faapicoverhaptest"
,
"package-name"
:
"com.example.faapicoverhaptest"
,
"shell-timeout"
:
"600000"
"shell-timeout"
:
"600000"
,
"testcase-timeout"
:
70000
},
"kits"
:
[
{
...
...
ability/ability_runtime/newwant/actsnewwantapi7relyhap/entry/src/main/js/default/pages/index/index.js
浏览文件 @
b86f9be0
...
...
@@ -22,6 +22,15 @@ import featureAbility from '@ohos.ability.featureAbility'
const
injectRef
=
Object
.
getPrototypeOf
(
global
)
||
global
injectRef
.
regeneratorRuntime
=
require
(
'
@babel/runtime/regenerator
'
)
function
sleep
(
delay
)
{
let
start
=
new
Date
().
getTime
();
while
(
true
)
{
if
(
new
Date
().
getTime
()
-
start
>
delay
)
{
break
;
}
}
}
export
default
{
data
:
{
title
:
""
...
...
@@ -38,7 +47,7 @@ export default {
},
async
onShow
()
{
console
.
info
(
'
ACTS_NewWant Api7 onShow
'
);
sleep
(
1000
)
await
featureAbility
.
startAbility
(
{
want
:
...
...
ability/ability_runtime/newwant/actsnewwanttest/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
b86f9be0
...
...
@@ -593,8 +593,10 @@ export default function abilityTest() {
console.debug("ACTS_NewWant_Test_0800====>flagOnNewWant:====>"
+ flagOnNewWant)
if (flagOnCreate == 0 && flagOnWindowStageCreate == 0
&& flagOnForeground == 2 && flagOnNewWant == 1) {
if ((flagOnCreate == 0 && flagOnWindowStageCreate == 0
&& flagOnForeground == 2 && flagOnNewWant == 1)
|| (flagOnCreate == 1 && flagOnWindowStageCreate == 1
&& flagOnForeground == 2 && flagOnNewWant == 0)) {
flagNewWant = true;
commonEvent.unsubscribe(Subscriber, UnSubscribeCallback);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录