From ec5b3e21ddf976f5faddf7b3c7553c168595625c Mon Sep 17 00:00:00 2001 From: Lotol Date: Sat, 26 Aug 2023 08:23:01 +0000 Subject: [PATCH] update ExampleJsunit.test.js. Signed-off-by: Lotol --- .../src/main/js/test/ExampleJsunit.test.js | 54 ++++++++++++------- 1 file changed, 36 insertions(+), 18 deletions(-) diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagertest/src/main/js/test/ExampleJsunit.test.js b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagertest/src/main/js/test/ExampleJsunit.test.js index 2a46e31a1..79305bca6 100644 --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagertest/src/main/js/test/ExampleJsunit.test.js +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagertest/src/main/js/test/ExampleJsunit.test.js @@ -676,8 +676,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 != "1" && data[i].appInfo.codePath != "2") { + expect(data[i].appInfo.supportedModes).assertEqual(0); + expect(data[i].appInfo.moduleInfos.length).assertLarger(0); + } } done(); }) @@ -1101,8 +1103,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 != "1" && data[i].appInfo.codePath != "2") { + expect(data[i].appInfo.supportedModes).assertEqual(0); + expect(data[i].appInfo.moduleInfos.length).assertLarger(0); + } } done(); }); @@ -1231,8 +1235,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 != "1" && data[i].appInfo.codePath != "2") { + expect(data[i].appInfo.supportedModes).assertEqual(0); + expect(data[i].appInfo.moduleInfos.length).assertLarger(0); + } } done(); }) @@ -1254,8 +1260,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 != "1" && data[i].appInfo.codePath != "2") { + expect(data[i].appInfo.supportedModes).assertEqual(0); + expect(data[i].appInfo.moduleInfos.length).assertLarger(0); + } } done(); }) @@ -1278,8 +1286,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 != "1" && data[i].appInfo.codePath != "2") { + expect(data[i].appInfo.supportedModes).assertEqual(0); + expect(data[i].appInfo.moduleInfos.length).assertLarger(0); + } } done(); }) @@ -1302,8 +1312,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 != "1" && data[i].appInfo.codePath != "2") { + expect(data[i].appInfo.supportedModes).assertEqual(0); + expect(data[i].appInfo.moduleInfos.length).assertLarger(0); + } } done(); }) @@ -1325,8 +1337,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 != "1" && data[i].appInfo.codePath != "2") { + expect(data[i].appInfo.supportedModes).assertEqual(0); + expect(data[i].appInfo.moduleInfos.length).assertLarger(0); + } } done(); }) @@ -1347,8 +1361,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 != "1" && data[i].appInfo.codePath != "2") { + expect(data[i].appInfo.supportedModes).assertEqual(0); + expect(data[i].appInfo.moduleInfos.length).assertLarger(0); + } } done(); }) @@ -1369,8 +1385,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 != "1" && data[i].appInfo.codePath != "2") { + expect(data[i].appInfo.supportedModes).assertEqual(0); + expect(data[i].appInfo.moduleInfos.length).assertLarger(0); + } } done(); }) -- GitLab