未验证 提交 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 ...@@ -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 DIR3 = "/data/app/el1/bundle/public/com.example.myapplication2/com.example.myapplication1"
const DESCRIPTION = "$string:mainability_description" const DESCRIPTION = "$string:mainability_description"
const APPLICATION_DESCRIPTION = "$string:entry_description" const APPLICATION_DESCRIPTION = "$string:entry_description"
const FLAGONE = "1"
const FLAGTWO = "2"
let userId = 0; let userId = 0;
export default function ActsBundleManagerTest() { export default function ActsBundleManagerTest() {
...@@ -676,9 +678,11 @@ describe('ActsBundleManagerTest', function () { ...@@ -676,9 +678,11 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.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.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
} }
}
done(); done();
}) })
...@@ -1101,9 +1105,11 @@ describe('ActsBundleManagerTest', function () { ...@@ -1101,9 +1105,11 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.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.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
} }
}
done(); done();
}); });
}) })
...@@ -1231,9 +1237,11 @@ describe('ActsBundleManagerTest', function () { ...@@ -1231,9 +1237,11 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.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.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
} }
}
done(); done();
}) })
...@@ -1254,9 +1262,11 @@ describe('ActsBundleManagerTest', function () { ...@@ -1254,9 +1262,11 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.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.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
} }
}
done(); done();
}) })
...@@ -1278,9 +1288,11 @@ describe('ActsBundleManagerTest', function () { ...@@ -1278,9 +1288,11 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.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.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
} }
}
done(); done();
}) })
}) })
...@@ -1302,9 +1314,11 @@ describe('ActsBundleManagerTest', function () { ...@@ -1302,9 +1314,11 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.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.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
} }
}
done(); done();
}) })
}) })
...@@ -1325,9 +1339,11 @@ describe('ActsBundleManagerTest', function () { ...@@ -1325,9 +1339,11 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.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.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
} }
}
done(); done();
}) })
...@@ -1347,9 +1363,11 @@ describe('ActsBundleManagerTest', function () { ...@@ -1347,9 +1363,11 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.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.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
} }
}
done(); done();
}) })
...@@ -1369,9 +1387,11 @@ describe('ActsBundleManagerTest', function () { ...@@ -1369,9 +1387,11 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.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.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
} }
}
done(); done();
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册