提交 b8a37733 编写于 作者: O openharmony_ci 提交者: Gitee

!1153 xts

Merge pull request !1153 from blackleon/fms_1123
......@@ -13,19 +13,6 @@
],
"type": "AppInstallKit",
"cleanup-apps": true
},
{
"type": "ShellKit",
"run-command": [
"remount",
"mkdir /system/vendor"
]
},
{
"type": "ShellKit",
"run-command": [
"chmod 644 /system/vendor/*.hap"
]
}
]
}
......@@ -870,7 +870,7 @@ describe('FMS_FuzzTest', function () {
);
} catch (e) {
console.log("FMS_fuzzTestString_1200_callback Exception caught:" + e);
expect(0).assertEqual(0);
expect(e.message.indexOf("type of getAllFormsInfo is incorrect") > -1).assertTrue();
}
console.log("FMS_fuzzTestString_1200_callback getAllFormsInfo end");
......@@ -899,7 +899,7 @@ describe('FMS_FuzzTest', function () {
done();
} catch (e) {
console.log("FMS_fuzzTestString_1200_promise Exception caught:" + e);
expect(0).assertEqual(0);
expect(e.message.indexOf("type of getAllFormsInfo is incorrect") > -1).assertTrue();
}
console.log("FMS_fuzzTestString_1200_promise getAllFormsInfo end");
......@@ -921,7 +921,6 @@ describe('FMS_FuzzTest', function () {
var bundleName = stringTest();
console.log("FMS_fuzzTestString_1300_callback getFormsInfoByApp bundleName typeof:" + typeof(bundleName));
try{
formManager.getFormsInfo(
bundleName,
(err,data) => {
......@@ -932,10 +931,6 @@ describe('FMS_FuzzTest', function () {
done();
}
);
} catch (e) {
console.log("FMS_fuzzTestString_1300_callback Exception caught:" + e);
expect(0).assertEqual(0);
}
console.log("FMS_fuzzTestString_1300_callback getFormsInfoByApp end");
done();
......@@ -956,19 +951,13 @@ describe('FMS_FuzzTest', function () {
var bundleName = stringTest();
console.log("FMS_fuzzTestString_1300_promise getFormsInfoByApp bundleName typeof:" + typeof(bundleName));
var retResult;
try{
retResult = await Promise.all(await formManager.getFormsInfo(bundleName));
console.log("FMS_fuzzTestString_1300_promise async::sucess retResult:" + retResult);
expect(retResult).assertEqual(0);
done();
} catch (e) {
console.log("FMS_fuzzTestString_1300_promise Exception caught:" + e);
expect(0).assertEqual(0);
}
formManager.getFormsInfo(bundleName).then((err) => {
console.log("FMS_fuzzTestString_1300_promise async::sucess err:" + err);
expect(err).assertEqual(0);
console.log("FMS_fuzzTestString_1300_promise getFormsInfoByApp end");
done();
});
setTimeout(function () {
console.info('=====================FMS_fuzzTestString_1300_promise==================end');
}, TIMEOUT)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册