Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
eafed744
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看板
未验证
提交
eafed744
编写于
3月 16, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 16, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2489 Fix aafwk test cases
Merge pull request !2489 from jsjzju/master
上级
d327b921
d0a06373
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
21 deletion
+6
-21
aafwk/aafwk_standard/abilitymanager/actsamscallbackfirstscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
...tscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
+1
-7
aafwk/aafwk_standard/abilitymanager/actsamscallbackfourthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
...hscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
+5
-14
未找到文件。
aafwk/aafwk_standard/abilitymanager/actsamscallbackfirstscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
eafed744
...
...
@@ -70,7 +70,7 @@ describe('ActsAmsCallBackFirstScene', function () {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
);
setTimeout
(
done
(),
5000
);
done
(
);
});
function
timeout
(
done
)
{
...
...
@@ -118,7 +118,6 @@ describe('ActsAmsCallBackFirstScene', function () {
}
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -153,7 +152,6 @@ describe('ActsAmsCallBackFirstScene', function () {
}
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -175,7 +173,6 @@ describe('ActsAmsCallBackFirstScene', function () {
expect
(
error
.
code
).
assertLarger
(
-
1
);
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -196,7 +193,6 @@ describe('ActsAmsCallBackFirstScene', function () {
expect
(
error
.
code
).
assertEqual
(
0
);
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -212,7 +208,6 @@ describe('ActsAmsCallBackFirstScene', function () {
expect
(
error
.
code
).
assertEqual
(
0
);
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -233,7 +228,6 @@ describe('ActsAmsCallBackFirstScene', function () {
expect
(
error
.
code
).
assertEqual
(
0
);
done
();
});
setTimeout
(
timeout
,
5000
);
})
})
\ No newline at end of file
aafwk/aafwk_standard/abilitymanager/actsamscallbackfourthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
eafed744
...
...
@@ -127,7 +127,7 @@ describe('ActsAmsCallBackFourthScene', function () {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
);
setTimeout
(
done
(),
5000
);
done
(
);
});
function
timeout
(
done
)
{
...
...
@@ -175,8 +175,6 @@ describe('ActsAmsCallBackFourthScene', function () {
}
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -191,7 +189,7 @@ describe('ActsAmsCallBackFourthScene', function () {
console
.
info
(
'
Acts_Ams_test_5400 getMissionInfos error.code :
\
'
+
error
.
code
+
'
,data length [
'
+
data
.
length
+
'
]
'
);
expect
(
Array
.
isArray
(
data
)).
assertEqual
(
true
);
expect
(
data
.
length
).
assertEqual
(
5
);
expect
(
data
.
length
).
assertEqual
(
4
);
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
console
.
info
(
'
Acts_Ams_test_5400 getMissionInfos data[
'
+
i
+
"
]:
"
+
JSON
.
stringify
(
data
[
i
]));
expect
(
typeof
(
data
[
i
].
missionId
)).
assertEqual
(
"
number
"
);
...
...
@@ -211,7 +209,6 @@ describe('ActsAmsCallBackFourthScene', function () {
}
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -232,7 +229,6 @@ describe('ActsAmsCallBackFourthScene', function () {
expect
(
error
.
code
).
assertEqual
(
0
);
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -253,7 +249,6 @@ describe('ActsAmsCallBackFourthScene', function () {
expect
(
error
.
code
).
assertEqual
(
0
);
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -263,14 +258,11 @@ describe('ActsAmsCallBackFourthScene', function () {
*/
it
(
'
Acts_Ams_test_6400
'
,
0
,
async
function
(
done
)
{
appManager
.
killProcessesByBundleName
(
'
xxxxxxxxx
'
,
(
error
,
info
)
=>
{
console
.
info
(
'
Acts_Ams_test_6400 killProcessesByBundleName error.code
\
'
+
error
.
code
+
'
,data [
'
+
info
+
'
]
'
);
expect
(
typeof
(
info
)).
assertEqual
(
"
number
"
);
expect
(
info
).
assertEqual
(
2097215
);
(
error
)
=>
{
console
.
info
(
'
Acts_Ams_test_6400 killProcessesByBundleName error.code
'
+
error
.
code
);
expect
(
error
.
code
).
assertEqual
(
2097215
);
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -291,6 +283,5 @@ describe('ActsAmsCallBackFourthScene', function () {
expect
(
error
.
code
).
assertEqual
(
0
);
done
();
});
setTimeout
(
timeout
,
5000
);
})
})
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录