Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f19c2c47
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看板
提交
f19c2c47
编写于
8月 29, 2022
作者:
C
chengxingzhen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
XTS对齐HO用例整改
Signed-off-by:
N
chengxingzhen
<
chengxingzhen@huawei.com
>
上级
9ee6f033
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
8 addition
and
52 deletion
+8
-52
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/config.json
...dard/actsabilitymanageretstest/entry/src/main/config.json
+1
-1
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/ets/MainAbility/test/getAbilityInfoJsunit.test.ets
...c/main/ets/MainAbility/test/getAbilityInfoJsunit.test.ets
+1
-1
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/ets/MainAbility/test/getHapModuleInfoJsunit.test.ets
...main/ets/MainAbility/test/getHapModuleInfoJsunit.test.ets
+2
-2
aafwk/aafwk_standard/context/actscontexttest/entry/src/main/js/test/ContextJsunit.test.js
...scontexttest/entry/src/main/js/test/ContextJsunit.test.js
+0
-1
aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/config.json
...ability/actsfeatureabilitytest/entry/src/main/config.json
+1
-1
aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
...ytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
+3
-4
aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/StartAbilityJsunit.test.js
...itytest/entry/src/main/js/test/StartAbilityJsunit.test.js
+0
-42
未找到文件。
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/config.json
浏览文件 @
f19c2c47
...
...
@@ -18,7 +18,7 @@
"name"
:
".MyApplication"
,
"mainAbility"
:
"com.ohos.acecollaboration.MainAbility"
,
"deviceType"
:
[
"
phone
"
"
default
"
],
"reqPermissions"
:
[
{
...
...
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/ets/MainAbility/test/getAbilityInfoJsunit.test.ets
浏览文件 @
f19c2c47
...
...
@@ -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);
...
...
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/ets/MainAbility/test/getHapModuleInfoJsunit.test.ets
浏览文件 @
f19c2c47
...
...
@@ -123,7 +123,7 @@ export default function getHapModuleInfoJsunit() {
expect(data.iconId).assertEqual(16777227);
expect(data.backgroundImg).assertEqual("");
expect(data.supportedModes).assertEqual(0);
expect(data.deviceTypes[0]).assertEqual("
phone
");
expect(data.deviceTypes[0]).assertEqual("
default
");
checkAbilityInfo(msg,data.abilityInfo[0]);
expect(data.moduleName).assertEqual("entry")
expect(data.mainAbilityName).assertEqual("com.ohos.acecollaboration.MainAbility");
...
...
@@ -216,7 +216,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);
...
...
aafwk/aafwk_standard/context/actscontexttest/entry/src/main/js/test/ContextJsunit.test.js
浏览文件 @
f19c2c47
...
...
@@ -56,7 +56,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
();
...
...
aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/config.json
浏览文件 @
f19c2c47
...
...
@@ -22,7 +22,7 @@
"name"
:
".MyApplication"
,
"mainAbility"
:
"com.example.actsfeatureabilitytest.MainAbility"
,
"deviceType"
:
[
"
phone
"
"
default
"
],
"distro"
:
{
"deliveryWithInstall"
:
true
,
...
...
aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
浏览文件 @
f19c2c47
...
...
@@ -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 data:
"
+
data
);
expect
(
data
).
assertTrue
();
done
()
}
...
...
@@ -1113,7 +1112,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
(
""
);
...
...
@@ -1196,7 +1195,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
);
...
...
aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/StartAbilityJsunit.test.js
浏览文件 @
f19c2c47
...
...
@@ -141,48 +141,6 @@ describe('ConnectAbilityTest', 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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录