Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
a695c705
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看板
提交
a695c705
编写于
9月 18, 2021
作者:
J
jiyong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
jiyong@huawei.com
Signed-off-by:
N
jiyong
<
jiyong@huawei.com
>
上级
0578fabc
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
148 addition
and
113 deletion
+148
-113
aafwk/aafwk_standard/abilitymanager/actsamscallbackfifthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
...hscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
+1
-1
aafwk/aafwk_standard/abilitymanager/actsamscallbackfirstscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
...tscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
+2
-2
aafwk/aafwk_standard/abilitymanager/actsamscallbackfourthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
...hscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
+49
-36
aafwk/aafwk_standard/abilitymanager/actsamscallbacksecondscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
...dscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
+48
-37
aafwk/aafwk_standard/abilitymanager/actsamscallbackthirdscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
...dscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
+48
-37
未找到文件。
aafwk/aafwk_standard/abilitymanager/actsamscallbackfifthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
a695c705
aafwk/aafwk_standard/abilitymanager/actsamscallbackfirstscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
a695c705
...
...
@@ -81,7 +81,7 @@ describe('ActsAmsCallBackFirstScene', function () {
},
},
);
done
(
);
setTimeout
(
done
(),
5000
);
});
function
timeout
()
{
...
...
aafwk/aafwk_standard/abilitymanager/actsamscallbackfourthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
a695c705
...
...
@@ -126,16 +126,21 @@ describe('ActsAmsCallBackFourthScene', function () {
},
}
);
done
(
);
setTimeout
(
done
(),
5000
);
});
function
timeout
()
{
expect
().
assertFail
();
console
.
debug
(
'
Acts_Ams_test=========timeout========
'
);
done
();
}
/*
* @tc.number : Acts_Ams_test_5000
* @tc.name : getAllRunningProcesses : Get All Running Processes Info
* @tc.desc : Get All Running Processes Info(by CallBack)
*/
it
(
'
Acts_Ams_test_5000
'
,
0
,
async
function
(
done
)
{
setTimeout
(
function
()
{
abilitymanager
.
getAllRunningProcesses
(
(
error
,
info
)
=>
{
console
.
info
(
'
getAllRunningProcesses error.code
\
...
...
@@ -166,9 +171,10 @@ describe('ActsAmsCallBackFourthScene', function () {
expect
(
typeof
(
info
[
i
].
weightReasonCode
)).
assertEqual
(
"
number
"
);
expect
(
info
[
i
].
weightReasonCode
).
assertEqual
(
WeightReasonCode
.
REASON_UNKNOWN
);
}
});
done
();
},
5000
);
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -223,8 +229,9 @@ describe('ActsAmsCallBackFourthScene', function () {
expect
(
typeof
(
data
[
i
].
missionDescription
.
label
)).
assertEqual
(
"
string
"
);
expect
(
typeof
(
data
[
i
].
missionDescription
.
iconPath
)).
assertEqual
(
"
string
"
);
}
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -279,8 +286,9 @@ describe('ActsAmsCallBackFourthScene', function () {
expect
(
typeof
(
data
[
i
].
missionDescription
.
label
)).
assertEqual
(
"
string
"
);
expect
(
typeof
(
data
[
i
].
missionDescription
.
iconPath
)).
assertEqual
(
"
string
"
);
}
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -297,8 +305,9 @@ describe('ActsAmsCallBackFourthScene', function () {
'
+
error
.
code
+
'
,data [
'
+
info
+
'
]
'
);
expect
(
typeof
(
info
)).
assertEqual
(
"
number
"
);
expect
(
info
).
assertLarger
(
0
);
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -315,8 +324,9 @@ describe('ActsAmsCallBackFourthScene', function () {
'
+
error
.
code
+
'
,data [
'
+
info
+
'
]
'
);
expect
(
typeof
(
info
)).
assertEqual
(
"
number
"
);
expect
(
info
).
assertEqual
(
0
);
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -331,8 +341,9 @@ describe('ActsAmsCallBackFourthScene', function () {
'
+
error
.
code
+
'
,data [
'
+
info
+
'
]
'
);
expect
(
typeof
(
info
)).
assertEqual
(
"
number
"
);
expect
(
info
).
assertLarger
(
0
);
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -347,8 +358,9 @@ describe('ActsAmsCallBackFourthScene', function () {
'
+
error
.
code
+
'
,data [
'
+
info
+
'
]
'
);
expect
(
typeof
(
info
)).
assertEqual
(
"
number
"
);
expect
(
info
).
assertEqual
(
0
);
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -365,7 +377,8 @@ describe('ActsAmsCallBackFourthScene', function () {
'
+
error
.
code
+
'
,data [
'
+
info
+
'
]
'
);
expect
(
typeof
(
info
)).
assertEqual
(
"
number
"
);
expect
(
info
).
assertEqual
(
0
);
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
})
aafwk/aafwk_standard/abilitymanager/actsamscallbacksecondscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
a695c705
...
...
@@ -96,16 +96,21 @@ describe('ActsAmsCallBackSecondScene', function () {
},
}
);
done
(
);
setTimeout
(
done
(),
5000
);
});
function
timeout
()
{
expect
().
assertFail
();
console
.
debug
(
'
Acts_Ams_test=========timeout========
'
);
done
();
}
/*
* @tc.number : Acts_Ams_test_1800
* @tc.name : getAllRunningProcesses : Get All Running Processes Info
* @tc.desc : Get All Running Processes Info(by CallBack)
*/
it
(
'
Acts_Ams_test_1800
'
,
0
,
async
function
(
done
)
{
setTimeout
(
function
()
{
abilitymanager
.
getAllRunningProcesses
(
(
error
,
info
)
=>
{
console
.
info
(
'
getAllRunningProcesses error.code
\
...
...
@@ -136,9 +141,9 @@ describe('ActsAmsCallBackSecondScene', function () {
expect
(
typeof
(
info
[
i
].
weightReasonCode
)).
assertEqual
(
"
number
"
);
expect
(
info
[
i
].
weightReasonCode
).
assertEqual
(
WeightReasonCode
.
REASON_UNKNOWN
);
}
});
done
();
},
5000
);
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -183,8 +188,9 @@ describe('ActsAmsCallBackSecondScene', function () {
expect
(
typeof
(
info
[
i
].
missionDescription
.
label
)).
assertEqual
(
"
string
"
);
expect
(
typeof
(
info
[
i
].
missionDescription
.
iconPath
)).
assertEqual
(
"
string
"
);
}
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -229,8 +235,9 @@ describe('ActsAmsCallBackSecondScene', function () {
expect
(
typeof
(
info
[
i
].
missionDescription
.
label
)).
assertEqual
(
"
string
"
);
expect
(
typeof
(
info
[
i
].
missionDescription
.
iconPath
)).
assertEqual
(
"
string
"
);
}
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -246,8 +253,9 @@ describe('ActsAmsCallBackSecondScene', function () {
console
.
info
(
'
Acts_Ams_test_2400 removeMission error.code
\
'
+
error
.
code
+
'
,data [
'
+
info
+
'
]
'
);
expect
(
info
).
assertEqual
(
0
);
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -263,8 +271,9 @@ describe('ActsAmsCallBackSecondScene', function () {
console
.
info
(
'
Acts_Ams_test_2800 moveMissionToTop error.code
\
'
+
error
.
code
+
'
,data [
'
+
info
+
'
]
'
);
expect
(
info
).
assertEqual
(
0
);
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -280,8 +289,9 @@ describe('ActsAmsCallBackSecondScene', function () {
console
.
info
(
'
Acts_Ams_test_3000 removeMissions error.code
\
'
+
error
.
code
+
'
,data [
'
+
info
+
'
]
'
);
expect
(
info
).
assertLarger
(
0
);
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -295,8 +305,9 @@ describe('ActsAmsCallBackSecondScene', function () {
console
.
info
(
'
Acts_Ams_test_2600 clearMissions error.code
\
'
+
error
.
code
+
'
,data [
'
+
info
+
'
]
'
);
expect
(
info
).
assertLarger
(
0
);
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -310,9 +321,9 @@ describe('ActsAmsCallBackSecondScene', function () {
console
.
info
(
'
Acts_Ams_test_3200 killProcessesByBundleName error.code:
\
'
+
error
.
code
+
'
,data [
'
+
info
+
'
]
'
);
expect
(
info
).
assertEqual
(
0
);
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
})
...
...
aafwk/aafwk_standard/abilitymanager/actsamscallbackthirdscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
a695c705
...
...
@@ -107,16 +107,21 @@ describe('ActsAmsCallBackThirdScene', function () {
},
},
);
done
(
);
setTimeout
(
done
(),
5000
);
});
function
timeout
()
{
expect
().
assertFail
();
console
.
debug
(
'
Acts_Ams_test=========timeout========
'
);
done
();
}
/*
* @tc.number : Acts_Ams_test_3400
* @tc.name : getAllRunningProcesses : Get All Running Processes Info
* @tc.desc : Get All Running Processes Info(by CallBack)
*/
it
(
'
Acts_Ams_test_3400
'
,
0
,
async
function
(
done
)
{
setTimeout
(
function
()
{
abilitymanager
.
getAllRunningProcesses
(
(
error
,
info
)
=>
{
console
.
info
(
'
getAllRunningProcesses error.code
\
...
...
@@ -147,9 +152,9 @@ describe('ActsAmsCallBackThirdScene', function () {
expect
(
typeof
(
info
[
i
].
weightReasonCode
)).
assertEqual
(
"
number
"
);
expect
(
info
[
i
].
weightReasonCode
).
assertEqual
(
WeightReasonCode
.
REASON_UNKNOWN
);
}
});
done
();
},
5000
);
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -194,8 +199,9 @@ describe('ActsAmsCallBackThirdScene', function () {
expect
(
typeof
(
info
[
i
].
missionDescription
.
label
)).
assertEqual
(
"
string
"
);
expect
(
typeof
(
info
[
i
].
missionDescription
.
iconPath
)).
assertEqual
(
"
string
"
);
}
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -240,8 +246,9 @@ describe('ActsAmsCallBackThirdScene', function () {
expect
(
typeof
(
info
[
i
].
missionDescription
.
label
)).
assertEqual
(
"
string
"
);
expect
(
typeof
(
info
[
i
].
missionDescription
.
iconPath
)).
assertEqual
(
"
string
"
);
}
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -257,8 +264,9 @@ describe('ActsAmsCallBackThirdScene', function () {
console
.
info
(
'
Acts_Ams_test_4000 removeMission error.code
\
'
+
error
.
code
+
'
,data [
'
+
info
+
'
]
'
);
expect
(
info
).
assertEqual
(
0
);
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -274,8 +282,9 @@ describe('ActsAmsCallBackThirdScene', function () {
console
.
info
(
'
Acts_Ams_test_4400 moveMissionToTop error.code
\
'
+
error
.
code
+
'
,data [
'
+
info
+
'
]
'
);
expect
(
info
).
assertEqual
(
0
);
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -291,8 +300,9 @@ describe('ActsAmsCallBackThirdScene', function () {
console
.
info
(
'
Acts_Ams_test_4600 removeMissions error.code
\
'
+
error
.
code
+
'
,data [
'
+
info
+
'
]
'
);
expect
(
info
).
assertLarger
(
0
);
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -306,8 +316,9 @@ describe('ActsAmsCallBackThirdScene', function () {
console
.
info
(
'
Acts_Ams_test_4200 clearMissions error.code
\
'
+
error
.
code
+
'
,data [
'
+
info
+
'
]
'
);
expect
(
info
).
assertLarger
(
0
);
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -321,9 +332,9 @@ describe('ActsAmsCallBackThirdScene', function () {
console
.
info
(
'
Acts_Ams_test_4800 killProcessesByBundleName error.code:
\
'
+
error
.
code
+
'
,data [
'
+
info
+
'
]
'
);
expect
(
info
).
assertEqual
(
0
);
});
done
();
});
setTimeout
(
timeout
,
5000
);
})
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录