Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
cd969835
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看板
未验证
提交
cd969835
编写于
7月 07, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 07, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4168 元能力失败用例整改和编译预警修改
Merge pull request !4168 from chengxingzhen/monthly_20220614
上级
7214132f
ed73b54f
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
342 addition
and
111 deletion
+342
-111
ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/VerificationTest.ets
...coverhaptest/entry/src/main/ets/test/VerificationTest.ets
+2
-1
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formacquiretest/entry/src/main/ets/MainAbility/test/FmsAcquireForm.test.ets
...try/src/main/ets/MainAbility/test/FmsAcquireForm.test.ets
+85
-35
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formacquiretest2/entry/src/main/ets/MainAbility/test/FmsAcquireForm2.test.ets
...ry/src/main/ets/MainAbility/test/FmsAcquireForm2.test.ets
+36
-11
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formdeletetest/entry/src/main/ets/MainAbility/test/FmsDeleteForm.test.ets
...ntry/src/main/ets/MainAbility/test/FmsDeleteForm.test.ets
+40
-5
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formfuzztest/entry/src/main/ets/MainAbility/test/GetFormsInfoFuzz.test.ets
...y/src/main/ets/MainAbility/test/GetFormsInfoFuzz.test.ets
+2
-2
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
-2
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formreleasetest/entry/src/main/ets/MainAbility/test/FmsReleaseForm.test.ets
...try/src/main/ets/MainAbility/test/FmsReleaseForm.test.ets
+30
-4
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formstatetest_disable/entry/src/main/ets/MainAbility/test/FmsFormStateDisable.test.ets
...rc/main/ets/MainAbility/test/FmsFormStateDisable.test.ets
+46
-18
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formstatetest_enable/entry/src/main/ets/MainAbility/test/FmsFormStateEnable.test.ets
...src/main/ets/MainAbility/test/FmsFormStateEnable.test.ets
+58
-28
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formstatetest_notifyinvisible/entry/src/main/ets/MainAbility/test/FmsFormStateNotifyInvisible.test.ets
...ets/MainAbility/test/FmsFormStateNotifyInvisible.test.ets
+9
-3
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formstatetest_notifyinvisible2/entry/src/main/ets/MainAbility/test/FmsFormStateNotifyInvisible2.test.ets
...ts/MainAbility/test/FmsFormStateNotifyInvisible2.test.ets
+28
-2
未找到文件。
ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/VerificationTest.ets
浏览文件 @
cd969835
...
...
@@ -183,7 +183,8 @@ export default function verificationTest(abilityContext){
screenDensity = data.parameters.screenDensity
}
if (data.event == "Stage_MainAbility4_onDestroy") {
expect(screenDensity).assertEqual(240);
expect(typeof screenDensity).assertEqual("number");
expect(screenDensity).assertLarger(0);
commonEvent.unsubscribe(subscriber, UnSubscribeInfoCallback)
}
}
...
...
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formacquiretest/entry/src/main/ets/MainAbility/test/FmsAcquireForm.test.ets
浏览文件 @
cd969835
...
...
@@ -83,7 +83,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_0200 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_0200 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
done
()
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_0200 featureAbility.startAbility end`
);
await
sleepTime
(
3000
)
...
...
@@ -123,7 +124,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_0300 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_0300 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
done
()
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_0300 featureAbility.startAbility end`
);
await
sleepTime
(
3000
)
...
...
@@ -163,7 +165,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_0400 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_0400 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
done
()
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_0400 featureAbility.startAbility end`
);
await
sleepTime
(
3000
)
...
...
@@ -203,7 +206,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_0500 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_0500 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
done
()
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_0500 featureAbility.startAbility end`
);
await
sleepTime
(
3000
)
...
...
@@ -243,7 +247,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_0600 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_0600 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
done
()
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_0600 featureAbility.startAbility end`
);
await
sleepTime
(
3000
)
...
...
@@ -283,7 +288,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_0700 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_0700 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
done
()
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_0700 featureAbility.startAbility end`
);
await
sleepTime
(
3000
)
...
...
@@ -324,7 +330,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_1000 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_1000 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
done
()
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_1000 featureAbility.startAbility end`
);
await
sleepTime
(
3000
)
...
...
@@ -386,6 +393,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_acquireForm_1100 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
}
...
...
@@ -410,11 +418,10 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_1100 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_1100 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
done
()
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_1100 featureAbility.startAbility end`
);
await
sleepTime
(
3000
)
done
()
});
/**
...
...
@@ -471,6 +478,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_acquireForm_1200 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
}
...
...
@@ -496,6 +504,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_1200 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_1200 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_1200 featureAbility.startAbility end`
);
await
sleepTime
(
3000
)
...
...
@@ -520,8 +530,8 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_acquireForm_1400 publish'
+
JSON
.
stringify
(
err
));
});
done
()
});
}
async
function
onAcquiredCallBack
(
_
,
data
)
{
console
.
info
(
"!!!====>FMS_acquireForm_1400 onAcquiredCallBack data:====>"
+
JSON
.
stringify
(
data
));
...
...
@@ -549,6 +559,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_1400 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_1400 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_1400 featureAbility.startAbility again end`
);
await
sleepTime
(
3000
)
...
...
@@ -575,6 +587,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_1400 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_1400 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_1400 featureAbility.startAbility end`
);
});
...
...
@@ -601,9 +615,9 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_acquireForm_1500 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
done
()
}
async
function
onAcquiredCallBack
(
_
,
data
)
{
console
.
info
(
"!!!====>FMS_acquireForm_1500 onAcquiredCallBack data:====>"
+
JSON
.
stringify
(
data
));
...
...
@@ -632,6 +646,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_1500 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_1500 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_1500 featureAbility.startAbility again end`
);
}
...
...
@@ -676,7 +692,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_1500 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_1500 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
done
()
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_1500 featureAbility.startAbility end`
);
await
sleepTime
(
3000
)
...
...
@@ -734,6 +751,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_1600_normal1 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_1600_normal1 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_1600_normal1 featureAbility.startAbility end`
);
...
...
@@ -783,6 +802,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_1600_normal2 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_1600_normal2 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_1600_normal2 featureAbility.startAbility end`
);
...
...
@@ -834,6 +855,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_1600_Temp1 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_1600_Temp1 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_1600_Temp1 featureAbility.startAbility end`
);
...
...
@@ -886,6 +909,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_1600_Temp2 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_1600_Temp2 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_1600_Temp2 featureAbility.startAbility end`
);
...
...
@@ -946,6 +971,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_1800_normal1 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_1800_normal1 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_1800_normal1 featureAbility.startAbility end`
);
...
...
@@ -1129,9 +1156,9 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_acquireForm_1900 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
done
()
}
commonEvent
.
subscribe
(
subscriberOnAcquired
,
onAcquiredCallBack
);
...
...
@@ -1163,6 +1190,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_acquireForm_1900 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
}
...
...
@@ -1189,6 +1217,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_1900 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_1900 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_1900 featureAbility.startAbility end`
);
...
...
@@ -1212,8 +1242,8 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_acquireForm_2100 publish'
+
JSON
.
stringify
(
err
));
});
done
()
});
}
async
function
onAcquiredCallBack
(
_
,
data
)
{
console
.
info
(
"!!!====>FMS_acquireForm_2100 onAcquiredCallBack data:====>"
+
JSON
.
stringify
(
data
));
...
...
@@ -1241,6 +1271,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_2100 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_2100 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_2100 featureAbility.startAbility again end`
);
}
...
...
@@ -1265,6 +1297,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_2100 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_2100 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_2100 featureAbility.startAbility end`
);
});
...
...
@@ -1286,8 +1320,8 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_acquireForm_2200 publish'
+
JSON
.
stringify
(
err
));
});
done
()
});
}
commonEvent
.
subscribe
(
subscriberCast
,
onCastCallBack
);
...
...
@@ -1312,6 +1346,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_2200 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_2200 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_2200 featureAbility.startAbility end`
);
});
...
...
@@ -1358,7 +1394,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_2300 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_2300 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
done
()
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_2300 featureAbility.startAbility end`
);
});
...
...
@@ -1409,7 +1446,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_2400 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_2400 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
done
()
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_2400 featureAbility.startAbility again end`
);
}
...
...
@@ -1434,6 +1472,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_2400 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_2400 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_2400 featureAbility.startAbility end`
);
});
...
...
@@ -1480,7 +1520,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_2500 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_2500 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
done
()
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_2500 featureAbility.startAbility end`
);
await
sleep
(
3000
)
...
...
@@ -1502,12 +1543,18 @@ export default function test() {
expect
(
data
.
data
)
.
assertEqual
(
"undefined"
);
commonEvent
.
unsubscribe
(
subscriberCast
,
()
=>
unsubscribeOnCastCallback
(
"FMS_acquireForm_2600"
))
formId1
=
data
.
parameters
.
formId
;
console
.
info
(
"!!!====>FMS_acquireForm_2600 formId1 "
+
formId1
+
" formId2 "
+
formId2
);
if
(
formId1
&&
formId2
)
{
console
.
info
(
"!!!====>FMS_acquireForm_2600 2 formId1 "
+
formId1
+
" formId2 "
+
formId2
);
expect
(
formId1
)
.
assertEqual
(
formId2
);
let
commonEventPublishData
=
{
data
:
formId1
};
commonEvent
.
publish
(
deleteForm_Event
,
()
=>
delPublishCallBack
(
"FMS_acquireForm_2600"
,
done
));
}
else
{
console
.
info
(
"!!!====>FMS_acquireForm_2600 formId1 not equal formId2"
);
expect
()
.
assertFail
();
done
()
}
}
...
...
@@ -1516,6 +1563,7 @@ export default function test() {
expect
(
data
.
event
)
.
assertEqual
(
"FMS_FormOnAcquired_commonEvent"
);
commonEvent
.
unsubscribe
(
subscriberOnAcquired
,
()
=>
unsubscribeOnAcquiredCallback
(
"FMS_acquireForm_2600"
))
formId2
=
data
.
data
;
console
.
info
(
`FMS_acquireForm_2600 featureAbility.startAbility again start`
);
await
featureAbility
.
startAbility
({
want
:
{
...
...
@@ -1537,6 +1585,8 @@ export default function test() {
console
.
info
(
`FMS_acquireForm_2600 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`FMS_acquireForm_2600 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`FMS_acquireForm_2600 featureAbility.startAbility again end`
);
}
...
...
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formacquiretest2/entry/src/main/ets/MainAbility/test/FmsAcquireForm2.test.ets
浏览文件 @
cd969835
...
...
@@ -58,9 +58,11 @@ export default function test() {
console.info("!!!====>FMS_acquireForm_3800 onErrorCallBack data:====>" + JSON.stringify(data));
expect(data.event).assertEqual("FMS_FormOnError_commonEvent");
expect(data.data).assertEqual("invalid params received on operating form.");
commonEvent.unsubscribe(subscriberOnError, () =>
unsubscribeOnErrorCallback("FMS_acquireForm_3800"));
console.info(`FMS_acquireForm_3800 end
`);
commonEvent.unsubscribe(subscriberOnError, () =>
{
console.info(`FMS_acquireForm_3800 unsubscribe callback
`);
done();
});
}
commonEvent.subscribe(subscriberOnError, onErrorCallBack);
console.info(`FMS_acquireForm_3800 featureAbility.startAbility start`);
...
...
@@ -82,6 +84,8 @@ export default function test() {
console.info(`FMS_acquireForm_3800 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`);
}).catch((err: any) => {
console.info(`FMS_acquireForm_3800 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`);
expect().assertFail();
done();
});
console.info(`FMS_acquireForm_3800 featureAbility.startAbility end`);
});
...
...
@@ -96,9 +100,10 @@ export default function test() {
console.info("!!!====>FMS_acquireForm_3900 onErrorCallBack data:====>" + JSON.stringify(data));
expect(data.event).assertEqual("FMS_FormOnError_commonEvent");
expect(data.data).assertEqual("invalid params received on operating form.");
commonEvent.unsubscribe(subscriberOnError, () =>
unsubscribeOnErrorCallback("FMS_acquireForm_3900"));
console.info(`FMS_acquireForm_3900 end
`);
commonEvent.unsubscribe(subscriberOnError, () =>
{
console.info(`FMS_acquireForm_3900 unsubscribe callback
`);
done();
});
}
commonEvent.subscribe(subscriberOnError, onErrorCallBack);
console.info(`FMS_acquireForm_3900 featureAbility.startAbility start`);
...
...
@@ -120,6 +125,8 @@ export default function test() {
console.info(`FMS_acquireForm_3900 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`);
}).catch((err: any) => {
console.info(`FMS_acquireForm_3900 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`);
expect().assertFail();
done();
});
console.info(`FMS_acquireForm_3900 featureAbility.startAbility end`);
});
...
...
@@ -145,6 +152,7 @@ export default function test() {
};
commonEvent.publish(deleteForm_Event, commonEventPublishData, (err) => {
console.info('FMS_acquireForm_4000 publish' + JSON.stringify(err));
done()
});
}
function onAcquiredCallBack(_, data) {
...
...
@@ -174,6 +182,8 @@ export default function test() {
console.info(`FMS_acquireForm_4000 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`);
}).catch((err: any) => {
console.info(`FMS_acquireForm_4000 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`);
expect().assertFail();
done();
});
console.info(`FMS_acquireForm_4000 featureAbility.startAbility again end`);
}
...
...
@@ -202,6 +212,8 @@ export default function test() {
console.info(`FMS_acquireForm_4000 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`);
}).catch((err: any) => {
console.info(`FMS_acquireForm_4000 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`);
expect().assertFail();
done();
});
console.info(`FMS_acquireForm_4000 featureAbility.startAbility end`);
});
...
...
@@ -273,6 +285,8 @@ export default function test() {
console.info(`FMS_acquireForm_4200 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`);
}).catch((err: any) => {
console.info(`FMS_acquireForm_4200 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`);
expect().assertFail();
done();
});
console.info(`FMS_acquireForm_4200 featureAbility.startAbility end`);
...
...
@@ -313,6 +327,8 @@ export default function test() {
console.info(`FMS_acquireForm_4300 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`);
}).catch((err: any) => {
console.info(`FMS_acquireForm_4300 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`);
expect().assertFail();
done();
});
console.info(`FMS_acquireForm_4300 featureAbility.startAbility end`);
});
...
...
@@ -327,10 +343,12 @@ export default function test() {
function onErrorCallBack(_, data) {
console.info("!!!====>FMS_acquireForm_4400 onErrorCallBack data:====>" + JSON.stringify(data));
expect(data.event).assertEqual("FMS_FormOnError_commonEvent");
commonEvent.unsubscribe(subscriberOnError, () => unsubscribeOnErrorCallback("FMS_acquireForm_4400"));
expect(data.data).assertEqual("the dimension not exist in the form.");
console.info(`FMS_acquireForm_4400 end`);
commonEvent.unsubscribe(subscriberOnError, () => {
console.info(`FMS_acquireForm_4400 unsubscribe callback`);
done();
});
}
commonEvent.subscribe(subscriberOnError, onErrorCallBack);
console.info(`FMS_acquireForm_4400 featureAbility.startAbility start`);
...
...
@@ -353,6 +371,8 @@ export default function test() {
console.info(`FMS_acquireForm_4400 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`);
}).catch((err: any) => {
console.info(`FMS_acquireForm_4400 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`);
expect().assertFail();
done();
});
console.info(`FMS_acquireForm_4400 featureAbility.startAbility end`);
});
...
...
@@ -375,6 +395,7 @@ export default function test() {
};
commonEvent.publish(deleteForm_Event, commonEventPublishData,(err) => {
console.info('FMS_acquireForm_4900 publish' + JSON.stringify(err));
done()
});
}
function onAcquiredCallBack(_, data) {
...
...
@@ -404,6 +425,8 @@ export default function test() {
console.info(`FMS_acquireForm_4900 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`);
}).catch((err: any) => {
console.info(`FMS_acquireForm_4900 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`);
expect().assertFail();
done();
});
console.info(`FMS_acquireForm_4900 featureAbility.startAbility again end`);
}
...
...
@@ -428,6 +451,8 @@ export default function test() {
console.info(`FMS_acquireForm_4900 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`);
}).catch((err: any) => {
console.info(`FMS_acquireForm_4900 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`);
expect().assertFail();
done();
});
console.info(`FMS_acquireForm_4900 featureAbility.startAbility end`);
});
...
...
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formdeletetest/entry/src/main/ets/MainAbility/test/FmsDeleteForm.test.ets
浏览文件 @
cd969835
...
...
@@ -69,6 +69,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_deleteForm_0200 publish'
+
JSON
.
stringify
(
err
));
done
()
});
};
commonEvent
.
subscribe
(
subscriberOnDeleted
,
onDeletedCallback
);
...
...
@@ -100,6 +101,8 @@ export default function test() {
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`${tcNumber} featureAbility.startAbility again end`
);
};
...
...
@@ -147,6 +150,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_deleteForm_0300 publish'
+
JSON
.
stringify
(
err
));
done
()
});
};
commonEvent
.
subscribe
(
subscriberOnDeleted
,
onDeletedCallback
);
...
...
@@ -172,6 +176,8 @@ export default function test() {
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`${tcNumber} featureAbility.startAbility end`
);
});
...
...
@@ -195,6 +201,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_deleteForm_0400 publish'
+
JSON
.
stringify
(
err
));
done
()
});
};
commonEvent
.
subscribe
(
subscriberOnDeleted
,
onDeletedCallback
);
...
...
@@ -220,6 +227,8 @@ export default function test() {
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`${tcNumber} featureAbility.startAbility end`
);
});
...
...
@@ -245,6 +254,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_deleteForm_0500 publish'
+
JSON
.
stringify
(
err
));
done
()
});
};
commonEvent
.
subscribe
(
subscriberOnDeleted
,
onDeletedCallback
);
...
...
@@ -276,6 +286,8 @@ export default function test() {
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`${tcNumber} featureAbility.startAbility again end`
);
};
...
...
@@ -300,6 +312,8 @@ export default function test() {
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`${tcNumber} featureAbility.startAbility end`
);
});
...
...
@@ -419,6 +433,8 @@ export default function test() {
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`${tcNumber} featureAbility.startAbility end`
);
});
...
...
@@ -507,6 +523,8 @@ export default function test() {
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`${tcNumber} featureAbility.startAbility again end`
);
};
...
...
@@ -540,6 +558,8 @@ export default function test() {
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`${tcNumber} featureAbility.startAbility end`
);
});
...
...
@@ -640,6 +660,8 @@ export default function test() {
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`${tcNumber} featureAbility.startAbility again end`
);
};
...
...
@@ -680,6 +702,8 @@ export default function test() {
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`${tcNumber} featureAbility.startAbility end`
);
});
...
...
@@ -707,6 +731,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_deleteForm_0900 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
...
...
@@ -741,6 +766,8 @@ export default function test() {
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`${tcNumber} featureAbility.startAbility again end`
);
};
...
...
@@ -767,6 +794,8 @@ export default function test() {
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`${tcNumber} featureAbility.startAbility end`
);
});
...
...
@@ -810,6 +839,8 @@ export default function test() {
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`${tcNumber} featureAbility.startAbility again end`
);
}
...
...
@@ -936,6 +967,8 @@ export default function test() {
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`${tcNumber} featureAbility.startAbility again end`
);
};
...
...
@@ -969,6 +1002,8 @@ export default function test() {
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
info
(
`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
info
(
`${tcNumber} featureAbility.startAbility end`
);
});
...
...
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formfuzztest/entry/src/main/ets/MainAbility/test/GetFormsInfoFuzz.test.ets
浏览文件 @
cd969835
...
...
@@ -93,8 +93,8 @@ export const getFormsInfoFuzzTest = (describeName, filterParameter) => {
});
describe(`${describeName}`, () => {
const callbackName = `FMS_fuzzTest_getinfomodule`;
const promiseName = `FMS_fuzzTest_getinfomodule`;
const callbackName = `FMS_fuzzTest_getinfomodule
_callback
`;
const promiseName = `FMS_fuzzTest_getinfomodule
_promise
`;
const length = DATA_TYPE_LIST.length;
for (let i = 0; i < length; ++i) {
...
...
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formgetformsinfotest/formsoneandzerotest/entry/src/main/ets/MainAbility/test/GetAllFormsInfo.test.ets
浏览文件 @
cd969835
...
...
@@ -17,13 +17,16 @@ import formHost from '@ohos.application.formHost';
import { describe, expect, it } from 'deccjsunit/index';
import FormInfo from '@ohos.application.formInfo';
function sleep(time) {
return new Promise((resolve)=>setTimeout(resolve,time));
}
export const getAllFormsInfoTest = (describeName, filterParameter) => {
const ERR_OK_CODE = 0;
const ERR_OK = `success`;
describe(`${describeName}`, () => {
const callbackName = `FMS_getFormsInfo_0400
callback`;
const promiseName = `FMS_getFormsInfo_0400
promise`;
const callbackName = `FMS_getFormsInfo_0400
_
callback`;
const promiseName = `FMS_getFormsInfo_0400
_
promise`;
var tempDataB = undefined;
/**
...
...
@@ -103,6 +106,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){
...
...
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formreleasetest/entry/src/main/ets/MainAbility/test/FmsReleaseForm.test.ets
浏览文件 @
cd969835
...
...
@@ -65,6 +65,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_releaseForm_0200 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
...
...
@@ -120,6 +121,8 @@ export default function test() {
console
.
log
(
`FMS_releaseForm_0200 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_releaseForm_0200 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_releaseForm_0200 featureAbility.startAbility end`
);
});
...
...
@@ -166,6 +169,8 @@ export default function test() {
console
.
log
(
`FMS_releaseForm_0300 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_releaseForm_0300 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_releaseForm_0300 featureAbility.startAbility end`
);
});
...
...
@@ -211,6 +216,8 @@ export default function test() {
console
.
log
(
`FMS_releaseForm_0400 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_releaseForm_0400 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_releaseForm_0400 featureAbility.startAbility end`
);
});
...
...
@@ -235,6 +242,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_releaseForm_0500 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
function
onAcquiredCallBack
(
_
,
data
)
{
...
...
@@ -264,6 +272,8 @@ export default function test() {
console
.
log
(
`FMS_releaseForm_0500 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_releaseForm_0500 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_releaseForm_0500 featureAbility.startAbility again end`
);
}
...
...
@@ -287,6 +297,8 @@ export default function test() {
console
.
log
(
`FMS_releaseForm_0500 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_releaseForm_0500 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_releaseForm_0500 featureAbility.startAbility end`
);
});
...
...
@@ -312,6 +324,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_releaseForm_0600 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
function
onDeletedCallBack
(
_
,
data
)
{
...
...
@@ -343,6 +356,8 @@ export default function test() {
console
.
log
(
`FMS_releaseForm_0600 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_releaseForm_0600 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_releaseForm_0600 featureAbility.startAbility again end`
);
}
...
...
@@ -371,6 +386,8 @@ export default function test() {
console
.
log
(
`FMS_releaseForm_0600 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_releaseForm_0600 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_releaseForm_0600 featureAbility.startAbility end`
);
});
...
...
@@ -445,6 +462,8 @@ export default function test() {
console
.
log
(
`FMS_releaseForm_1300 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_releaseForm_1300 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_releaseForm_1300 featureAbility.startAbility end`
);
}
...
...
@@ -485,6 +504,8 @@ export default function test() {
console
.
log
(
`FMS_releaseForm_1300 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_releaseForm_1300 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_releaseForm_1300 featureAbility.startAbility end`
);
}
...
...
@@ -509,6 +530,8 @@ export default function test() {
console
.
log
(
`FMS_releaseForm_1300 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_releaseForm_1300 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_releaseForm_1300 featureAbility.startAbility end`
);
});
...
...
@@ -532,6 +555,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_releaseForm_1400 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
commonEvent
.
subscribe
(
subscriberOnReleased
,
onReleasedCallBack
);
...
...
@@ -557,6 +581,8 @@ export default function test() {
console
.
log
(
`FMS_releaseForm_1400 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_releaseForm_1400 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_releaseForm_1400 featureAbility.startAbility end`
);
});
...
...
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formstatetest_disable/entry/src/main/ets/MainAbility/test/FmsFormStateDisable.test.ets
浏览文件 @
cd969835
...
...
@@ -97,6 +97,8 @@ export default function test() {
console
.
log
(
`FMS_disableFormsUpdate_0200 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_disableFormsUpdate_0200 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
()
done
()
});
console
.
log
(
`FMS_disableFormsUpdate_0200 featureAbility.startAbility again end`
);
});
...
...
@@ -144,6 +146,8 @@ export default function test() {
console
.
log
(
`FMS_disableFormsUpdate_0300 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_disableFormsUpdate_0300 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
()
done
()
});
console
.
log
(
`FMS_disableFormsUpdate _0300 featureAbility.startAbility end`
);
});
...
...
@@ -161,12 +165,8 @@ export default function test() {
expect
(
data
.
event
)
.
assertEqual
(
"FMS_FormOnState_commonEvent"
);
expect
(
data
.
data
)
.
assertEqual
(
"13"
);
commonEvent
.
unsubscribe
(
subscriberOnState
,
()
=>
unsubscribeOnStateCallback
(
"FMS_disableFormsUpdate_0400"
))
setTimeout
(
function
()
{
console
.
info
(
'FMS_disableFormsUpdate_0400 delPublishCallBack end'
);
console
.
log
(
`FMS_disableFormsUpdate_0400 end`
);
done
();
},
100
)
}
commonEvent
.
subscribe
(
subscriberOnState
,
onStateCallBack
);
console
.
log
(
`FMS_disableFormsUpdate_0400 featureAbility.startAbility start`
);
...
...
@@ -190,6 +190,8 @@ export default function test() {
console
.
log
(
`FMS_disableFormsUpdate_0400 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_disableFormsUpdate_0400 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
()
done
()
});
console
.
log
(
`FMS_disableFormsUpdate _0400 featureAbility.startAbility end`
);
});
...
...
@@ -207,12 +209,9 @@ export default function test() {
expect
(
data
.
event
)
.
assertEqual
(
"FMS_FormOnState_commonEvent"
);
expect
(
data
.
data
)
.
assertEqual
(
"13"
);
commonEvent
.
unsubscribe
(
subscriberOnState
,
()
=>
unsubscribeOnStateCallback
(
"FMS_disableFormsUpdate_0500"
))
setTimeout
(
function
()
{
console
.
info
(
'FMS_disableFormsUpdate_0500 delPublishCallBack end'
);
console
.
log
(
`FMS_disableFormsUpdate_0500 end`
);
done
();
},
100
)
}
commonEvent
.
subscribe
(
subscriberOnState
,
onStateCallBack
);
console
.
log
(
`FMS_disableFormsUpdate_0500 featureAbility.startAbility start`
);
...
...
@@ -236,6 +235,8 @@ export default function test() {
console
.
log
(
`FMS_disableFormsUpdate_0500 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_disableFormsUpdate_0500 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
()
done
()
});
console
.
log
(
`FMS_disableFormsUpdate_0500 featureAbility.startAbility end`
);
});
...
...
@@ -263,6 +264,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_disableFormsUpdate_0600 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
...
...
@@ -290,6 +292,8 @@ export default function test() {
console
.
debug
(
`FMS_disableFormsUpdate_0600 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
debug
(
`FMS_disableFormsUpdate_0600 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
commonEvent
.
unsubscribe
(
subscriberOnAcquired
,
()
=>
unsubscribeOnAcquiredCallback
(
"FMS_disableFormsUpdate_0600"
));
}
...
...
@@ -315,6 +319,8 @@ export default function test() {
console
.
debug
(
`FMS_disableFormsUpdate_0600 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
debug
(
`FMS_disableFormsUpdate_0600 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
()
done
()
});
});
/**
...
...
@@ -336,8 +342,8 @@ export default function test() {
expect
(
data
.
data
)
.
assertEqual
(
"13"
);
commonEvent
.
unsubscribe
(
subscriberOnState
,
()
=>
{
console
.
info
(
"====>FMS_disableFormsUpdate_0700 unSubscribeOnDisableCallback====>"
);
done
()
});
done
();
}
const
onDeleteCallback
=
async
(
_
,
data
)
=>
{
...
...
@@ -364,6 +370,8 @@ export default function test() {
console
.
debug
(
`FMS_disableFormsUpdate_0700 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
debug
(
`FMS_disableFormsUpdate_0700 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
()
done
()
});
commonEvent
.
unsubscribe
(
subscriberDel
,
()
=>
{
...
...
@@ -394,6 +402,8 @@ export default function test() {
console
.
debug
(
`FMS_disableFormsUpdate_0700 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
debug
(
`FMS_disableFormsUpdate_0700 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
()
done
()
});
});
/**
...
...
@@ -417,6 +427,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_disableFormsUpdate_0800 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
...
...
@@ -442,6 +453,8 @@ export default function test() {
console
.
log
(
`FMS_disableFormsUpdate_0800 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_disableFormsUpdate_0800 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
()
done
()
});
console
.
log
(
`FMS_disableFormsUpdate_0800 featureAbility.startAbility end`
);
});
...
...
@@ -467,6 +480,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_disableFormsUpdate_0900 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
async
function
OnEnableCallBack
(
_
,
data
)
{
...
...
@@ -497,6 +511,8 @@ export default function test() {
console
.
log
(
`FMS_disableFormsUpdate_0900 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_disableFormsUpdate_0900 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_disableFormsUpdate_0900 featureAbility.startAbility end`
);
}
...
...
@@ -523,6 +539,8 @@ export default function test() {
console
.
log
(
`FMS_disableFormsUpdate_0900 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_disableFormsUpdate_0900 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_disableFormsUpdate_0900 featureAbility.startAbility end`
);
});
...
...
@@ -575,6 +593,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_disableFormsUpdate_1000 publish'
+
JSON
.
stringify
(
err
));
done
()
});
},
10000
);
}
...
...
@@ -610,6 +629,8 @@ export default function test() {
console
.
log
(
`FMS_disableFormsUpdate_1000 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_disableFormsUpdate_1000 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
()
done
()
});
console
.
log
(
`FMS_disableFormsUpdate_1000 featureAbility.startAbility notify disable end`
);
}
...
...
@@ -636,6 +657,8 @@ export default function test() {
console
.
log
(
`FMS_disableFormsUpdate_1000 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_disableFormsUpdate_1000 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
()
done
()
});
console
.
log
(
`FMS_disableFormsUpdate_1000 featureAbility.startAbility servicea end`
);
});
...
...
@@ -689,6 +712,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_disableFormsUpdate_1100 publish'
+
JSON
.
stringify
(
err
));
done
()
});
},
10000
);
}
...
...
@@ -724,6 +748,8 @@ export default function test() {
console
.
log
(
`FMS_disableFormsUpdate_1100 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_disableFormsUpdate_1100 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
()
done
()
});
console
.
log
(
`FMS_disableFormsUpdate_1100 featureAbility.startAbility notify disable end`
);
}
...
...
@@ -750,6 +776,8 @@ export default function test() {
console
.
log
(
`FMS_disableFormsUpdate_1100 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_disableFormsUpdate_1100 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
()
done
()
});
console
.
log
(
`FMS_disableFormsUpdate_1100 featureAbility.startAbility servicea end`
);
});
...
...
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formstatetest_enable/entry/src/main/ets/MainAbility/test/FmsFormStateEnable.test.ets
浏览文件 @
cd969835
...
...
@@ -68,12 +68,12 @@ export default function test() {
console
.
info
(
"!!!====>FMS_enableFormsUpdate_0200 onStateCallBack data:====>"
+
JSON
.
stringify
(
data
));
expect
(
data
.
event
)
.
assertEqual
(
"FMS_FormOnState_commonEvent"
);
expect
(
data
.
data
)
.
assertEqual
(
"2"
);
commonEvent
.
unsubscribe
(
subscriberOnState
,
()
=>
unsubscribeOnStateCallback
(
"FMS_enableFormsUpdate_0200"
));
setTimeout
(
function
()
{
console
.
info
(
'FMS_enableFormsUpdate_0200 onStateCallBack end'
);
console
.
log
(
`FMS_enableFormsUpdate_0200 end`
);
commonEvent
.
unsubscribe
(
subscriberOnState
,
()
=>
{
console
.
info
(
'FMS_enableFormsUpdate_0200 unsubscribe callback'
);
done
();
}
,
1000
);
}
)
}
commonEvent
.
subscribe
(
subscriberOnState
,
onStateCallBack
);
...
...
@@ -98,6 +98,8 @@ export default function test() {
console
.
log
(
`FMS_enableFormsUpdate_0200 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_enableFormsUpdate_0200 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_enableFormsUpdate_0200 featureAbility.startAbility again end`
);
});
...
...
@@ -114,13 +116,10 @@ export default function test() {
console
.
info
(
"!!!====>FMS_enableFormsUpdate_0300 onStateCallBack data:====>"
+
JSON
.
stringify
(
data
));
expect
(
data
.
event
)
.
assertEqual
(
"FMS_FormOnState_commonEvent"
);
expect
(
data
.
data
)
.
assertEqual
(
"7"
);
commonEvent
.
unsubscribe
(
subscriberOnState
,
()
=>
unsubscribeOnStateCallback
(
"FMS_enableFormsUpdate_0300"
))
setTimeout
(
function
()
{
console
.
info
(
'FMS_enableFormsUpdate_0300 delPublishCallBack end'
);
console
.
log
(
`FMS_enableFormsUpdate_0300 end`
);
commonEvent
.
unsubscribe
(
subscriberOnState
,
()
=>
{
console
.
info
(
'FMS_enableFormsUpdate_0300 unsubscribe callback'
);
done
();
}
,
100
)
})
}
commonEvent
.
subscribe
(
subscriberOnState
,
onStateCallBack
);
...
...
@@ -145,6 +144,8 @@ export default function test() {
console
.
log
(
`FMS_enableFormsUpdate_0300 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_enableFormsUpdate_0300 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_enableFormsUpdate_0300 featureAbility.startAbility end`
);
});
...
...
@@ -161,13 +162,10 @@ export default function test() {
console
.
info
(
"!!!====>FMS_enableFormsUpdate_0400 onStateCallBack data:====>"
+
JSON
.
stringify
(
data
));
expect
(
data
.
event
)
.
assertEqual
(
"FMS_FormOnState_commonEvent"
);
expect
(
data
.
data
)
.
assertEqual
(
"13"
);
commonEvent
.
unsubscribe
(
subscriberOnState
,
()
=>
unsubscribeOnStateCallback
(
"FMS_enableFormsUpdate_0400"
))
setTimeout
(
function
()
{
console
.
info
(
'FMS_enableFormsUpdate_0400 delPublishCallBack end'
);
console
.
log
(
`FMS_enableFormsUpdate_0400 end`
);
commonEvent
.
unsubscribe
(
subscriberOnState
,
()
=>
{
console
.
info
(
'FMS_enableFormsUpdate_0400 unsubscribe callback'
);
done
();
}
,
100
)
})
}
commonEvent
.
subscribe
(
subscriberOnState
,
onStateCallBack
);
...
...
@@ -192,6 +190,8 @@ export default function test() {
console
.
log
(
`FMS_enableFormsUpdate_0400 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_enableFormsUpdate_0400 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_enableFormsUpdate_0400 featureAbility.startAbility end`
);
});
...
...
@@ -208,13 +208,10 @@ export default function test() {
console
.
info
(
"!!!====>FMS_enableFormsUpdate_0500 onStateCallBack data:====>"
+
JSON
.
stringify
(
data
));
expect
(
data
.
event
)
.
assertEqual
(
"FMS_FormOnState_commonEvent"
);
expect
(
data
.
data
)
.
assertEqual
(
"13"
);
commonEvent
.
unsubscribe
(
subscriberOnState
,
()
=>
unsubscribeOnStateCallback
(
"FMS_enableFormsUpdate_0500"
))
setTimeout
(
function
()
{
console
.
info
(
'FMS_enableFormsUpdate_0500 delPublishCallBack end'
);
console
.
log
(
`FMS_enableFormsUpdate_0500 end`
);
commonEvent
.
unsubscribe
(
subscriberOnState
,
()
=>
{
console
.
info
(
'FMS_enableFormsUpdate_0500 unsubscribe callback'
);
done
();
}
,
100
)
})
}
commonEvent
.
subscribe
(
subscriberOnState
,
onStateCallBack
);
...
...
@@ -239,6 +236,8 @@ export default function test() {
console
.
log
(
`FMS_enableFormsUpdate_0500 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_enableFormsUpdate_0500 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_enableFormsUpdate_0500 featureAbility.startAbility end`
);
});
...
...
@@ -265,6 +264,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_enableFormsUpdate_0600 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
...
...
@@ -292,6 +292,8 @@ export default function test() {
console
.
debug
(
`FMS_enableFormsUpdate_0600 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
debug
(
`FMS_enableFormsUpdate_0600 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
commonEvent
.
unsubscribe
(
subscriberOnAcquired
,
()
=>
unsubscribeOnAcquiredCallback
(
"FMS_enableFormsUpdate_0600"
));
}
...
...
@@ -317,6 +319,8 @@ export default function test() {
console
.
debug
(
`FMS_enableFormsUpdate_0600 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
debug
(
`FMS_enableFormsUpdate_0600 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
});
/**
...
...
@@ -338,8 +342,8 @@ export default function test() {
expect
(
data
.
data
)
.
assertEqual
(
"13"
);
commonEvent
.
unsubscribe
(
subscriberOnState
,
()
=>
{
console
.
info
(
"====>FMS_enableFormsUpdate_0700 unSubscribeOnEnableCallback====>"
);
});
done
();
});
}
const
onDeleteCallback
=
async
(
_
,
data
)
=>
{
...
...
@@ -366,6 +370,8 @@ export default function test() {
console
.
debug
(
`FMS_enableFormsUpdate_0700 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
debug
(
`FMS_enableFormsUpdate_0700 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
commonEvent
.
unsubscribe
(
subscriberDel
,
()
=>
{
...
...
@@ -396,6 +402,8 @@ export default function test() {
console
.
debug
(
`FMS_enableFormsUpdate_0700 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
debug
(
`FMS_enableFormsUpdate_0700 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
});
...
...
@@ -432,6 +440,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_enableFormsUpdate_0900 publish'
+
JSON
.
stringify
(
err
));
done
()
});
},
2000
);
}
...
...
@@ -478,6 +487,8 @@ export default function test() {
console
.
log
(
`FMS_enableFormsUpdate_0900 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_enableFormsUpdate_0900 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_enableFormsUpdate_0900 featureAbility.startAbility notifyVisible end`
);
},
10000
);
...
...
@@ -511,6 +522,8 @@ export default function test() {
console
.
log
(
`FMS_enableFormsUpdate_0900 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_enableFormsUpdate_0900 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_enableFormsUpdate_0900 featureAbility.startAbility notify disable end`
);
}
...
...
@@ -535,6 +548,8 @@ export default function test() {
console
.
log
(
`FMS_enableFormsUpdate_0900 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_enableFormsUpdate_0900 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_enableFormsUpdate_0900 featureAbility.startAbility servicea end`
);
});
...
...
@@ -572,6 +587,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_enableFormsUpdate_1000 publish'
+
JSON
.
stringify
(
err
));
done
()
});
},
2000
);
}
...
...
@@ -619,6 +635,8 @@ export default function test() {
console
.
log
(
`FMS_enableFormsUpdate_1000 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_enableFormsUpdate_1000 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_enableFormsUpdate_1000 featureAbility.startAbility notifyVisible end`
);
},
10000
);
...
...
@@ -651,6 +669,8 @@ export default function test() {
console
.
log
(
`FMS_enableFormsUpdate_1000 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_enableFormsUpdate_1000 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_enableFormsUpdate_1000 featureAbility.startAbility notify disable end`
);
}
...
...
@@ -675,6 +695,8 @@ export default function test() {
console
.
log
(
`FMS_enableFormsUpdate_1000 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_enableFormsUpdate_1000 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_enableFormsUpdate_1000 featureAbility.startAbility servicea end`
);
});
...
...
@@ -707,7 +729,7 @@ export default function test() {
setTimeout
(
function
()
{
console
.
info
(
'FMS_enableFormsUpdate_1200 delPublishCallBack2 end'
);
console
.
log
(
`FMS_enableFormsUpdate_1200 end`
);
done
()
;
done
()
},
1000
);
}
...
...
@@ -778,6 +800,8 @@ export default function test() {
console
.
log
(
`FMS_enableFormsUpdate_1200 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_enableFormsUpdate_1200 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_enableFormsUpdate_1200 featureAbility.startAbility notifyVisible end`
);
},
10000
);
...
...
@@ -813,6 +837,8 @@ export default function test() {
console
.
log
(
`FMS_enableFormsUpdate_1200 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_enableFormsUpdate_1200 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_enableFormsUpdate_1200 featureAbility.startAbility notify disable end`
);
}
...
...
@@ -845,6 +871,8 @@ export default function test() {
console
.
log
(
`FMS_enableFormsUpdate_1200 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_enableFormsUpdate_1200 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_enableFormsUpdate_1200 featureAbility.startAbility serviceb end`
);
}
...
...
@@ -869,6 +897,8 @@ export default function test() {
console
.
log
(
`FMS_enableFormsUpdate_1200 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_enableFormsUpdate_1200 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_enableFormsUpdate_1200 featureAbility.startAbility servicea end`
);
});
...
...
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formstatetest_notifyinvisible/entry/src/main/ets/MainAbility/test/FmsFormStateNotifyInvisible.test.ets
浏览文件 @
cd969835
...
...
@@ -258,6 +258,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_notifyInvisibleForms_0600 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
...
...
@@ -288,6 +289,7 @@ export default function test() {
console
.
log
(
`FMS_notifyInvisibleForms_0600 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_notifyInvisibleForms_0600 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
});
console
.
log
(
`FMS_notifyInvisibleForms_0600 featureAbility.startAbility again end`
);
}
...
...
@@ -312,6 +314,8 @@ export default function test() {
console
.
log
(
`FMS_notifyInvisibleForms_0600 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_notifyInvisibleForms_0600 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_notifyInvisibleForms_0600 featureAbility.startAbility end`
);
});
...
...
@@ -432,6 +436,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_notifyInvisibleForms_0800 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
}
...
...
@@ -448,7 +453,8 @@ export default function test() {
data
:
formIdInvisible
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_notifyInvisibleForms_0600 publish'
+
JSON
.
stringify
(
err
));
console
.
info
(
'FMS_notifyInvisibleForms_0800 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
}
...
...
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formstatetest_notifyinvisible2/entry/src/main/ets/MainAbility/test/FmsFormStateNotifyInvisible2.test.ets
浏览文件 @
cd969835
...
...
@@ -73,6 +73,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_notifyInvisibleForms_0900 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
}
...
...
@@ -90,6 +91,7 @@ export default function test() {
};
commonEvent
.
publish
(
deleteForm_Event
,
commonEventPublishData
,
(
err
)
=>
{
console
.
info
(
'FMS_notifyInvisibleForms_0900 publish'
+
JSON
.
stringify
(
err
));
done
()
});
}
}
...
...
@@ -123,6 +125,8 @@ export default function test() {
console
.
log
(
`FMS_notifyInvisibleForms_0900 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_notifyInvisibleForms_0900 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_notifyInvisibleForms_0900 featureAbility.startAbility again end`
);
}
...
...
@@ -150,6 +154,8 @@ export default function test() {
console
.
log
(
`FMS_notifyInvisibleForms_0900 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_notifyInvisibleForms_0900 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_notifyInvisibleForms_0900 featureAbility.startAbility end`
);
});
...
...
@@ -214,6 +220,8 @@ export default function test() {
console
.
log
(
`FMS_notifyInvisibleForms_1000 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_notifyInvisibleForms_1000 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_notifyInvisibleForms_1000 featureAbility.startAbility end`
);
});
...
...
@@ -303,6 +311,8 @@ export default function test() {
console
.
log
(
`FMS_notifyInvisibleForms_1100 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_notifyInvisibleForms_1100 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_notifyInvisibleForms_1100 featureAbility.startAbility again end`
);
}
...
...
@@ -330,6 +340,8 @@ export default function test() {
console
.
log
(
`FMS_notifyInvisibleForms_1100 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_notifyInvisibleForms_1100 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_notifyInvisibleForms_1100 featureAbility.startAbility end`
);
});
...
...
@@ -395,6 +407,8 @@ export default function test() {
console
.
log
(
`FMS_notifyInvisibleForms_1200_normal1 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_notifyInvisibleForms_1200_normal1 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_notifyInvisibleForms_1200_normal1 featureAbility.startAbility end`
);
...
...
@@ -477,6 +491,8 @@ export default function test() {
console
.
log
(
`FMS_notifyInvisibleForms_1200_normal2 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_notifyInvisibleForms_1200_normal2 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_notifyInvisibleForms_1200_normal2 featureAbility.startAbility end`
);
...
...
@@ -598,6 +614,8 @@ export default function test() {
console
.
debug
(
`FMS_notifyInvisibleForms_1300 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
debug
(
`FMS_notifyInvisibleForms_1300 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
});
...
...
@@ -686,6 +704,8 @@ export default function test() {
console
.
log
(
`FMS_notifyInvisibleForms_1400 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_notifyInvisibleForms_1400 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_notifyInvisibleForms_1400 featureAbility.startAbility notifyInVisible end`
);
}
...
...
@@ -717,6 +737,8 @@ export default function test() {
console
.
log
(
`FMS_notifyInvisibleForms_1400 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_notifyInvisibleForms_1400 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_notifyInvisibleForms_1400 featureAbility.startAbility serviceb end`
);
}
...
...
@@ -741,6 +763,8 @@ export default function test() {
console
.
log
(
`FMS_notifyInvisibleForms_1400 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_notifyInvisibleForms_1400 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_notifyInvisibleForms_1400 featureAbility.startAbility servicea end`
);
});
...
...
@@ -790,6 +814,8 @@ export default function test() {
console
.
log
(
`FMS_notifyInvisibleForms_1500 featureAbility.startAbilityhost res: ${JSON.stringify(res)}`
);
})
.
catch
((
err
:
any
)
=>
{
console
.
log
(
`FMS_notifyInvisibleForms_1500 featureAbility.startAbilityhost error: ${JSON.stringify(err)}`
);
expect
()
.
assertFail
();
done
();
});
console
.
log
(
`FMS_notifyInvisibleForms_1500 featureAbility.startAbility end`
);
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录