Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
ff6f01eb
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
接近 2 年 前同步成功
通知
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看板
提交
ff6f01eb
编写于
7月 14, 2022
作者:
C
chengxingzhen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
XTS元能力失败用例适配
Signed-off-by:
N
chengxingzhen
<
chengxingzhen@huawei.com
>
上级
c7b26b0d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
4 addition
and
30 deletion
+4
-30
ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
...ytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
+4
-30
未找到文件。
ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
浏览文件 @
ff6f01eb
...
@@ -16,13 +16,10 @@ import featureAbility from '@ohos.ability.featureAbility'
...
@@ -16,13 +16,10 @@ import featureAbility from '@ohos.ability.featureAbility'
import
wantconstant
from
'
@ohos.ability.wantConstant
'
import
wantconstant
from
'
@ohos.ability.wantConstant
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
commonEvent
from
'
@ohos.commonEvent
'
import
commonEvent
from
'
@ohos.commonEvent
'
import
notification
from
'
@ohos.notification
'
;
import
wantAgent
from
'
@ohos.wantAgent
'
;
import
particleAbility
from
'
@ohos.ability.particleAbility
'
import
particleAbility
from
'
@ohos.ability.particleAbility
'
import
backgroundTaskManager
from
'
@ohos.backgroundTaskManager
'
import
backgroundTaskManager
from
'
@ohos.backgroundTaskManager
'
const
START_ABILITY_TIMEOUT
=
4000
;
const
START_ABILITY_TIMEOUT
=
4000
;
const
TERMINATE_ABILITY_TIMEOUT
=
1000
;
const
TIMEOUT
=
1000
;
const
TIMEOUT
=
1000
;
let
subscriberInfo_ACTS_StartAbility_0100
=
{
let
subscriberInfo_ACTS_StartAbility_0100
=
{
events
:
[
"
ACTS_StartAbility_0100_CommonEvent
"
],
events
:
[
"
ACTS_StartAbility_0100_CommonEvent
"
],
...
@@ -48,35 +45,10 @@ let subscriberInfoStartAbilityTen = {
...
@@ -48,35 +45,10 @@ let subscriberInfoStartAbilityTen = {
let
subscriberInfoStartAbilityThirteen
=
{
let
subscriberInfoStartAbilityThirteen
=
{
events
:
[
"
ACTS_StartAbility_1300_CommonEvent
"
],
events
:
[
"
ACTS_StartAbility_1300_CommonEvent
"
],
};
};
let
subscriberInfo_ACTS_StartAbilityForResult_0100
=
{
events
:
[
"
ACTS_StartAbilityForResult_0100_CommonEvent
"
],
};
let
subscriberInfo_ACTS_StartAbilityForResult_0200
=
{
events
:
[
"
ACTS_StartAbilityForResult_0200_CommonEvent
"
],
};
let
subscriberInfo_ACTS_StartAbilityForResult_0300
=
{
events
:
[
"
ACTS_StartAbilityForResult_0300_CommonEvent
"
],
};
let
subscriberInfo_ACTS_StartAbilityForResult_0400
=
{
events
:
[
"
ACTS_StartAbilityForResult_0400_CommonEvent
"
],
};
let
subscriberInfo_ACTS_StartAbilityForResult_0500
=
{
events
:
[
"
ACTS_StartAbilityForResult_0500_CommonEvent
"
],
};
let
subscriberInfoStartAbilityForResultSix
=
{
events
:
[
"
ACTS_StartAbilityForResult_0600_CommonEvent
"
],
};
let
subscriberInfo_ACTS_TerminateAbility_0100
=
{
events
:
[
"
ACTS_TerminateAbility_0100_CommonEvent
"
,
"
ACTS_TerminateAbility_0100_Return
"
],
};
let
subscriberInfoTerminateAbilityTwo
=
{
let
subscriberInfoTerminateAbilityTwo
=
{
events
:
[
"
ACTS_TerminateAbility_0200_CommonEvent
"
,
events
:
[
"
ACTS_TerminateAbility_0200_CommonEvent
"
,
"
ACTS_TerminateAbility_0200_Return
"
],
"
ACTS_TerminateAbility_0200_Return
"
],
};
};
let
subscriberInfo_ACTS_FinishWithResult_0100
=
{
events
:
[
"
ACTS_FinishWithResult_0100_CommonEvent
"
],
};
let
subscriberInfo_ACTS_GetCallingBundle_0100
=
{
let
subscriberInfo_ACTS_GetCallingBundle_0100
=
{
events
:
[
"
ACTS_GetCallingBundle_0100_CommonEvent
"
,
events
:
[
"
ACTS_GetCallingBundle_0100_CommonEvent
"
,
"
com.example.actsfeatureabilitytest.promise
"
,
"
com.example.actsfeatureabilitytest.promise
"
,
...
@@ -135,8 +107,10 @@ describe('ActsFeatureAbilityTest', function () {
...
@@ -135,8 +107,10 @@ describe('ActsFeatureAbilityTest', function () {
expect
(
wantconstant
.
Action
.
ACTION_DIAL
).
assertEqual
(
"
ohos.want.action.dial
"
);
expect
(
wantconstant
.
Action
.
ACTION_DIAL
).
assertEqual
(
"
ohos.want.action.dial
"
);
expect
(
wantconstant
.
Action
.
ACTION_SEARCH
).
assertEqual
(
"
ohos.want.action.search
"
);
expect
(
wantconstant
.
Action
.
ACTION_SEARCH
).
assertEqual
(
"
ohos.want.action.search
"
);
expect
(
wantconstant
.
Action
.
ACTION_WIRELESS_SETTINGS
).
assertEqual
(
"
ohos.settings.wireless
"
);
expect
(
wantconstant
.
Action
.
ACTION_WIRELESS_SETTINGS
).
assertEqual
(
"
ohos.settings.wireless
"
);
expect
(
wantconstant
.
Action
.
ACTION_MANAGE_APPLICATIONS_SETTINGS
).
assertEqual
(
"
ohos.settings.manage.applications
"
);
expect
(
wantconstant
.
Action
.
ACTION_MANAGE_APPLICATIONS_SETTINGS
)
expect
(
wantconstant
.
Action
.
ACTION_APPLICATION_DETAILS_SETTINGS
).
assertEqual
(
"
ohos.settings.application.details
"
);
.
assertEqual
(
"
ohos.settings.manage.applications
"
);
expect
(
wantconstant
.
Action
.
ACTION_APPLICATION_DETAILS_SETTINGS
)
.
assertEqual
(
"
ohos.settings.application.details
"
);
expect
(
wantconstant
.
Action
.
ACTION_SET_ALARM
).
assertEqual
(
"
ohos.want.action.setAlarm
"
);
expect
(
wantconstant
.
Action
.
ACTION_SET_ALARM
).
assertEqual
(
"
ohos.want.action.setAlarm
"
);
expect
(
wantconstant
.
Action
.
ACTION_SHOW_ALARMS
).
assertEqual
(
"
ohos.want.action.showAlarms
"
);
expect
(
wantconstant
.
Action
.
ACTION_SHOW_ALARMS
).
assertEqual
(
"
ohos.want.action.showAlarms
"
);
expect
(
wantconstant
.
Action
.
ACTION_SNOOZE_ALARM
).
assertEqual
(
"
ohos.want.action.snoozeAlarm
"
);
expect
(
wantconstant
.
Action
.
ACTION_SNOOZE_ALARM
).
assertEqual
(
"
ohos.want.action.snoozeAlarm
"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录