Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
5f7f1321
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看板
提交
5f7f1321
编写于
11月 03, 2021
作者:
Z
zhaoyuan17@huawei.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fms_st
Signed-off-by:
N
zhaoyuan17@huawei.com
<
zhaoyuan17@huawei.com
>
上级
61889741
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
14 addition
and
7 deletion
+14
-7
aafwk/aafwk_standard/formmanager/formsystemtesthost/FormFuzzTest/entry/src/main/js/test/FormFuzzTest.test.js
.../FormFuzzTest/entry/src/main/js/test/FormFuzzTest.test.js
+14
-7
未找到文件。
aafwk/aafwk_standard/formmanager/formsystemtesthost/FormFuzzTest/entry/src/main/js/test/FormFuzzTest.test.js
浏览文件 @
5f7f1321
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
import
formManager
from
'
@ohos.ability.formManager
'
import
formManager
from
'
@ohos.ability.formManager
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
parameterValue
,
stringTest
,
numberTest
,
booleanTest
,
nullTest
,
undefinedTest
,
objectTest
,
arrayTest
,
functionTest
}
from
'
./getParam.js
'
import
{
parameterValue
,
stringTest
,
numberTest
,
booleanTest
,
nullTest
,
undefinedTest
,
objectTest
,
arrayTest
,
functionTest
}
from
'
./getParam.js
'
const
TIMEOUT
=
2000
;
const
TIMEOUT
=
2000
;
describe
(
'
formFuzzTest
'
,
function
()
{
describe
(
'
formFuzzTest
'
,
function
()
{
...
@@ -138,7 +139,8 @@ describe('formFuzzTest', function () {
...
@@ -138,7 +139,8 @@ describe('formFuzzTest', function () {
var
retResult
;
var
retResult
;
try
{
try
{
retResult
=
await
Promise
.
all
(
await
formManager
.
releaseForm
(
formId
,
isReleaseCache
));
// formId: number>0 ok, isReleaseCache: boolean
// formId: number>0 ok, isReleaseCache: boolean
retResult
=
await
Promise
.
all
(
await
formManager
.
releaseForm
(
formId
,
isReleaseCache
));
console
.
log
(
"
FMS_fuzzTest_0300_param_01_promise async::sucess retResult:
"
+
retResult
);
console
.
log
(
"
FMS_fuzzTest_0300_param_01_promise async::sucess retResult:
"
+
retResult
);
expect
(
retResult
).
assertEqual
(
1
);
expect
(
retResult
).
assertEqual
(
1
);
done
();
done
();
...
@@ -163,7 +165,8 @@ describe('formFuzzTest', function () {
...
@@ -163,7 +165,8 @@ describe('formFuzzTest', function () {
console
.
log
(
"
FMS_fuzzTest_0300_param_02_callback releaseForm begin
"
);
console
.
log
(
"
FMS_fuzzTest_0300_param_02_callback releaseForm begin
"
);
var
formId
=
stringTest
();
var
formId
=
stringTest
();
console
.
log
(
"
FMS_fuzzTest_0300_param_02_callback releaseForm formId typeof:
"
+
typeof
(
formId
)
+
"
,formId:
"
+
formId
);
console
.
log
(
"
FMS_fuzzTest_0300_param_02_callback releaseForm formId typeof:
"
+
typeof
(
formId
)
+
"
,formId:
"
+
formId
);
var
isReleaseCache
=
parameterValue
();
var
isReleaseCache
=
parameterValue
();
console
.
log
(
"
FMS_fuzzTest_0300_param_02_callback releaseForm isReleaseCache typeof:
"
+
typeof
(
isReleaseCache
));
console
.
log
(
"
FMS_fuzzTest_0300_param_02_callback releaseForm isReleaseCache typeof:
"
+
typeof
(
isReleaseCache
));
...
@@ -202,14 +205,16 @@ describe('formFuzzTest', function () {
...
@@ -202,14 +205,16 @@ describe('formFuzzTest', function () {
console
.
log
(
"
FMS_fuzzTest_0300_param_02_promise releaseForm begin
"
);
console
.
log
(
"
FMS_fuzzTest_0300_param_02_promise releaseForm begin
"
);
var
formId
=
stringTest
();
var
formId
=
stringTest
();
console
.
log
(
"
FMS_fuzzTest_0300_param_02_promise releaseForm formId typeof:
"
+
typeof
(
formId
)
+
"
,formId:
"
+
formId
);
console
.
log
(
"
FMS_fuzzTest_0300_param_02_promise releaseForm formId typeof:
"
+
typeof
(
formId
)
+
"
,formId:
"
+
formId
);
var
isReleaseCache
=
parameterValue
();
var
isReleaseCache
=
parameterValue
();
console
.
log
(
"
FMS_fuzzTest_0300_param_02_promise releaseForm isReleaseCache typeof:
"
+
typeof
(
isReleaseCache
));
console
.
log
(
"
FMS_fuzzTest_0300_param_02_promise releaseForm isReleaseCache typeof:
"
+
typeof
(
isReleaseCache
));
var
retResult
;
var
retResult
;
try
{
try
{
retResult
=
await
Promise
.
all
(
await
formManager
.
releaseForm
(
formId
,
isReleaseCache
));
// formId: number>0 ok, isReleaseCache: boolean
// formId: number>0 ok, isReleaseCache: boolean
retResult
=
await
Promise
.
all
(
await
formManager
.
releaseForm
(
formId
,
isReleaseCache
));
console
.
log
(
"
FMS_fuzzTest_0300_param_02_promise async::sucess retResult:
"
+
retResult
);
console
.
log
(
"
FMS_fuzzTest_0300_param_02_promise async::sucess retResult:
"
+
retResult
);
expect
(
retResult
).
assertEqual
(
1
);
expect
(
retResult
).
assertEqual
(
1
);
done
();
done
();
...
@@ -234,7 +239,8 @@ describe('formFuzzTest', function () {
...
@@ -234,7 +239,8 @@ describe('formFuzzTest', function () {
console
.
log
(
"
FMS_fuzzTest_0300_param_03_callback releaseForm begin
"
);
console
.
log
(
"
FMS_fuzzTest_0300_param_03_callback releaseForm begin
"
);
var
formId
=
stringTest
();
var
formId
=
stringTest
();
console
.
log
(
"
FMS_fuzzTest_0300_param_03_callback releaseForm formId typeof:
"
+
typeof
(
formId
)
+
"
,formId:
"
+
formId
);
console
.
log
(
"
FMS_fuzzTest_0300_param_03_callback releaseForm formId typeof:
"
+
typeof
(
formId
)
+
"
,formId:
"
+
formId
);
try
{
try
{
formManager
.
releaseForm
(
formManager
.
releaseForm
(
...
@@ -269,7 +275,8 @@ describe('formFuzzTest', function () {
...
@@ -269,7 +275,8 @@ describe('formFuzzTest', function () {
console
.
log
(
"
FMS_fuzzTest_0300_param_03_promise releaseForm begin
"
);
console
.
log
(
"
FMS_fuzzTest_0300_param_03_promise releaseForm begin
"
);
var
formId
=
stringTest
();
var
formId
=
stringTest
();
console
.
log
(
"
FMS_fuzzTest_0300_param_03_promise releaseForm formId typeof:
"
+
typeof
(
formId
)
+
"
,formId:
"
+
formId
);
console
.
log
(
"
FMS_fuzzTest_0300_param_03_promise releaseForm formId typeof:
"
+
typeof
(
formId
)
+
"
,formId:
"
+
formId
);
var
retResult
;
var
retResult
;
try
{
try
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录