未验证 提交 48376d08 编写于 作者: O openharmony_ci 提交者: Gitee

!9890 ActsBundleManagerTest修复

Merge pull request !9890 from Lotol/master
......@@ -31,6 +31,8 @@ const DIR2 = "/data/app/el1/bundle/public/com.example.myapplication2/com.example
const DIR3 = "/data/app/el1/bundle/public/com.example.myapplication2/com.example.myapplication1"
const DESCRIPTION = "$string:mainability_description"
const APPLICATION_DESCRIPTION = "$string:entry_description"
const FLAGONE = "1"
const FLAGTWO = "2"
let userId = 0;
export default function ActsBundleManagerTest() {
......@@ -676,8 +678,10 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0);
}
expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
if (data[i].appInfo.codePath != FLAGONE && data[i].appInfo.codePath != FLAGTWO) {
expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
}
}
done();
})
......@@ -1101,8 +1105,10 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0);
}
expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
if (data[i].appInfo.codePath != FLAGONE && data[i].appInfo.codePath != FLAGTWO) {
expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
}
}
done();
});
......@@ -1231,8 +1237,10 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0);
}
expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
if (data[i].appInfo.codePath != FLAGONE && data[i].appInfo.codePath != FLAGTWO) {
expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
}
}
done();
})
......@@ -1254,8 +1262,10 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0);
}
expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
if (data[i].appInfo.codePath != FLAGONE && data[i].appInfo.codePath != FLAGTWO) {
expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
}
}
done();
})
......@@ -1278,8 +1288,10 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0);
}
expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
if (data[i].appInfo.codePath != FLAGONE && data[i].appInfo.codePath != FLAGTWO) {
expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
}
}
done();
})
......@@ -1302,8 +1314,10 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0);
}
expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
if (data[i].appInfo.codePath != FLAGONE && data[i].appInfo.codePath != FLAGTWO) {
expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
}
}
done();
})
......@@ -1325,8 +1339,10 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0);
}
expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
if (data[i].appInfo.codePath != FLAGONE && data[i].appInfo.codePath != FLAGTWO) {
expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
}
}
done();
})
......@@ -1347,8 +1363,10 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0);
}
expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
if (data[i].appInfo.codePath != FLAGONE && data[i].appInfo.codePath != FLAGTWO) {
expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
}
}
done();
})
......@@ -1369,8 +1387,10 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0);
}
expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
if (data[i].appInfo.codePath != FLAGONE && data[i].appInfo.codePath != FLAGTWO) {
expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
}
}
done();
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册