Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f676470d
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,发现更多精彩内容 >>
未验证
提交
f676470d
编写于
3月 21, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 21, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2703 XTS用例挑单release
Merge pull request !2703 from jiangwensai/cherry-pick-1647846260
上级
f7a526c4
e0f2c513
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
0 addition
and
162 deletion
+0
-162
aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
...ytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
+0
-162
未找到文件。
aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
浏览文件 @
f676470d
...
@@ -1419,168 +1419,6 @@ describe('ActsFeatureAbilityTest', function () {
...
@@ -1419,168 +1419,6 @@ describe('ActsFeatureAbilityTest', function () {
expect
(
typeof
(
promise
)).
assertEqual
(
"
object
"
);
expect
(
typeof
(
promise
)).
assertEqual
(
"
object
"
);
})
})
/*
* @tc.number: ACTS_FinishWithResult_0100
* @tc.name: FinishWithResult : Called when startAbilityForResultis called to start
* an ability and the result is returned.
* @tc.desc: Check the return value of the interface (by promise)
*/
it
(
'
ACTS_FinishWithResult_0100
'
,
0
,
async
function
(
done
)
{
var
promise
=
await
featureAbility
.
startAbilityForResult
(
{
want
:
{
action
:
"
action.system.home
"
,
entities
:
[
"
entity.system.home
"
],
type
:
"
MIMETYPE
"
,
options
:
{
// indicates the grant to perform read operations on the URI
authReadUriPermission
:
true
,
// indicates the grant to perform write operations on the URI
authWriteUriPermission
:
true
,
// support forward intent result to origin ability
abilityForwardResult
:
true
,
// used for marking the ability start-up is triggered by continuation
abilityContinuation
:
true
,
// specifies whether a component does not belong to ohos
notOhosComponent
:
true
,
// specifies whether an ability is started
abilityFormEnabled
:
true
,
// indicates the grant for possible persisting on the URI.
authPersistableUriPermission
:
true
,
// indicates the grant for possible persisting on the URI.
authPrefixUriPermission
:
true
,
// support distributed scheduling system start up multiple devices
abilitySliceMultiDevice
:
true
,
// indicates that an ability using the service template is started regardless of whether the
// host application has been started.
startForegroundAbility
:
true
,
// install the specified ability if it's not installed.
installOnDemand
:
true
,
// return result to origin ability slice
abilitySliceForwardResult
:
true
,
// install the specified ability with background mode if it's not installed.
installWithBackgroundMode
:
true
},
deviceId
:
""
,
bundleName
:
"
com.example.finishwithresultpromiseparameterstest
"
,
abilityName
:
"
com.example.finishwithresultpromiseparameterstest.MainAbility
"
,
uri
:
""
}
}
);
checkOnAbilityResult
(
promise
);
done
();
})
/**
* @tc.number: ACTS_FinishWithResult_0200
* @tc.name: FinishWithResult : Called when startAbilityForResultis called to start
* an ability and the result is returned.
* @tc.desc: Check the return value of the interface (by promise)
*/
it
(
'
ACTS_FinishWithResult_0200
'
,
0
,
async
function
(
done
)
{
var
promise
=
await
featureAbility
.
startAbilityForResult
(
{
want
:
{
action
:
"
action.system.home
"
,
entities
:
[
"
entity.system.home
"
],
type
:
"
MIMETYPE
"
,
options
:
{
// indicates the grant to perform read operations on the URI
authReadUriPermission
:
true
,
// indicates the grant to perform write operations on the URI
authWriteUriPermission
:
true
,
// support forward intent result to origin ability
abilityForwardResult
:
true
,
// used for marking the ability start-up is triggered by continuation
abilityContinuation
:
true
,
// specifies whether a component does not belong to ohos
notOhosComponent
:
true
,
// specifies whether an ability is started
abilityFormEnabled
:
true
,
// indicates the grant for possible persisting on the URI.
authPersistableUriPermission
:
true
,
// indicates the grant for possible persisting on the URI.
authPrefixUriPermission
:
true
,
// support distributed scheduling system start up multiple devices
abilitySliceMultiDevice
:
true
,
// indicates that an ability using the service template is started regardless of whether the
// host application has been started.
startForegroundAbility
:
true
,
// install the specified ability if it's not installed.
installOnDemand
:
true
,
// return result to origin ability slice
abilitySliceForwardResult
:
true
,
// install the specified ability with background mode if it's not installed.
installWithBackgroundMode
:
true
},
deviceId
:
""
,
bundleName
:
"
com.example.finishwithresulttest
"
,
abilityName
:
"
com.example.finishwithresulttest.MainAbility
"
,
uri
:
""
}
}
);
checkOnAbilityResult
(
promise
);
done
();
})
/**
* @tc.number: ACTS_FinishWithResult_0300
* @tc.name: FinishWithResult : Called when startAbilityForResultis called to start
* an ability and the result is returned.
* @tc.desc: Check the return value of the interface (by promise)
*/
it
(
'
ACTS_FinishWithResult_0300
'
,
0
,
async
function
(
done
)
{
var
promise
=
await
featureAbility
.
startAbilityForResult
(
{
want
:
{
action
:
"
action.system.home
"
,
entities
:
[
"
entity.system.home
"
],
type
:
"
MIMETYPE
"
,
options
:
{
// indicates the grant to perform read operations on the URI
authReadUriPermission
:
true
,
// indicates the grant to perform write operations on the URI
authWriteUriPermission
:
true
,
// support forward intent result to origin ability
abilityForwardResult
:
true
,
// used for marking the ability start-up is triggered by continuation
abilityContinuation
:
true
,
// specifies whether a component does not belong to ohos
notOhosComponent
:
true
,
// specifies whether an ability is started
abilityFormEnabled
:
true
,
// indicates the grant for possible persisting on the URI.
authPersistableUriPermission
:
true
,
// indicates the grant for possible persisting on the URI.
authPrefixUriPermission
:
true
,
// support distributed scheduling system start up multiple devices
abilitySliceMultiDevice
:
true
,
// indicates that an ability using the service template is started regardless of whether the
// host application has been started.
startForegroundAbility
:
true
,
// install the specified ability if it's not installed.
installOnDemand
:
true
,
// return result to origin ability slice
abilitySliceForwardResult
:
true
,
// install the specified ability with background mode if it's not installed.
installWithBackgroundMode
:
true
},
deviceId
:
""
,
bundleName
:
"
com.example.finishwithresultemptytest
"
,
abilityName
:
"
com.example.finishwithresultemptytest.MainAbility
"
,
uri
:
""
}
}
);
checkOnAbilityResult
(
promise
);
done
();
})
// checkAbilityName
// checkAbilityName
function
checkAbilityName
(
info
)
{
function
checkAbilityName
(
info
)
{
console
.
log
(
"
AbilityName name :
"
+
info
);
console
.
log
(
"
AbilityName name :
"
+
info
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录