Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
2b4d9c11
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2b4d9c11
编写于
9月 02, 2022
作者:
C
chengxingzhen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
XTS3.1releaes问题提交
Signed-off-by:
N
chengxingzhen
<
chengxingzhen@huawei.com
>
上级
707d9743
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
8 addition
and
52 deletion
+8
-52
ability/ability_runtime/actsabilitymanageretstest/entry/src/main/config.json
...time/actsabilitymanageretstest/entry/src/main/config.json
+1
-1
ability/ability_runtime/actsabilitymanageretstest/entry/src/main/ets/test/getAbilityInfoJsunit.test.ets
...est/entry/src/main/ets/test/getAbilityInfoJsunit.test.ets
+1
-1
ability/ability_runtime/actsabilitymanageretstest/entry/src/main/ets/test/getHapModuleInfoJsunit.test.ets
...t/entry/src/main/ets/test/getHapModuleInfoJsunit.test.ets
+2
-2
ability/ability_runtime/context/actscontexttest/src/main/js/test/ContextJsunit.test.js
...xt/actscontexttest/src/main/js/test/ContextJsunit.test.js
+0
-1
ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/config.json
...ability/actsfeatureabilitytest/entry/src/main/config.json
+1
-1
ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
...ytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
+3
-4
ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/StartAbilityJsunit.test.js
...itytest/entry/src/main/js/test/StartAbilityJsunit.test.js
+0
-42
未找到文件。
ability/ability_runtime/actsabilitymanageretstest/entry/src/main/config.json
浏览文件 @
2b4d9c11
...
...
@@ -19,7 +19,7 @@
"srcPath"
:
""
,
"mainAbility"
:
"com.ohos.acecollaboration.MainAbility"
,
"deviceType"
:
[
"
phone
"
"
default
"
],
"reqPermissions"
:
[
{
...
...
ability/ability_runtime/actsabilitymanageretstest/entry/src/main/ets/test/getAbilityInfoJsunit.test.ets
浏览文件 @
2b4d9c11
...
...
@@ -191,7 +191,7 @@ export default function getHapModuleInfoJsunit() {
expect(data.type).assertEqual(1);
expect(data.orientation).assertEqual(0);
expect(data.launchMode).assertEqual(1);
expect(data.deviceTypes[0]).assertEqual("
phone
");
expect(data.deviceTypes[0]).assertEqual("
default
");
expect(data.readPermission).assertEqual("");
expect(data.writePermission).assertEqual("");
checkApplicationInfo(msg, data.applicationInfo);
...
...
ability/ability_runtime/actsabilitymanageretstest/entry/src/main/ets/test/getHapModuleInfoJsunit.test.ets
浏览文件 @
2b4d9c11
...
...
@@ -125,7 +125,7 @@ export default function getHapModuleInfoJsunit() {
expect(data.iconId).assertEqual(16777229);
expect(data.backgroundImg).assertEqual("");
expect(data.supportedModes).assertEqual(0);
expect(data.deviceTypes[0]).assertEqual("
phone
");
expect(data.deviceTypes[0]).assertEqual("
default
");
console.info(msg + ' data.abilityInfo.length ' + data.abilityInfo.length)
checkAbilityInfo(msg, data.abilityInfo[0]);
expect(data.moduleName).assertEqual("entry")
...
...
@@ -219,7 +219,7 @@ export default function getHapModuleInfoJsunit() {
expect(data.type).assertEqual(1);
expect(data.orientation).assertEqual(0);
expect(data.launchMode).assertEqual(1);
expect(data.deviceTypes[0]).assertEqual("
phone
");
expect(data.deviceTypes[0]).assertEqual("
default
");
expect(data.readPermission).assertEqual("");
expect(data.writePermission).assertEqual("");
expect(data.formEntity).assertEqual(0);
...
...
ability/ability_runtime/context/actscontexttest/src/main/js/test/ContextJsunit.test.js
浏览文件 @
2b4d9c11
...
...
@@ -57,7 +57,6 @@ describe('ActsContextTest', function () {
var
context
=
featureAbility
.
getContext
();
var
info
=
context
.
getBundleName
(
(
err
,
data
)
=>
{
expect
(
err
.
code
).
assertEqual
(
0
);
expect
(
data
).
assertEqual
(
'
com.example.actscontext
'
);
ret
=
true
done
();
...
...
ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/config.json
浏览文件 @
2b4d9c11
...
...
@@ -22,7 +22,7 @@
"name"
:
".MyApplication"
,
"mainAbility"
:
"com.example.actsfeatureabilitytest.MainAbility"
,
"deviceType"
:
[
"
phone
"
"
default
"
],
"distro"
:
{
"deliveryWithInstall"
:
true
,
...
...
ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
浏览文件 @
2b4d9c11
...
...
@@ -167,8 +167,7 @@ describe('ActsFeatureAbilityTest', function () {
it
(
'
ACTS_HasWindowFocus_0300
'
,
0
,
async
function
(
done
)
{
let
result
=
featureAbility
.
hasWindowFocus
(
(
err
,
data
)
=>
{
console
.
info
(
"
hasWindowFocus asyncCallback code:
"
+
err
.
code
+
"
data:
"
+
data
);
expect
(
err
.
code
).
assertEqual
(
0
);
console
.
info
(
"
hasWindowFocus asyncCallback code data:
"
+
data
);
expect
(
data
).
assertTrue
();
done
()
}
...
...
@@ -1111,7 +1110,7 @@ describe('ActsFeatureAbilityTest', function () {
expect
(
data
.
launchMode
).
assertEqual
(
0
);
expect
(
data
.
permissions
[
0
]).
assertEqual
(
"
ohos.permission.ACCELEROMETER
"
);
expect
(
data
.
deviceTypes
[
0
]).
assertEqual
(
"
phone
"
);
expect
(
data
.
deviceTypes
[
0
]).
assertEqual
(
"
default
"
);
expect
(
data
.
deviceCapabilities
[
0
]).
assertEqual
(
"
SystemCapability.Ability.AbilityBase
"
);
expect
(
data
.
readPermission
).
assertEqual
(
""
);
...
...
@@ -1194,7 +1193,7 @@ describe('ActsFeatureAbilityTest', function () {
expect
(
data
.
supportedModes
).
assertEqual
(
0
);
expect
(
data
.
reqCapabilities
[
0
]).
assertEqual
(
"
reqCapabilitiesTest1
"
);
expect
(
data
.
reqCapabilities
[
1
]).
assertEqual
(
"
reqCapabilitiesTest2
"
);
expect
(
data
.
deviceTypes
[
0
]).
assertEqual
(
"
phone
"
);
expect
(
data
.
deviceTypes
[
0
]).
assertEqual
(
"
default
"
);
expect
(
data
.
moduleName
).
assertEqual
(
"
entry
"
)
expect
(
data
.
mainAbilityName
).
assertEqual
(
"
com.example.actsfeatureabilitytest.MainAbility
"
);
expect
(
data
.
installationFree
).
assertEqual
(
false
);
...
...
ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/StartAbilityJsunit.test.js
浏览文件 @
2b4d9c11
...
...
@@ -141,48 +141,6 @@ describe('StartAbilityTest', function () {
})
})
/*
* @tc.number: SUB_AA_JsApi_Ability_0700
* @tc.name: testAblity0700.
* @tc.desc: startAbility-want-configuration action+entities-entities is configured as a string.(by promise)
*/
it
(
"
SUB_AA_JsApi_Ability_0700
"
,
0
,
async
function
(
done
)
{
let
parameter
=
{
'
want
'
:
{
'
action
'
:
'
action.ohos.acts.aafwk.jsapi.MainAbility
'
,
'
entities
'
:
'
abc123
'
}
}
await
featureAbility
.
startAbility
(
parameter
).
then
((
data
)
=>
{
console
.
log
(
'
testAblity0700 data:
'
+
JSON
.
stringify
(
data
))
expect
().
assertFail
()
}).
catch
((
error
)
=>
{
console
.
log
(
'
testAblity0700 error:
'
+
JSON
.
stringify
(
error
))
expect
(
errCode
).
assertEqual
(
error
.
code
)
})
done
()
})
/*
* @tc.number: SUB_AA_JsApi_Ability_0800
* @tc.name: testAblity0800.
* @tc.desc: startAbility-want-configuration action+entities-entities is configured as a string.(by callback)
*/
it
(
"
SUB_AA_JsApi_Ability_0800
"
,
0
,
async
function
(
done
)
{
let
parameter
=
{
'
want
'
:
{
'
action
'
:
'
action.ohos.acts.aafwk.jsapi.MainAbility
'
,
'
entities
'
:
'
abc123
'
}
}
featureAbility
.
startAbility
((
parameter
),
(
error
,
data
)
=>
{
console
.
log
(
'
testAblity0800 data:
'
+
JSON
.
stringify
(
data
))
console
.
log
(
'
testAblity0800 error:
'
+
JSON
.
stringify
(
error
))
expect
(
errCode
).
assertEqual
(
error
.
code
)
done
()
})
})
/*
* @tc.number: SUB_AA_JsApi_Ability_0900
* @tc.name: testAblity0900.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录