Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
748548ba
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看板
提交
748548ba
编写于
11月 03, 2021
作者:
O
openharmony_ci
提交者:
Gitee
11月 03, 2021
浏览文件
操作
浏览文件
下载
差异文件
!1036 fms_ST
Merge pull request !1036 from blackleon/fms_1102
上级
a797f653
5f7f1321
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
150 addition
and
21 deletion
+150
-21
aafwk/aafwk_standard/formmanager/formsystemtesthost/FormFuzzTest/entry/src/main/js/test/FormFuzzTest.test.js
.../FormFuzzTest/entry/src/main/js/test/FormFuzzTest.test.js
+136
-7
aafwk/aafwk_standard/formmanager/formsystemtesthost/getallformsinfo/entry/src/main/js/test/GetAllFormsInfoJsunit.test.js
...info/entry/src/main/js/test/GetAllFormsInfoJsunit.test.js
+12
-12
aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestservicea/src/main/config.json
...emtestservice/formsystemtestservicea/src/main/config.json
+2
-2
未找到文件。
aafwk/aafwk_standard/formmanager/formsystemtesthost/FormFuzzTest/entry/src/main/js/test/FormFuzzTest.test.js
浏览文件 @
748548ba
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
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
,
import
{
parameterValue
,
stringTest
,
numberTest
,
booleanTest
,
nullTest
,
undefinedTest
,
objectTest
,
arrayTest
,
functionTest
}
from
'
./getParam.js
'
nullTest
,
undefinedTest
,
objectTest
,
arrayTest
,
functionTest
}
from
'
./getParam.js
'
const
TIMEOUT
=
2000
;
const
TIMEOUT
=
2000
;
describe
(
'
formFuzzTest
'
,
function
()
{
describe
(
'
formFuzzTest
'
,
function
()
{
...
@@ -140,7 +140,7 @@ describe('formFuzzTest', function () {
...
@@ -140,7 +140,7 @@ describe('formFuzzTest', function () {
var
retResult
;
var
retResult
;
try
{
try
{
// formId: number>0 ok, isReleaseCache: boolean
// formId: number>0 ok, isReleaseCache: boolean
retResult
=
await
Promise
.
all
(
await
formManager
.
releaseForm
(
formId
,
isReleaseCache
));
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
();
...
@@ -165,8 +165,8 @@ describe('formFuzzTest', function () {
...
@@ -165,8 +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
)
console
.
log
(
"
FMS_fuzzTest_0300_param_02_callback releaseForm formId typeof:
"
+
+
"
,formId:
"
+
formId
);
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
));
...
@@ -205,8 +205,8 @@ describe('formFuzzTest', function () {
...
@@ -205,8 +205,8 @@ 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
)
console
.
log
(
"
FMS_fuzzTest_0300_param_02_promise releaseForm formId typeof:
"
+
+
"
,formId:
"
+
formId
);
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
));
...
@@ -230,6 +230,135 @@ describe('formFuzzTest', function () {
...
@@ -230,6 +230,135 @@ describe('formFuzzTest', function () {
},
TIMEOUT
)
},
TIMEOUT
)
})
})
/**
* @tc.name fuzzTest
* @tc.number FMS_fuzzTest_0300
* @tc.desc Check whether the releaseForm interface can pass the fuzzy test (by AsyncCallback)
*/
it
(
'
FMS_fuzzTest_0300_param_03_callback
'
,
0
,
async
function
(
done
)
{
console
.
log
(
"
FMS_fuzzTest_0300_param_03_callback releaseForm begin
"
);
var
formId
=
stringTest
();
console
.
log
(
"
FMS_fuzzTest_0300_param_03_callback releaseForm formId typeof:
"
+
typeof
(
formId
)
+
"
,formId:
"
+
formId
);
try
{
formManager
.
releaseForm
(
formId
,
// formId: number>0 ok
(
err
,
data
)
=>
{
console
.
log
(
"
FMS_fuzzTest_0300_param_03_callback async::callbak return!!!
"
)
console
.
log
(
"
FMS_fuzzTest_0300_param_03_callback async::sucess data:
"
+
data
);
console
.
log
(
"
FMS_fuzzTest_0300_param_03_callback async::error err:
"
+
err
);
expect
(
err
).
assertEqual
(
1
);
done
();
}
);
}
catch
(
e
)
{
console
.
log
(
"
FMS_fuzzTest_0300_param_03_callback Exception caught:
"
+
e
);
expect
(
0
).
assertEqual
(
0
);
}
console
.
log
(
"
FMS_fuzzTest_0300_param_03_callback releaseForm end
"
);
done
();
setTimeout
(
function
()
{
console
.
info
(
'
=====================FMS_fuzzTest_0300_param_03_callback==================end
'
);
},
TIMEOUT
)
})
/**
* @tc.name fuzzTest
* @tc.number FMS_fuzzTest_0300
* @tc.desc Check whether the releaseForm interface can pass the fuzzy test (by Promise)
*/
it
(
'
FMS_fuzzTest_0300_param_03_promise
'
,
0
,
async
function
(
done
)
{
console
.
log
(
"
FMS_fuzzTest_0300_param_03_promise releaseForm begin
"
);
var
formId
=
stringTest
();
console
.
log
(
"
FMS_fuzzTest_0300_param_03_promise releaseForm formId typeof:
"
+
typeof
(
formId
)
+
"
,formId:
"
+
formId
);
var
retResult
;
try
{
retResult
=
await
Promise
.
all
(
await
formManager
.
releaseForm
(
formId
));
// formId: number>0 ok
console
.
log
(
"
FMS_fuzzTest_0300_param_03_promise async::sucess retResult:
"
+
retResult
);
expect
(
retResult
).
assertEqual
(
1
);
done
();
}
catch
(
e
)
{
console
.
log
(
"
FMS_fuzzTest_0300_param_03_promise Exception caught:
"
+
e
);
expect
(
0
).
assertEqual
(
0
);
}
console
.
log
(
"
FMS_fuzzTest_0300_param_03_promise releaseForm end
"
);
done
();
setTimeout
(
function
()
{
console
.
info
(
'
=====================FMS_fuzzTest_0300_param_03_promise==================end
'
);
},
TIMEOUT
)
})
/**
* @tc.name fuzzTest
* @tc.number FMS_fuzzTest_0300
* @tc.desc Check whether the releaseForm interface can pass the fuzzy test (by AsyncCallback)
*/
it
(
'
FMS_fuzzTest_0300_param_04_callback
'
,
0
,
async
function
(
done
)
{
console
.
log
(
"
FMS_fuzzTest_0300_param_04_callback releaseForm begin
"
);
var
formId
=
parameterValue
();
console
.
log
(
"
FMS_fuzzTest_0300_param_04_callback releaseForm formId typeof:
"
+
typeof
(
formId
));
try
{
formManager
.
releaseForm
(
formId
,
// formId: number>0 ok
(
err
,
data
)
=>
{
console
.
log
(
"
FMS_fuzzTest_0300_param_04_callback async::callbak return!!!
"
)
console
.
log
(
"
FMS_fuzzTest_0300_param_04_callback async::sucess data:
"
+
data
);
console
.
log
(
"
FMS_fuzzTest_0300_param_04_callback async::error err:
"
+
err
);
expect
(
err
).
assertEqual
(
1
);
done
();
}
);
}
catch
(
e
)
{
console
.
log
(
"
FMS_fuzzTest_0300_param_04_callback Exception caught:
"
+
e
);
expect
(
0
).
assertEqual
(
0
);
}
console
.
log
(
"
FMS_fuzzTest_0300_param_04_callback releaseForm end
"
);
done
();
setTimeout
(
function
()
{
console
.
info
(
'
=====================FMS_fuzzTest_0300_param_04_callback==================end
'
);
},
TIMEOUT
)
})
/**
* @tc.name fuzzTest
* @tc.number FMS_fuzzTest_0300
* @tc.desc Check whether the releaseForm interface can pass the fuzzy test (by Promise)
*/
it
(
'
FMS_fuzzTest_0300_param_04_promise
'
,
0
,
async
function
(
done
)
{
console
.
log
(
"
FMS_fuzzTest_0300_param_04_promise releaseForm begin
"
);
var
formId
=
parameterValue
();
console
.
log
(
"
FMS_fuzzTest_0300_param_04_promise releaseForm formId typeof:
"
+
typeof
(
formId
));
var
retResult
;
try
{
retResult
=
await
Promise
.
all
(
await
formManager
.
releaseForm
(
formId
));
// formId: number>0 ok
console
.
log
(
"
FMS_fuzzTest_0300_param_04_promise async::sucess retResult:
"
+
retResult
);
expect
(
retResult
).
assertEqual
(
1
);
done
();
}
catch
(
e
)
{
console
.
log
(
"
FMS_fuzzTest_0300_param_04_promise Exception caught:
"
+
e
);
expect
(
0
).
assertEqual
(
0
);
}
console
.
log
(
"
FMS_fuzzTest_0300_param_04_promise releaseForm end
"
);
done
();
setTimeout
(
function
()
{
console
.
info
(
'
=====================FMS_fuzzTest_0300_param_04_promise==================end
'
);
},
TIMEOUT
)
})
/**
/**
* @tc.name fuzzTest
* @tc.name fuzzTest
* @tc.number FMS_fuzzTest_1200
* @tc.number FMS_fuzzTest_1200
...
@@ -502,4 +631,4 @@ describe('formFuzzTest', function () {
...
@@ -502,4 +631,4 @@ describe('formFuzzTest', function () {
},
TIMEOUT
)
},
TIMEOUT
)
})
})
})
})
\ No newline at end of file
aafwk/aafwk_standard/formmanager/formsystemtesthost/getallformsinfo/entry/src/main/js/test/GetAllFormsInfoJsunit.test.js
浏览文件 @
748548ba
...
@@ -43,8 +43,7 @@ describe('getAllFormsInfoTest', function () {
...
@@ -43,8 +43,7 @@ describe('getAllFormsInfoTest', function () {
expect
(
data
[
i
].
colorMode
).
assertEqual
(
-
1
);
expect
(
data
[
i
].
colorMode
).
assertEqual
(
-
1
);
expect
(
data
[
i
].
isDefault
).
assertEqual
(
1
);
expect
(
data
[
i
].
isDefault
).
assertEqual
(
1
);
expect
(
data
[
i
].
updateEnabled
).
assertEqual
(
1
);
expect
(
data
[
i
].
updateEnabled
).
assertEqual
(
1
);
expect
(
data
[
i
].
scheduledUpdateTime
).
assertEqual
(
"
0:0
"
);
expect
(
data
[
i
].
formVisibleNotify
).
assertEqual
(
1
);
expect
(
data
[
i
].
formVisibleNotify
).
assertEqual
(
0
);
expect
(
data
[
i
].
defaultDimension
).
assertEqual
(
1
);
expect
(
data
[
i
].
defaultDimension
).
assertEqual
(
1
);
expect
(
data
[
i
].
supportDimensions
[
0
]).
assertEqual
(
1
);
expect
(
data
[
i
].
supportDimensions
[
0
]).
assertEqual
(
1
);
expect
(
data
[
i
].
supportDimensions
[
1
]).
assertEqual
(
2
);
expect
(
data
[
i
].
supportDimensions
[
1
]).
assertEqual
(
2
);
...
@@ -52,6 +51,7 @@ describe('getAllFormsInfoTest', function () {
...
@@ -52,6 +51,7 @@ describe('getAllFormsInfoTest', function () {
expect
(
data
[
i
].
metaData
.
customizeData
[
0
].
value
).
assertEqual
(
"
myTest
"
);
expect
(
data
[
i
].
metaData
.
customizeData
[
0
].
value
).
assertEqual
(
"
myTest
"
);
}
}
expect
(
data
[
0
].
scheduledUpdateTime
).
assertEqual
(
"
10:30
"
);
expect
(
data
[
0
].
name
).
assertEqual
(
"
Form_Js001
"
);
expect
(
data
[
0
].
name
).
assertEqual
(
"
Form_Js001
"
);
expect
(
data
[
1
].
name
).
assertEqual
(
"
Form_Js002
"
);
expect
(
data
[
1
].
name
).
assertEqual
(
"
Form_Js002
"
);
expect
(
data
[
0
].
updateDuration
).
assertEqual
(
0
);
expect
(
data
[
0
].
updateDuration
).
assertEqual
(
0
);
...
@@ -86,8 +86,7 @@ describe('getAllFormsInfoTest', function () {
...
@@ -86,8 +86,7 @@ describe('getAllFormsInfoTest', function () {
expect
(
data
[
i
].
colorMode
).
assertEqual
(
-
1
);
expect
(
data
[
i
].
colorMode
).
assertEqual
(
-
1
);
expect
(
data
[
i
].
isDefault
).
assertEqual
(
1
);
expect
(
data
[
i
].
isDefault
).
assertEqual
(
1
);
expect
(
data
[
i
].
updateEnabled
).
assertEqual
(
1
);
expect
(
data
[
i
].
updateEnabled
).
assertEqual
(
1
);
expect
(
data
[
i
].
scheduledUpdateTime
).
assertEqual
(
"
0:0
"
);
expect
(
data
[
i
].
formVisibleNotify
).
assertEqual
(
1
);
expect
(
data
[
i
].
formVisibleNotify
).
assertEqual
(
0
);
expect
(
data
[
i
].
defaultDimension
).
assertEqual
(
1
);
expect
(
data
[
i
].
defaultDimension
).
assertEqual
(
1
);
expect
(
data
[
i
].
supportDimensions
[
0
]).
assertEqual
(
1
);
expect
(
data
[
i
].
supportDimensions
[
0
]).
assertEqual
(
1
);
expect
(
data
[
i
].
supportDimensions
[
1
]).
assertEqual
(
2
);
expect
(
data
[
i
].
supportDimensions
[
1
]).
assertEqual
(
2
);
...
@@ -95,6 +94,7 @@ describe('getAllFormsInfoTest', function () {
...
@@ -95,6 +94,7 @@ describe('getAllFormsInfoTest', function () {
expect
(
data
[
i
].
metaData
.
customizeData
[
0
].
value
).
assertEqual
(
"
myTest
"
);
expect
(
data
[
i
].
metaData
.
customizeData
[
0
].
value
).
assertEqual
(
"
myTest
"
);
}
}
expect
(
data
[
0
].
scheduledUpdateTime
).
assertEqual
(
"
10:30
"
);
expect
(
data
[
0
].
name
).
assertEqual
(
"
Form_Js001
"
);
expect
(
data
[
0
].
name
).
assertEqual
(
"
Form_Js001
"
);
expect
(
data
[
1
].
name
).
assertEqual
(
"
Form_Js002
"
);
expect
(
data
[
1
].
name
).
assertEqual
(
"
Form_Js002
"
);
expect
(
data
[
0
].
updateDuration
).
assertEqual
(
0
);
expect
(
data
[
0
].
updateDuration
).
assertEqual
(
0
);
...
@@ -234,8 +234,7 @@ describe('getAllFormsInfoTest', function () {
...
@@ -234,8 +234,7 @@ describe('getAllFormsInfoTest', function () {
expect
(
data
[
i
].
colorMode
).
assertEqual
(
-
1
);
expect
(
data
[
i
].
colorMode
).
assertEqual
(
-
1
);
expect
(
data
[
i
].
isDefault
).
assertEqual
(
1
);
expect
(
data
[
i
].
isDefault
).
assertEqual
(
1
);
expect
(
data
[
i
].
updateEnabled
).
assertEqual
(
1
);
expect
(
data
[
i
].
updateEnabled
).
assertEqual
(
1
);
expect
(
data
[
i
].
scheduledUpdateTime
).
assertEqual
(
"
0:0
"
);
expect
(
data
[
i
].
formVisibleNotify
).
assertEqual
(
1
);
expect
(
data
[
i
].
formVisibleNotify
).
assertEqual
(
0
);
expect
(
data
[
i
].
defaultDimension
).
assertEqual
(
1
);
expect
(
data
[
i
].
defaultDimension
).
assertEqual
(
1
);
expect
(
data
[
i
].
supportDimensions
[
0
]).
assertEqual
(
1
);
expect
(
data
[
i
].
supportDimensions
[
0
]).
assertEqual
(
1
);
expect
(
data
[
i
].
supportDimensions
[
1
]).
assertEqual
(
2
);
expect
(
data
[
i
].
supportDimensions
[
1
]).
assertEqual
(
2
);
...
@@ -243,6 +242,7 @@ describe('getAllFormsInfoTest', function () {
...
@@ -243,6 +242,7 @@ describe('getAllFormsInfoTest', function () {
expect
(
data
[
i
].
metaData
.
customizeData
[
0
].
value
).
assertEqual
(
"
myTest
"
);
expect
(
data
[
i
].
metaData
.
customizeData
[
0
].
value
).
assertEqual
(
"
myTest
"
);
}
}
expect
(
data
[
0
].
scheduledUpdateTime
).
assertEqual
(
"
10:30
"
);
expect
(
data
[
0
].
name
).
assertEqual
(
"
Form_Js001
"
);
expect
(
data
[
0
].
name
).
assertEqual
(
"
Form_Js001
"
);
expect
(
data
[
1
].
name
).
assertEqual
(
"
Form_Js002
"
);
expect
(
data
[
1
].
name
).
assertEqual
(
"
Form_Js002
"
);
expect
(
data
[
0
].
updateDuration
).
assertEqual
(
0
);
expect
(
data
[
0
].
updateDuration
).
assertEqual
(
0
);
...
@@ -280,8 +280,7 @@ describe('getAllFormsInfoTest', function () {
...
@@ -280,8 +280,7 @@ describe('getAllFormsInfoTest', function () {
expect
(
data
[
i
].
colorMode
).
assertEqual
(
-
1
);
expect
(
data
[
i
].
colorMode
).
assertEqual
(
-
1
);
expect
(
data
[
i
].
isDefault
).
assertEqual
(
1
);
expect
(
data
[
i
].
isDefault
).
assertEqual
(
1
);
expect
(
data
[
i
].
updateEnabled
).
assertEqual
(
1
);
expect
(
data
[
i
].
updateEnabled
).
assertEqual
(
1
);
expect
(
data
[
i
].
scheduledUpdateTime
).
assertEqual
(
"
0:0
"
);
expect
(
data
[
i
].
formVisibleNotify
).
assertEqual
(
1
);
expect
(
data
[
i
].
formVisibleNotify
).
assertEqual
(
0
);
expect
(
data
[
i
].
defaultDimension
).
assertEqual
(
1
);
expect
(
data
[
i
].
defaultDimension
).
assertEqual
(
1
);
expect
(
data
[
i
].
supportDimensions
[
0
]).
assertEqual
(
1
);
expect
(
data
[
i
].
supportDimensions
[
0
]).
assertEqual
(
1
);
expect
(
data
[
i
].
supportDimensions
[
1
]).
assertEqual
(
2
);
expect
(
data
[
i
].
supportDimensions
[
1
]).
assertEqual
(
2
);
...
@@ -289,6 +288,7 @@ describe('getAllFormsInfoTest', function () {
...
@@ -289,6 +288,7 @@ describe('getAllFormsInfoTest', function () {
expect
(
data
[
i
].
metaData
.
customizeData
[
0
].
value
).
assertEqual
(
"
myTest
"
);
expect
(
data
[
i
].
metaData
.
customizeData
[
0
].
value
).
assertEqual
(
"
myTest
"
);
}
}
expect
(
data
[
0
].
scheduledUpdateTime
).
assertEqual
(
"
10:30
"
);
expect
(
data
[
0
].
name
).
assertEqual
(
"
Form_Js001
"
);
expect
(
data
[
0
].
name
).
assertEqual
(
"
Form_Js001
"
);
expect
(
data
[
1
].
name
).
assertEqual
(
"
Form_Js002
"
);
expect
(
data
[
1
].
name
).
assertEqual
(
"
Form_Js002
"
);
expect
(
data
[
0
].
updateDuration
).
assertEqual
(
0
);
expect
(
data
[
0
].
updateDuration
).
assertEqual
(
0
);
...
@@ -543,8 +543,7 @@ describe('getAllFormsInfoTest', function () {
...
@@ -543,8 +543,7 @@ describe('getAllFormsInfoTest', function () {
expect
(
data
[
i
].
colorMode
).
assertEqual
(
-
1
);
expect
(
data
[
i
].
colorMode
).
assertEqual
(
-
1
);
expect
(
data
[
i
].
isDefault
).
assertEqual
(
1
);
expect
(
data
[
i
].
isDefault
).
assertEqual
(
1
);
expect
(
data
[
i
].
updateEnabled
).
assertEqual
(
1
);
expect
(
data
[
i
].
updateEnabled
).
assertEqual
(
1
);
expect
(
data
[
i
].
scheduledUpdateTime
).
assertEqual
(
"
0:0
"
);
expect
(
data
[
i
].
formVisibleNotify
).
assertEqual
(
1
);
expect
(
data
[
i
].
formVisibleNotify
).
assertEqual
(
0
);
expect
(
data
[
i
].
defaultDimension
).
assertEqual
(
1
);
expect
(
data
[
i
].
defaultDimension
).
assertEqual
(
1
);
expect
(
data
[
i
].
supportDimensions
[
0
]).
assertEqual
(
1
);
expect
(
data
[
i
].
supportDimensions
[
0
]).
assertEqual
(
1
);
expect
(
data
[
i
].
supportDimensions
[
1
]).
assertEqual
(
2
);
expect
(
data
[
i
].
supportDimensions
[
1
]).
assertEqual
(
2
);
...
@@ -552,6 +551,7 @@ describe('getAllFormsInfoTest', function () {
...
@@ -552,6 +551,7 @@ describe('getAllFormsInfoTest', function () {
expect
(
data
[
i
].
metaData
.
customizeData
[
0
].
value
).
assertEqual
(
"
myTest
"
);
expect
(
data
[
i
].
metaData
.
customizeData
[
0
].
value
).
assertEqual
(
"
myTest
"
);
}
}
expect
(
data
[
0
].
scheduledUpdateTime
).
assertEqual
(
"
10:30
"
);
expect
(
data
[
0
].
name
).
assertEqual
(
"
Form_Js001
"
);
expect
(
data
[
0
].
name
).
assertEqual
(
"
Form_Js001
"
);
expect
(
data
[
1
].
name
).
assertEqual
(
"
Form_Js002
"
);
expect
(
data
[
1
].
name
).
assertEqual
(
"
Form_Js002
"
);
expect
(
data
[
0
].
updateDuration
).
assertEqual
(
0
);
expect
(
data
[
0
].
updateDuration
).
assertEqual
(
0
);
...
@@ -590,8 +590,7 @@ describe('getAllFormsInfoTest', function () {
...
@@ -590,8 +590,7 @@ describe('getAllFormsInfoTest', function () {
expect
(
data
[
i
].
colorMode
).
assertEqual
(
-
1
);
expect
(
data
[
i
].
colorMode
).
assertEqual
(
-
1
);
expect
(
data
[
i
].
isDefault
).
assertEqual
(
1
);
expect
(
data
[
i
].
isDefault
).
assertEqual
(
1
);
expect
(
data
[
i
].
updateEnabled
).
assertEqual
(
1
);
expect
(
data
[
i
].
updateEnabled
).
assertEqual
(
1
);
expect
(
data
[
i
].
scheduledUpdateTime
).
assertEqual
(
"
0:0
"
);
expect
(
data
[
i
].
formVisibleNotify
).
assertEqual
(
1
);
expect
(
data
[
i
].
formVisibleNotify
).
assertEqual
(
0
);
expect
(
data
[
i
].
defaultDimension
).
assertEqual
(
1
);
expect
(
data
[
i
].
defaultDimension
).
assertEqual
(
1
);
expect
(
data
[
i
].
supportDimensions
[
0
]).
assertEqual
(
1
);
expect
(
data
[
i
].
supportDimensions
[
0
]).
assertEqual
(
1
);
expect
(
data
[
i
].
supportDimensions
[
1
]).
assertEqual
(
2
);
expect
(
data
[
i
].
supportDimensions
[
1
]).
assertEqual
(
2
);
...
@@ -599,6 +598,7 @@ describe('getAllFormsInfoTest', function () {
...
@@ -599,6 +598,7 @@ describe('getAllFormsInfoTest', function () {
expect
(
data
[
i
].
metaData
.
customizeData
[
0
].
value
).
assertEqual
(
"
myTest
"
);
expect
(
data
[
i
].
metaData
.
customizeData
[
0
].
value
).
assertEqual
(
"
myTest
"
);
}
}
expect
(
data
[
0
].
scheduledUpdateTime
).
assertEqual
(
"
10:30
"
);
expect
(
data
[
0
].
name
).
assertEqual
(
"
Form_Js001
"
);
expect
(
data
[
0
].
name
).
assertEqual
(
"
Form_Js001
"
);
expect
(
data
[
1
].
name
).
assertEqual
(
"
Form_Js002
"
);
expect
(
data
[
1
].
name
).
assertEqual
(
"
Form_Js002
"
);
expect
(
data
[
0
].
updateDuration
).
assertEqual
(
0
);
expect
(
data
[
0
].
updateDuration
).
assertEqual
(
0
);
...
...
aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestservicea/src/main/config.json
浏览文件 @
748548ba
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
"updateEnabled"
:
true
,
"updateEnabled"
:
true
,
"scheduledUpdateTime"
:
"10:30"
,
"scheduledUpdateTime"
:
"10:30"
,
"jsComponentName"
:
"card"
,
"jsComponentName"
:
"card"
,
"formVisibleNotify"
:
fals
e
,
"formVisibleNotify"
:
tru
e
,
"metaData"
:
{
"metaData"
:
{
"customizeData"
:
[
"customizeData"
:
[
{
{
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
"updateEnabled"
:
true
,
"updateEnabled"
:
true
,
"updateDuration"
:
1
,
"updateDuration"
:
1
,
"jsComponentName"
:
"card"
,
"jsComponentName"
:
"card"
,
"formVisibleNotify"
:
fals
e
,
"formVisibleNotify"
:
tru
e
,
"metaData"
:
{
"metaData"
:
{
"customizeData"
:
[
"customizeData"
:
[
{
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录