Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
3e0a7bff
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看板
未验证
提交
3e0a7bff
编写于
7月 18, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 18, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4292 XTS元能力失败用例适配
Merge pull request !4292 from chengxingzhen/master
上级
9b94a21d
15a44974
变更
16
展开全部
隐藏空白更改
内联
并排
Showing
16 changed file
with
371 addition
and
759 deletion
+371
-759
ability/ability_runtime/abilitymanager/actsamscallbackfifthscene/src/main/js/test/MangerAbilityJsunit.test.js
...ckfifthscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-1
ability/ability_runtime/abilitymanager/actsamscallbackfirstscene/src/main/js/test/MangerAbilityJsunit.test.js
...ckfirstscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-1
ability/ability_runtime/abilitymanager/actsamscallbackfourthscene/src/main/js/test/MangerAbilityJsunit.test.js
...kfourthscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-1
ability/ability_runtime/abilitymanager/actsamscallbacksecondscene/src/main/js/test/MangerAbilityJsunit.test.js
...ksecondscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-1
ability/ability_runtime/abilitymanager/actsamscallbackthirdscene/src/main/js/test/MangerAbilityJsunit.test.js
...ckthirdscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-1
ability/ability_runtime/abilitymanager/actsamstestfifthscene/src/main/js/test/MangerAbilityJsunit.test.js
...stfifthscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-1
ability/ability_runtime/abilitymanager/actsamstestfirstscene/src/main/js/test/MangerAbilityJsunit.test.js
...stfirstscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-1
ability/ability_runtime/abilitymanager/actsamstestfourthscene/src/main/js/test/MangerAbilityJsunit.test.js
...tfourthscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-1
ability/ability_runtime/abilitymanager/actsamstestsecondscene/src/main/js/test/MangerAbilityJsunit.test.js
...tsecondscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-1
ability/ability_runtime/abilitymanager/actsamstestthirdscene/src/main/js/test/MangerAbilityJsunit.test.js
...stthirdscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-1
ability/ability_runtime/actsfwkdataaccessortest/actsfwkdataaccessortest/entry/src/main/js/test/DataAbilityHelperJsSt.test.js
...test/entry/src/main/js/test/DataAbilityHelperJsSt.test.js
+1
-0
ability/ability_runtime/amscontextualinforquery/actsamsstaticinfomationquerytest/entry/src/main/ets/test/Ability.test.ets
...omationquerytest/entry/src/main/ets/test/Ability.test.ets
+1
-1
ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
...ytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
+323
-717
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formgetformsinfotest/formsoneandonetest/entry/src/main/ets/MainAbility/test/GetAllFormsInfo.test.ets
...ry/src/main/ets/MainAbility/test/GetAllFormsInfo.test.ets
+13
-11
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formgetformsinfotest/formsoneandtwotest/entry/src/main/ets/MainAbility/test/GetAllFormsInfo.test.ets
...ry/src/main/ets/MainAbility/test/GetAllFormsInfo.test.ets
+17
-15
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formgetformsinfotest/formsoneandzerotest/entry/src/main/ets/MainAbility/test/GetAllFormsInfo.test.ets
...ry/src/main/ets/MainAbility/test/GetAllFormsInfo.test.ets
+6
-5
未找到文件。
ability/ability_runtime/abilitymanager/actsamscallbackfifthscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
3e0a7bff
...
...
@@ -132,7 +132,7 @@ export default function ActsAmsCallBackFifthScene() {
expect
(
typeof
(
info
[
i
].
processName
)).
assertEqual
(
"
string
"
);
expect
(
info
[
i
].
processName
.
length
).
assertLarger
(
0
);
expect
(
Array
.
isArray
(
info
[
i
].
bundleNames
)).
assertEqual
(
true
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Equal
(
0
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Larger
(
0
);
expect
(
typeof
(
info
[
i
].
uid
)).
assertEqual
(
"
number
"
);
expect
(
info
[
i
].
uid
).
assertLarger
(
0
);
...
...
ability/ability_runtime/abilitymanager/actsamscallbackfirstscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
3e0a7bff
...
...
@@ -76,7 +76,7 @@ export default function ActsAmsCallBackFirstScene() {
expect
(
typeof
(
info
[
i
].
processName
)).
assertEqual
(
"
string
"
);
expect
(
info
[
i
].
processName
.
length
).
assertLarger
(
0
);
expect
(
Array
.
isArray
(
info
[
i
].
bundleNames
)).
assertEqual
(
true
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Equal
(
0
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Larger
(
0
);
expect
(
typeof
(
info
[
i
].
uid
)).
assertEqual
(
"
number
"
);
expect
(
info
[
i
].
uid
).
assertLarger
(
0
);
...
...
ability/ability_runtime/abilitymanager/actsamscallbackfourthscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
3e0a7bff
...
...
@@ -127,7 +127,7 @@ export default function ActsAmsCallBackFourthScene() {
expect
(
typeof
(
info
[
i
].
processName
)).
assertEqual
(
"
string
"
);
expect
(
info
[
i
].
processName
.
length
).
assertLarger
(
0
);
expect
(
Array
.
isArray
(
info
[
i
].
bundleNames
)).
assertEqual
(
true
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Equal
(
0
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Larger
(
0
);
expect
(
typeof
(
info
[
i
].
uid
)).
assertEqual
(
"
number
"
);
expect
(
info
[
i
].
uid
).
assertLarger
(
0
);
...
...
ability/ability_runtime/abilitymanager/actsamscallbacksecondscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
3e0a7bff
...
...
@@ -93,7 +93,7 @@ export default function ActsAmsCallBackSecondScene() {
expect
(
typeof
(
info
[
i
].
processName
)).
assertEqual
(
"
string
"
);
expect
(
info
[
i
].
processName
.
length
).
assertLarger
(
0
);
expect
(
Array
.
isArray
(
info
[
i
].
bundleNames
)).
assertEqual
(
true
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Equal
(
0
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Larger
(
0
);
expect
(
typeof
(
info
[
i
].
uid
)).
assertEqual
(
"
number
"
);
expect
(
info
[
i
].
uid
).
assertLarger
(
0
);
...
...
ability/ability_runtime/abilitymanager/actsamscallbackthirdscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
3e0a7bff
...
...
@@ -87,7 +87,7 @@ export default function ActsAmsCallBackThirdScene() {
expect
(
typeof
(
info
[
i
].
processName
)).
assertEqual
(
"
string
"
);
expect
(
info
[
i
].
processName
.
length
).
assertLarger
(
0
);
expect
(
Array
.
isArray
(
info
[
i
].
bundleNames
)).
assertEqual
(
true
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Equal
(
0
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Larger
(
0
);
expect
(
typeof
(
info
[
i
].
uid
)).
assertEqual
(
"
number
"
);
expect
(
info
[
i
].
uid
).
assertLarger
(
0
);
...
...
ability/ability_runtime/abilitymanager/actsamstestfifthscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
3e0a7bff
...
...
@@ -144,7 +144,7 @@ export default function ActsAmsTestFifthScene() {
expect
(
typeof
(
info
[
i
].
processName
)).
assertEqual
(
"
string
"
);
expect
(
info
[
i
].
processName
.
length
).
assertLarger
(
0
);
expect
(
Array
.
isArray
(
info
[
i
].
bundleNames
)).
assertEqual
(
true
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Equal
(
0
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Larger
(
0
);
expect
(
typeof
(
info
[
i
].
uid
)).
assertEqual
(
"
number
"
);
expect
(
info
[
i
].
uid
).
assertLarger
(
0
);
...
...
ability/ability_runtime/abilitymanager/actsamstestfirstscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
3e0a7bff
...
...
@@ -78,7 +78,7 @@ export default function ActsAmsTestFirstScene() {
expect
(
typeof
(
info
[
i
].
processName
)).
assertEqual
(
"
string
"
);
expect
(
info
[
i
].
processName
.
length
).
assertLarger
(
0
);
expect
(
Array
.
isArray
(
info
[
i
].
bundleNames
)).
assertEqual
(
true
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Equal
(
0
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Larger
(
0
);
expect
(
typeof
(
info
[
i
].
uid
)).
assertEqual
(
"
number
"
);
expect
(
info
[
i
].
uid
).
assertLarger
(
0
);
...
...
ability/ability_runtime/abilitymanager/actsamstestfourthscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
3e0a7bff
...
...
@@ -144,7 +144,7 @@ export default function ActsAmsTestFourthScene() {
expect
(
typeof
(
info
[
i
].
processName
)).
assertEqual
(
"
string
"
);
expect
(
info
[
i
].
processName
.
length
).
assertLarger
(
0
);
expect
(
Array
.
isArray
(
info
[
i
].
bundleNames
)).
assertEqual
(
true
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Equal
(
0
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Larger
(
0
);
expect
(
typeof
(
info
[
i
].
uid
)).
assertEqual
(
"
number
"
);
expect
(
info
[
i
].
uid
).
assertLarger
(
0
);
...
...
ability/ability_runtime/abilitymanager/actsamstestsecondscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
3e0a7bff
...
...
@@ -100,7 +100,7 @@ export default function ActsAmsTestSecondScene() {
expect
(
typeof
(
info
[
i
].
processName
)).
assertEqual
(
"
string
"
);
expect
(
info
[
i
].
processName
.
length
).
assertLarger
(
0
);
expect
(
Array
.
isArray
(
info
[
i
].
bundleNames
)).
assertEqual
(
true
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Equal
(
0
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Larger
(
0
);
expect
(
typeof
(
info
[
i
].
uid
)).
assertEqual
(
"
number
"
);
expect
(
info
[
i
].
uid
).
assertLarger
(
0
);
...
...
ability/ability_runtime/abilitymanager/actsamstestthirdscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
3e0a7bff
...
...
@@ -102,7 +102,7 @@ export default function ActsAmsTestThirdScene() {
expect
(
typeof
(
info
[
i
].
processName
)).
assertEqual
(
"
string
"
);
expect
(
info
[
i
].
processName
.
length
).
assertLarger
(
0
);
expect
(
Array
.
isArray
(
info
[
i
].
bundleNames
)).
assertEqual
(
true
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Equal
(
0
);
expect
(
info
[
i
].
bundleNames
.
length
).
assert
Larger
(
0
);
expect
(
typeof
(
info
[
i
].
uid
)).
assertEqual
(
"
number
"
);
expect
(
info
[
i
].
uid
).
assertLarger
(
0
);
...
...
ability/ability_runtime/actsfwkdataaccessortest/actsfwkdataaccessortest/entry/src/main/js/test/DataAbilityHelperJsSt.test.js
浏览文件 @
3e0a7bff
...
...
@@ -35,6 +35,7 @@ describe('ActsDataAbilityHelperTest', function () {
console
.
debug
(
'
ACTS_beforeAll DAHelper ====>:
'
+
DAHelper
+
"
,JSON.
"
+
JSON
.
stringify
(
DAHelper
));
if
(
DAHelper
==
null
){
console
.
debug
(
'
ACTS_beforeAll DAHelper ====>: DAHelper == null
'
);
return
;
}
}
catch
(
err
)
{
console
.
error
(
'
=ACTS_beforeAll acquireDataAbilityHelper catch(err)====>:
'
+
err
);
...
...
ability/ability_runtime/amscontextualinforquery/actsamsstaticinfomationquerytest/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
3e0a7bff
...
...
@@ -212,7 +212,7 @@ export default function abilityTest(abilityContext) {
expect(data.formEnabled).assertEqual(false);
expect(data.type).assertEqual(1);
expect(data.subType).assertEqual(0);
expect(data.orientation).assertEqual(
0
);
expect(data.orientation).assertEqual(
2
);
expect(data.launchMode).assertEqual(0);
expect(data.permissions.length).assertEqual(0);
expect(data.deviceTypes[0]).assertEqual("phone");
...
...
ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
浏览文件 @
3e0a7bff
此差异已折叠。
点击以展开。
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formgetformsinfotest/formsoneandonetest/entry/src/main/ets/MainAbility/test/GetAllFormsInfo.test.ets
浏览文件 @
3e0a7bff
...
...
@@ -62,16 +62,17 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
tempDataC = dataC[0];
expect(error.code).assertEqual(ERR_OK_CODE);
expect(error.message).assertEqual(ERR_OK);
done();
console.log(`==========${callbackName} ${describeName} end==========`);
});
await sleep(2000)
checkDataB(tempDataB)
checkDataC(tempDataC)
done();
} catch (error) {
console.log(`${callbackName} exception caught: ${JSON.stringify(error)})`);
console.log(`${callbackName} should not reach here`);
expect().assertFail();
done();
}
});
...
...
@@ -110,6 +111,7 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
console.log(`${promiseName} exception caught: ${JSON.stringify(error)})`);
console.log(`${promiseName} should not reach here`);
expect().assertFail();
done();
}
});
function checkDataB(formInfo){
...
...
@@ -121,9 +123,9 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
expect(FormInfo.FormType.JS).assertEqual(formInfo.type)
expect('card_b').assertEqual(formInfo.jsComponentName)
expect(FormInfo.ColorMode.MODE_AUTO).assertEqual(formInfo.colorMode)
expect(
1).assertEqual(formInfo.isDefault
)
expect(
1).assertEqual(formInfo.updateEnabled
)
expect(
1).assertEqual(formInfo.formVisibleNotify
)
expect(
formInfo.isDefault).assertTrue(
)
expect(
formInfo.updateEnabled).assertTrue(
)
expect(
formInfo.formVisibleNotify).assertTrue(
)
expect(undefined).assertEqual(formInfo.relatedBundleName)
expect("abilityb").assertEqual(formInfo.formConfigAbility)
expect(3).assertEqual(formInfo.updateDuration)
...
...
@@ -131,8 +133,8 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
expect('10:30').assertEqual(formInfo.scheduledUpdateTime)
expect(1).assertEqual(formInfo.supportDimensions[0])
expect(2).assertEqual(formInfo.supportDimensions[1])
expect('originWidgetNameB').assertEqual(formInfo.
metaData.
customizeData[0].name)
expect('valueB').assertEqual(formInfo.
metaData.
customizeData[0].value)
expect('originWidgetNameB').assertEqual(formInfo.customizeData[0].name)
expect('valueB').assertEqual(formInfo.customizeData[0].value)
}
function checkDataC(formInfo){
expect("com.ohos.st.formsystemproviderc").assertEqual(formInfo.bundleName)
...
...
@@ -143,9 +145,9 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
expect(FormInfo.FormType.JS).assertEqual(formInfo.type)
expect('card_c').assertEqual(formInfo.jsComponentName)
expect(FormInfo.ColorMode.MODE_LIGHT).assertEqual(formInfo.colorMode)
expect(
1).assertEqual(formInfo.isDefault
)
expect(
1).assertEqual(formInfo.updateEnabled
)
expect(
1).assertEqual(formInfo.formVisibleNotify
)
expect(
formInfo.isDefault).assertTrue(
)
expect(
formInfo.updateEnabled).assertTrue(
)
expect(
formInfo.formVisibleNotify).assertTrue(
)
expect(undefined).assertEqual(formInfo.relatedBundleName)
expect("abilityc").assertEqual(formInfo.formConfigAbility)
expect(4).assertEqual(formInfo.updateDuration)
...
...
@@ -153,8 +155,8 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
expect(3).assertEqual(formInfo.defaultDimension)
expect(3).assertEqual(formInfo.supportDimensions[0])
expect(4).assertEqual(formInfo.supportDimensions[1])
expect('originWidgetNameC').assertEqual(formInfo.
metaData.
customizeData[0].name)
expect('valueC').assertEqual(formInfo.
metaData.
customizeData[0].value)
expect('originWidgetNameC').assertEqual(formInfo.customizeData[0].name)
expect('valueC').assertEqual(formInfo.customizeData[0].value)
}
});
};
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formgetformsinfotest/formsoneandtwotest/entry/src/main/ets/MainAbility/test/GetAllFormsInfo.test.ets
浏览文件 @
3e0a7bff
...
...
@@ -74,6 +74,7 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
console.log(`${callbackName} exception caught: ${JSON.stringify(error)})`);
console.log(`${callbackName} should not reach here`);
expect().assertFail();
done();
}
});
...
...
@@ -115,6 +116,7 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
console.log(`${promiseName} exception caught: ${JSON.stringify(error)})`);
console.log(`${promiseName} should not reach here`);
expect().assertFail();
done();
}
});
...
...
@@ -127,9 +129,9 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
expect(FormInfo.FormType.JS).assertEqual(formInfo.type)
expect('card_b').assertEqual(formInfo.jsComponentName)
expect(FormInfo.ColorMode.MODE_AUTO).assertEqual(formInfo.colorMode)
expect(
1).assertEqual(formInfo.isDefault
)
expect(
1).assertEqual(formInfo.updateEnabled
)
expect(
1).assertEqual(formInfo.formVisibleNotify
)
expect(
formInfo.isDefault).assertTrue(
)
expect(
formInfo.updateEnabled).assertTrue(
)
expect(
formInfo.formVisibleNotify).assertTrue(
)
expect(undefined).assertEqual(formInfo.relatedBundleName)
expect("abilityb").assertEqual(formInfo.formConfigAbility)
expect(3).assertEqual(formInfo.updateDuration)
...
...
@@ -137,8 +139,8 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
expect('10:30').assertEqual(formInfo.scheduledUpdateTime)
expect(1).assertEqual(formInfo.supportDimensions[0])
expect(2).assertEqual(formInfo.supportDimensions[1])
expect('originWidgetNameB').assertEqual(formInfo.
metaData.
customizeData[0].name)
expect('valueB').assertEqual(formInfo.
metaData.
customizeData[0].value)
expect('originWidgetNameB').assertEqual(formInfo.customizeData[0].name)
expect('valueB').assertEqual(formInfo.customizeData[0].value)
}
function checkDataA1(formInfo){
...
...
@@ -150,9 +152,9 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
expect(FormInfo.FormType.JS).assertEqual(formInfo.type)
expect('card_a01').assertEqual(formInfo.jsComponentName)
expect(FormInfo.ColorMode.MODE_DARK).assertEqual(formInfo.colorMode)
expect(
1).assertEqual(formInfo.isDefault
)
expect(
1).assertEqual(formInfo.updateEnabled
)
expect(
1).assertEqual(formInfo.formVisibleNotify
)
expect(
formInfo.isDefault).assertTrue(
)
expect(
formInfo.updateEnabled).assertTrue(
)
expect(
formInfo.formVisibleNotify).assertTrue(
)
expect(undefined).assertEqual(formInfo.relatedBundleName)
expect("abilitya01").assertEqual(formInfo.formConfigAbility)
expect(1).assertEqual(formInfo.updateDuration)
...
...
@@ -160,8 +162,8 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
expect('5:30').assertEqual(formInfo.scheduledUpdateTime)
expect(1).assertEqual(formInfo.supportDimensions[0])
expect(3).assertEqual(formInfo.supportDimensions[1])
expect('originWidgetNameA01').assertEqual(formInfo.
metaData.
customizeData[0].name)
expect('valueA01').assertEqual(formInfo.
metaData.
customizeData[0].value)
expect('originWidgetNameA01').assertEqual(formInfo.customizeData[0].name)
expect('valueA01').assertEqual(formInfo.customizeData[0].value)
}
function checkDataA2(formInfo){
...
...
@@ -173,9 +175,9 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
expect(FormInfo.FormType.JS).assertEqual(formInfo.type)
expect('card_a02').assertEqual(formInfo.jsComponentName)
expect(FormInfo.ColorMode.MODE_LIGHT).assertEqual(formInfo.colorMode)
expect(
0).assertEqual(formInfo.isDefault
)
expect(
0).assertEqual(formInfo.updateEnabled
)
expect(
0).assertEqual(formInfo.formVisibleNotify
)
expect(
formInfo.isDefault).assertFalse(
)
expect(
formInfo.updateEnabled).assertFalse(
)
expect(
formInfo.formVisibleNotify).assertFalse(
)
expect(undefined).assertEqual(formInfo.relatedBundleName)
expect("abilitya02").assertEqual(formInfo.formConfigAbility)
expect(2).assertEqual(formInfo.updateDuration)
...
...
@@ -185,8 +187,8 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
expect(2).assertEqual(formInfo.supportDimensions[1])
expect(3).assertEqual(formInfo.supportDimensions[2])
expect(4).assertEqual(formInfo.supportDimensions[3])
expect('originWidgetNameA02').assertEqual(formInfo.
metaData.
customizeData[0].name)
expect('valueA02').assertEqual(formInfo.
metaData.
customizeData[0].value)
expect('originWidgetNameA02').assertEqual(formInfo.customizeData[0].name)
expect('valueA02').assertEqual(formInfo.customizeData[0].value)
}
});
};
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formgetformsinfotest/formsoneandzerotest/entry/src/main/ets/MainAbility/test/GetAllFormsInfo.test.ets
浏览文件 @
3e0a7bff
...
...
@@ -68,6 +68,7 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
console.log(`${callbackName} exception caught: ${JSON.stringify(error)})`);
console.log(`${callbackName} should not reach here`);
expect().assertFail();
done();
}
});
...
...
@@ -118,9 +119,9 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
expect(FormInfo.FormType.JS).assertEqual(formInfo.type)
expect('card_b').assertEqual(formInfo.jsComponentName)
expect(FormInfo.ColorMode.MODE_AUTO).assertEqual(formInfo.colorMode)
expect(
1).assertEqual(formInfo.isDefault
)
expect(
1).assertEqual(formInfo.updateEnabled
)
expect(
1).assertEqual(formInfo.formVisibleNotify
)
expect(
formInfo.isDefault).assertTrue(
)
expect(
formInfo.updateEnabled).assertTrue(
)
expect(
formInfo.formVisibleNotify).assertTrue(
)
expect(undefined).assertEqual(formInfo.relatedBundleName)
expect("abilityb").assertEqual(formInfo.formConfigAbility)
expect(3).assertEqual(formInfo.updateDuration)
...
...
@@ -128,8 +129,8 @@ export const getAllFormsInfoTest = (describeName, filterParameter) => {
expect('10:30').assertEqual(formInfo.scheduledUpdateTime)
expect(1).assertEqual(formInfo.supportDimensions[0])
expect(2).assertEqual(formInfo.supportDimensions[1])
expect('originWidgetNameB').assertEqual(formInfo.
metaData.
customizeData[0].name)
expect('valueB').assertEqual(formInfo.
metaData.
customizeData[0].value)
expect('originWidgetNameB').assertEqual(formInfo.customizeData[0].name)
expect('valueB').assertEqual(formInfo.customizeData[0].value)
}
});
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录