Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
fe9a8d01
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,发现更多精彩内容 >>
提交
fe9a8d01
编写于
5月 11, 2022
作者:
C
chengxingzhen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
XTS系统api下库
Signed-off-by:
N
chengxingzhen
<
chengxingzhen@huawei.com
>
上级
f3a8bd07
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
0 addition
and
18 deletion
+0
-18
aafwk/aafwk_standard/actsabilitydelegatorcase/entry/src/main/js/test/ActsAbilityDelegatorCaseTest.test.js
...try/src/main/js/test/ActsAbilityDelegatorCaseTest.test.js
+0
-18
未找到文件。
aafwk/aafwk_standard/actsabilitydelegatorcase/entry/src/main/js/test/ActsAbilityDelegatorCaseTest.test.js
浏览文件 @
fe9a8d01
...
...
@@ -91,7 +91,6 @@ describe('ActsStServiceAbilityTest', function () {
* @tc.desc: Verify that the interface executes the Shell command successfully.
*/
it
(
'
ACTS_AExecuteShellCommand_Promise_0100
'
,
0
,
async
function
(
done
)
{
console
.
log
(
"
ACTS_AExecuteShellCommand_Promise_0100 --- start
"
)
var
currentAlertTimeout
=
0
;
try
{
currentAlertTimeout
=
setTimeout
(
mySetTimeout
,
gSetTimeout
);
...
...
@@ -208,7 +207,6 @@ describe('ActsStServiceAbilityTest', function () {
);
}
catch
(
error
)
{
clearTimeout
(
currentAlertTimeout
);
console
.
log
(
"
ACTS_AGetDisplayOrientation_0100 : error =
"
+
error
);
console
.
debug
(
'
ACTS_AGetDisplayOrientation_0100====<end catch (error)
'
);
done
();
}
...
...
@@ -225,14 +223,11 @@ describe('ActsStServiceAbilityTest', function () {
try
{
currentAlertTimeout
=
setTimeout
(
mySetTimeout
,
gSetTimeout
);
function
mySetTimeout
()
{
console
.
log
(
'
ACTS_AGetDisplayOrientation_0200====<end mySetTimeout
'
)
done
();
}
var
context
=
featureAbility
.
getContext
()
var
result
=
await
context
.
getDisplayOrientation
().
then
((
data
)
=>
{
clearTimeout
(
currentAlertTimeout
);
console
.
debug
(
"
ACTS_AGetDisplayOrientation_0200====DisplayOrientation>
"
+
JSON
.
stringify
(
DisplayOrientation
)
+
"
, err=
"
+
err
);
expect
(
DisplayOrientation
==
bundle
.
DisplayOrientation
.
UNSPECIFIED
||
(
DisplayOrientation
!=
bundle
.
DisplayOrientation
.
LANDSCAPE
||
DisplayOrientation
!=
bundle
.
DisplayOrientation
.
PORTRAIT
...
...
@@ -267,8 +262,6 @@ describe('ActsStServiceAbilityTest', function () {
var
result
=
context
.
setDisplayOrientation
(
bundle
.
DisplayOrientation
.
UNSPECIFIED
,
(
err
)
=>
{
clearTimeout
(
currentAlertTimeout
);
console
.
debug
(
"
ACTS_ASetDisplayOrientation_0100====err>
"
+
JSON
.
stringify
(
err
)
+
"
, err=
"
+
err
);
done
()
}
);
...
...
@@ -291,7 +284,6 @@ describe('ActsStServiceAbilityTest', function () {
try
{
currentAlertTimeout
=
setTimeout
(
mySetTimeout
,
gSetTimeout
);
function
mySetTimeout
()
{
console
.
log
(
'
ACTS_ASetDisplayOrientation_0200====<end mySetTimeout
'
)
done
();
}
var
context
=
featureAbility
.
getContext
()
...
...
@@ -326,8 +318,6 @@ describe('ActsStServiceAbilityTest', function () {
var
result
=
context
.
setShowOnLockScreen
(
true
,
(
err
)
=>
{
clearTimeout
(
currentAlertTimeout
);
console
.
debug
(
"
ACTS_ASetShowOnLockScreen_0100====err>
"
+
JSON
.
stringify
(
err
)
+
"
, err=
"
+
err
);
done
()
}
);
...
...
@@ -350,7 +340,6 @@ describe('ActsStServiceAbilityTest', function () {
try
{
currentAlertTimeout
=
setTimeout
(
mySetTimeout
,
gSetTimeout
);
function
mySetTimeout
()
{
console
.
log
(
'
ACTS_ASetShowOnLockScreen_0200====<end mySetTimeout
'
)
done
();
}
var
context
=
featureAbility
.
getContext
()
...
...
@@ -362,7 +351,6 @@ describe('ActsStServiceAbilityTest', function () {
);
}
catch
(
error
)
{
clearTimeout
(
currentAlertTimeout
);
console
.
log
(
"
ACTS_ASetShowOnLockScreen_0200 : error =
"
+
error
);
console
.
debug
(
'
ACTS_ASetShowOnLockScreen_0200====<end catch (error)
'
);
done
();
}
...
...
@@ -386,8 +374,6 @@ describe('ActsStServiceAbilityTest', function () {
var
result
=
context
.
setWakeUpScreen
(
true
,
(
err
)
=>
{
clearTimeout
(
currentAlertTimeout
);
console
.
debug
(
"
ACTS_ASetWakeUpScreen_0100====err>
"
+
JSON
.
stringify
(
err
)
+
"
, err=
"
+
err
);
done
()
}
);
...
...
@@ -440,18 +426,14 @@ describe('ActsStServiceAbilityTest', function () {
console
.
debug
(
"
ACTS_ATestRunner_0200====>getArguments is====>
"
+
JSON
.
stringify
(
AbilityDelegatorArgs
));
console
.
debug
(
"
ACTS_ATestRunner_0200====bundleName>
"
+
JSON
.
stringify
(
AbilityDelegatorArgs
.
bundleName
));
expect
(
AbilityDelegatorArgs
.
bundleName
).
assertEqual
(
undefined
)
console
.
debug
(
"
ACTS_ATestRunner_0200====parameters>
"
+
JSON
.
stringify
(
AbilityDelegatorArgs
.
parameters
));
expect
(
AbilityDelegatorArgs
.
parameters
).
assertEqual
(
undefined
)
console
.
debug
(
"
ACTS_ATestRunner_0200====testCaseNames>
"
+
JSON
.
stringify
(
AbilityDelegatorArgs
.
testCaseNames
));
expect
(
AbilityDelegatorArgs
.
testCaseNames
).
assertEqual
(
undefined
)
console
.
debug
(
"
ACTS_ATestRunner_0200====testRunnerClassName>
"
+
JSON
.
stringify
(
AbilityDelegatorArgs
.
testRunnerClassName
));
expect
(
AbilityDelegatorArgs
.
testRunnerClassName
).
assertEqual
(
undefined
)
console
.
debug
(
'
ACTS_ATestRunner_0200====<end
'
);
done
();
}
catch
(
error
)
{
console
.
log
(
"
ACTS_ATestRunner_0200 : error =
"
+
error
);
console
.
debug
(
'
ACTS_ATestRunner_0200====<end catch (error)
'
);
done
();
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录