提交 704cb0aa 编写于 作者: L linxiangzhi

xtsuserid修改

Signed-off-by: Nlinxiangzhi <linxiangzhi@huawei.com>
Change-Id: Ifabc3f2a3565aa16cf14f7920bf1c8480db8b341
上级 5a01fafe
...@@ -31,7 +31,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -31,7 +31,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundleName = 'com.example.third1'; var bundleName = 'com.example.third1';
let installer = await bundle.getBundleInstaller(); let installer = await bundle.getBundleInstaller();
installer.install(bundlePath, { installer.install(bundlePath, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, OnReceiveInstallEvent); }, OnReceiveInstallEvent);
...@@ -61,7 +61,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -61,7 +61,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
checkShortcutIsExist(shortInfos, 'id.third1', 'third1'); checkShortcutIsExist(shortInfos, 'id.third1', 'third1');
}); });
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, OnReceiveUninstallEvent); }, OnReceiveUninstallEvent);
...@@ -85,7 +85,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -85,7 +85,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundleName = 'com.example.third1'; var bundleName = 'com.example.third1';
let installer = await bundle.getBundleInstaller(); let installer = await bundle.getBundleInstaller();
installer.install(bundlePath, { installer.install(bundlePath, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, OnReceiveInstallEvent); }, OnReceiveInstallEvent);
...@@ -99,7 +99,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -99,7 +99,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
expect(shortcutInfos.length).assertEqual(1); expect(shortcutInfos.length).assertEqual(1);
checkShortcutIsExist(shortcutInfos, 'id.third1', 'third1'); checkShortcutIsExist(shortcutInfos, 'id.third1', 'third1');
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -123,7 +123,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -123,7 +123,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundlePath = ['/data/test/bmsThirdBundleTest1.hap', '/data/test/bmsThirdBundleTest3.hap']; var bundlePath = ['/data/test/bmsThirdBundleTest1.hap', '/data/test/bmsThirdBundleTest3.hap'];
let installer = await bundle.getBundleInstaller(); let installer = await bundle.getBundleInstaller();
installer.install(bundlePath, { installer.install(bundlePath, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -137,7 +137,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -137,7 +137,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
checkShortcutIsExist(shortInfos, 'id.third3', 'third3'); checkShortcutIsExist(shortInfos, 'id.third3', 'third3');
}); });
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -159,7 +159,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -159,7 +159,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundleName = 'com.example.third1'; var bundleName = 'com.example.third1';
let installer = await bundle.getBundleInstaller(); let installer = await bundle.getBundleInstaller();
installer.install(bundlePath, { installer.install(bundlePath, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -172,7 +172,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -172,7 +172,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
checkShortcutIsExist(shortInfos, 'id.third1', 'third1'); checkShortcutIsExist(shortInfos, 'id.third1', 'third1');
checkShortcutIsExist(shortInfos, 'id.third3', 'third3'); checkShortcutIsExist(shortInfos, 'id.third3', 'third3');
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -229,7 +229,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -229,7 +229,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var abilityName = 'com.example.third1.AMainAbility'; var abilityName = 'com.example.third1.AMainAbility';
let installer = await bundle.getBundleInstaller(); let installer = await bundle.getBundleInstaller();
installer.install(bundlePath1, { installer.install(bundlePath1, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -237,7 +237,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -237,7 +237,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
expect(data.status).assertEqual(0); expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual("SUCCESS"); expect(data.statusMessage).assertEqual("SUCCESS");
installer.install(bundlePath2, { installer.install(bundlePath2, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -267,7 +267,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -267,7 +267,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
} }
}); });
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -292,7 +292,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -292,7 +292,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var abilityName = 'com.example.third1.AMainAbility'; var abilityName = 'com.example.third1.AMainAbility';
let installer = await bundle.getBundleInstaller(); let installer = await bundle.getBundleInstaller();
installer.install(bundlePath1, { installer.install(bundlePath1, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -300,7 +300,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -300,7 +300,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
expect(data.status).assertEqual(0); expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual("SUCCESS"); expect(data.statusMessage).assertEqual("SUCCESS");
installer.install(bundlePath2, { installer.install(bundlePath2, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -328,7 +328,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -328,7 +328,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
} }
} }
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -352,7 +352,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -352,7 +352,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundlePath = ['/data/test/bmsThirdBundleTest2.hap']; var bundlePath = ['/data/test/bmsThirdBundleTest2.hap'];
let installer = await bundle.getBundleInstaller(); let installer = await bundle.getBundleInstaller();
installer.install(bundlePath, { installer.install(bundlePath, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -364,7 +364,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -364,7 +364,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
expect(data.length).assertEqual(0); expect(data.length).assertEqual(0);
}); });
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -386,7 +386,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -386,7 +386,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundlePath = ['/data/test/bmsThirdBundleTest2.hap']; var bundlePath = ['/data/test/bmsThirdBundleTest2.hap'];
let installer = await bundle.getBundleInstaller(); let installer = await bundle.getBundleInstaller();
installer.install(bundlePath, { installer.install(bundlePath, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -398,7 +398,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -398,7 +398,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
expect(shortcutInfos.length).assertEqual(0); expect(shortcutInfos.length).assertEqual(0);
}); });
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -486,7 +486,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -486,7 +486,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundleName = 'com.example.third1'; var bundleName = 'com.example.third1';
let installer = await bundle.getBundleInstaller(); let installer = await bundle.getBundleInstaller();
installer.install(bundlePath, { installer.install(bundlePath, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -497,7 +497,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -497,7 +497,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
checkShortcutIsExist(shortcutInfos, 'id.third1', 'third1'); checkShortcutIsExist(shortcutInfos, 'id.third1', 'third1');
}); });
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -523,7 +523,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -523,7 +523,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundleName = 'com.example.third1'; var bundleName = 'com.example.third1';
let installer = await bundle.getBundleInstaller(); let installer = await bundle.getBundleInstaller();
installer.install(bundlePath, { installer.install(bundlePath, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -536,7 +536,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -536,7 +536,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
checkShortcutIsExist(shortcutInfos, 'id.third1', 'third1'); checkShortcutIsExist(shortcutInfos, 'id.third1', 'third1');
}); });
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -563,7 +563,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -563,7 +563,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundlePath = ['/data/test/bmsThirdBundleTest4.hap']; var bundlePath = ['/data/test/bmsThirdBundleTest4.hap'];
let installer = await bundle.getBundleInstaller(); let installer = await bundle.getBundleInstaller();
installer.install(bundlePath, { installer.install(bundlePath, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -577,7 +577,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -577,7 +577,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
checkShortcutInfo(shortcutInfos[1], 'third4B'); checkShortcutInfo(shortcutInfos[1], 'third4B');
}); });
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -599,7 +599,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -599,7 +599,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundleName = 'com.example.third4'; var bundleName = 'com.example.third4';
let installer = await bundle.getBundleInstaller(); let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest4.hap'], { installer.install(['/data/test/bmsThirdBundleTest4.hap'], {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -612,7 +612,7 @@ describe('ActsBmsAllShortcutInfoTest', function () { ...@@ -612,7 +612,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
checkShortcutInfo(shortcutInfos[0], 'third4A'); checkShortcutInfo(shortcutInfos[0], 'third4A');
checkShortcutInfo(shortcutInfos[1], 'third4B'); checkShortcutInfo(shortcutInfos[1], 'third4B');
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
......
...@@ -47,7 +47,7 @@ describe('ActsBmsQueryAbilityByWant', function () { ...@@ -47,7 +47,7 @@ describe('ActsBmsQueryAbilityByWant', function () {
} }
installer.uninstall(BUNDLE_NAME1, installer.uninstall(BUNDLE_NAME1,
{ {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
} }
...@@ -63,7 +63,7 @@ describe('ActsBmsQueryAbilityByWant', function () { ...@@ -63,7 +63,7 @@ describe('ActsBmsQueryAbilityByWant', function () {
installer.install(['/data/test/bmsThirdBundleTest1.hap'], installer.install(['/data/test/bmsThirdBundleTest1.hap'],
{ {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false, isKeepData: false,
}, onReceiveinstallEvent); }, onReceiveinstallEvent);
......
...@@ -29,7 +29,7 @@ describe('ActsBmsHapModuleTest', function () { ...@@ -29,7 +29,7 @@ describe('ActsBmsHapModuleTest', function () {
let bundleName = 'com.example.bmsmainabilityfirstscene'; let bundleName = 'com.example.bmsmainabilityfirstscene';
var installer = await bundle.getBundleInstaller(); var installer = await bundle.getBundleInstaller();
installer.install(bundlePath, { installer.install(bundlePath, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, onReceiveInstallEvent); }, onReceiveInstallEvent);
...@@ -70,7 +70,7 @@ describe('ActsBmsHapModuleTest', function () { ...@@ -70,7 +70,7 @@ describe('ActsBmsHapModuleTest', function () {
} }
} }
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -96,7 +96,7 @@ describe('ActsBmsHapModuleTest', function () { ...@@ -96,7 +96,7 @@ describe('ActsBmsHapModuleTest', function () {
let secondMainAbility = 'com.example.bmsmainabilitysecondscene.MainAbility'; let secondMainAbility = 'com.example.bmsmainabilitysecondscene.MainAbility';
var installer = await bundle.getBundleInstaller(); var installer = await bundle.getBundleInstaller();
installer.install(bundlePath, { installer.install(bundlePath, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -114,7 +114,7 @@ describe('ActsBmsHapModuleTest', function () { ...@@ -114,7 +114,7 @@ describe('ActsBmsHapModuleTest', function () {
checkHapModuleInfo(result.hapModuleInfo[1]); checkHapModuleInfo(result.hapModuleInfo[1]);
} }
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -139,7 +139,7 @@ describe('ActsBmsHapModuleTest', function () { ...@@ -139,7 +139,7 @@ describe('ActsBmsHapModuleTest', function () {
var installer = await bundle.getBundleInstaller(); var installer = await bundle.getBundleInstaller();
console.log('========install========' + typeof installer); console.log('========install========' + typeof installer);
installer.install(bundlePath, { installer.install(bundlePath, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, onReceiveInstallEvent); }, onReceiveInstallEvent);
...@@ -160,7 +160,7 @@ describe('ActsBmsHapModuleTest', function () { ...@@ -160,7 +160,7 @@ describe('ActsBmsHapModuleTest', function () {
checkHapModuleInfo(result.hapModuleInfo[0]); checkHapModuleInfo(result.hapModuleInfo[0]);
} }
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, onReceiveUninstallEvent); }, onReceiveUninstallEvent);
...@@ -190,7 +190,7 @@ describe('ActsBmsHapModuleTest', function () { ...@@ -190,7 +190,7 @@ describe('ActsBmsHapModuleTest', function () {
var installer = await bundle.getBundleInstaller(); var installer = await bundle.getBundleInstaller();
console.log('========install========' + typeof installer); console.log('========install========' + typeof installer);
installer.install(bundlePath, { installer.install(bundlePath, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -209,7 +209,7 @@ describe('ActsBmsHapModuleTest', function () { ...@@ -209,7 +209,7 @@ describe('ActsBmsHapModuleTest', function () {
checkHapModuleInfo(result.hapModuleInfo[0]); checkHapModuleInfo(result.hapModuleInfo[0]);
} }
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, onReceiveUninstallEvent); }, onReceiveUninstallEvent);
...@@ -236,7 +236,7 @@ describe('ActsBmsHapModuleTest', function () { ...@@ -236,7 +236,7 @@ describe('ActsBmsHapModuleTest', function () {
let bundleName = 'com.example.third1'; let bundleName = 'com.example.third1';
var installer = await bundle.getBundleInstaller(); var installer = await bundle.getBundleInstaller();
installer.install(bundlePath1, { installer.install(bundlePath1, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -244,7 +244,7 @@ describe('ActsBmsHapModuleTest', function () { ...@@ -244,7 +244,7 @@ describe('ActsBmsHapModuleTest', function () {
expect(data.status).assertEqual(0); expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual('SUCCESS'); expect(data.statusMessage).assertEqual('SUCCESS');
installer.install(bundlePath2, { installer.install(bundlePath2, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -263,7 +263,7 @@ describe('ActsBmsHapModuleTest', function () { ...@@ -263,7 +263,7 @@ describe('ActsBmsHapModuleTest', function () {
checkHapModuleInfo(hapModuleInfo); checkHapModuleInfo(hapModuleInfo);
} }
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
......
...@@ -29,7 +29,7 @@ describe('ActsBmsJsTest', function () { ...@@ -29,7 +29,7 @@ describe('ActsBmsJsTest', function () {
let abilityName = 'com.example.third2.MainAbility'; let abilityName = 'com.example.third2.MainAbility';
var installer = await bundle.getBundleInstaller(); var installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest2.hap'], { installer.install(['/data/test/bmsThirdBundleTest2.hap'], {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, onReceiveInstallEvent); }, onReceiveInstallEvent);
...@@ -50,7 +50,7 @@ describe('ActsBmsJsTest', function () { ...@@ -50,7 +50,7 @@ describe('ActsBmsJsTest', function () {
expect(result.abilityInfo[0].srcPath).assertEqual(''); expect(result.abilityInfo[0].srcPath).assertEqual('');
} }
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -76,7 +76,7 @@ describe('ActsBmsJsTest', function () { ...@@ -76,7 +76,7 @@ describe('ActsBmsJsTest', function () {
let abilityName2 = 'com.example.third5.BMainAbility'; let abilityName2 = 'com.example.third5.BMainAbility';
var installer = await bundle.getBundleInstaller(); var installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest5.hap'], { installer.install(['/data/test/bmsThirdBundleTest5.hap'], {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, onReceiveInstallEvent); }, onReceiveInstallEvent);
...@@ -101,7 +101,7 @@ describe('ActsBmsJsTest', function () { ...@@ -101,7 +101,7 @@ describe('ActsBmsJsTest', function () {
expect(result.abilityInfo[1].srcPath).assertEqual(''); expect(result.abilityInfo[1].srcPath).assertEqual('');
} }
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -125,7 +125,7 @@ describe('ActsBmsJsTest', function () { ...@@ -125,7 +125,7 @@ describe('ActsBmsJsTest', function () {
let abilityName = 'com.example.js.MainAbility'; let abilityName = 'com.example.js.MainAbility';
var installer = await bundle.getBundleInstaller(); var installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleJs.hap'], { installer.install(['/data/test/bmsThirdBundleJs.hap'], {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, onReceiveInstallEvent); }, onReceiveInstallEvent);
...@@ -146,7 +146,7 @@ describe('ActsBmsJsTest', function () { ...@@ -146,7 +146,7 @@ describe('ActsBmsJsTest', function () {
expect(result.abilityInfo[0].srcPath).assertEqual('default'); expect(result.abilityInfo[0].srcPath).assertEqual('default');
} }
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -171,7 +171,7 @@ describe('ActsBmsJsTest', function () { ...@@ -171,7 +171,7 @@ describe('ActsBmsJsTest', function () {
let abilityName = '.MainAbility'; let abilityName = '.MainAbility';
var installer = await bundle.getBundleInstaller(); var installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleC.hap'], { installer.install(['/data/test/bmsThirdBundleC.hap'], {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, onReceiveInstallEvent); }, onReceiveInstallEvent);
...@@ -192,7 +192,7 @@ describe('ActsBmsJsTest', function () { ...@@ -192,7 +192,7 @@ describe('ActsBmsJsTest', function () {
expect(result.abilityInfo[0].srcPath).assertEqual('default/c++/'); expect(result.abilityInfo[0].srcPath).assertEqual('default/c++/');
} }
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
......
...@@ -30,7 +30,7 @@ describe('ActsBmsMetaDataTest', function () { ...@@ -30,7 +30,7 @@ describe('ActsBmsMetaDataTest', function () {
let abilityName1 = 'com.example.third1.MainAbility'; let abilityName1 = 'com.example.third1.MainAbility';
let dataMap = new Map(); let dataMap = new Map();
installer.install(bundlePath, { installer.install(bundlePath, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -50,7 +50,7 @@ describe('ActsBmsMetaDataTest', function () { ...@@ -50,7 +50,7 @@ describe('ActsBmsMetaDataTest', function () {
checkMetaData(dataMap.get(abilityName1), 'Data1'); checkMetaData(dataMap.get(abilityName1), 'Data1');
} }
installer.uninstall('com.example.third1', { installer.uninstall('com.example.third1', {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -76,7 +76,7 @@ describe('ActsBmsMetaDataTest', function () { ...@@ -76,7 +76,7 @@ describe('ActsBmsMetaDataTest', function () {
let abilityName1 = 'com.example.third1.AMainAbility'; let abilityName1 = 'com.example.third1.AMainAbility';
var installer = await bundle.getBundleInstaller(); var installer = await bundle.getBundleInstaller();
installer.install(bundlePath1, { installer.install(bundlePath1, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -84,7 +84,7 @@ describe('ActsBmsMetaDataTest', function () { ...@@ -84,7 +84,7 @@ describe('ActsBmsMetaDataTest', function () {
expect(data.status).assertEqual(0); expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual('SUCCESS'); expect(data.statusMessage).assertEqual('SUCCESS');
installer.install(bundlePath2, { installer.install(bundlePath2, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -104,7 +104,7 @@ describe('ActsBmsMetaDataTest', function () { ...@@ -104,7 +104,7 @@ describe('ActsBmsMetaDataTest', function () {
checkMetaData(dataMap.get(abilityName1), 'DataA1'); checkMetaData(dataMap.get(abilityName1), 'DataA1');
} }
installer.uninstall('com.example.third1', { installer.uninstall('com.example.third1', {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -128,7 +128,7 @@ describe('ActsBmsMetaDataTest', function () { ...@@ -128,7 +128,7 @@ describe('ActsBmsMetaDataTest', function () {
let bundleName = 'com.example.third1'; let bundleName = 'com.example.third1';
var installer = await bundle.getBundleInstaller(); var installer = await bundle.getBundleInstaller();
installer.install(bundlePath, { installer.install(bundlePath, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -136,7 +136,7 @@ describe('ActsBmsMetaDataTest', function () { ...@@ -136,7 +136,7 @@ describe('ActsBmsMetaDataTest', function () {
expect(data.status).assertEqual(0); expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual('SUCCESS'); expect(data.statusMessage).assertEqual('SUCCESS');
installer.uninstall(bundleName, { installer.uninstall(bundleName, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -164,7 +164,7 @@ describe('ActsBmsMetaDataTest', function () { ...@@ -164,7 +164,7 @@ describe('ActsBmsMetaDataTest', function () {
let abilityName1 = 'com.example.third5.AMainAbility'; let abilityName1 = 'com.example.third5.AMainAbility';
var installer = await bundle.getBundleInstaller(); var installer = await bundle.getBundleInstaller();
installer.install(bundlePath, { installer.install(bundlePath, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, onReceiveinstallEvent); }, onReceiveinstallEvent);
...@@ -185,7 +185,7 @@ describe('ActsBmsMetaDataTest', function () { ...@@ -185,7 +185,7 @@ describe('ActsBmsMetaDataTest', function () {
checkMetaData(dataMap.get(abilityName1), 'Data5A'); checkMetaData(dataMap.get(abilityName1), 'Data5A');
} }
installer.uninstall('com.example.third5', { installer.uninstall('com.example.third5', {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
......
...@@ -75,7 +75,7 @@ describe('ActsBmsModuleUsageRecordTest', function () { ...@@ -75,7 +75,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
console.debug('=======start ability========') console.debug('=======start ability========')
let installer = await bundle.getBundleInstaller(); let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], { installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -98,7 +98,7 @@ describe('ActsBmsModuleUsageRecordTest', function () { ...@@ -98,7 +98,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
if (err.code != 0 && data.name.length == 0) { if (err.code != 0 && data.name.length == 0) {
let installer = await bundle.getBundleInstaller(); let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], { installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -232,7 +232,7 @@ describe('ActsBmsModuleUsageRecordTest', function () { ...@@ -232,7 +232,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
console.debug('=====================bms_getModuleUsageRecordTest_0500=================='); console.debug('=====================bms_getModuleUsageRecordTest_0500==================');
var installer = await bundle.getBundleInstaller(); var installer = await bundle.getBundleInstaller();
installer.uninstall(BUNDLE_NAME, { installer.uninstall(BUNDLE_NAME, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, onReceiveinstallEvent); }, onReceiveinstallEvent);
...@@ -248,7 +248,7 @@ describe('ActsBmsModuleUsageRecordTest', function () { ...@@ -248,7 +248,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
var result = checkIsExist(records, BUNDLE_NAME); var result = checkIsExist(records, BUNDLE_NAME);
expect(result).assertEqual(false); expect(result).assertEqual(false);
installer.install(['/data/test/bmsThirdBundleTest1.hap'], { installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -270,7 +270,7 @@ describe('ActsBmsModuleUsageRecordTest', function () { ...@@ -270,7 +270,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
console.debug('=====================bms_getModuleUsageRecordTest_0600=================='); console.debug('=====================bms_getModuleUsageRecordTest_0600==================');
var installer = await bundle.getBundleInstaller(); var installer = await bundle.getBundleInstaller();
installer.uninstall(BUNDLE_NAME, { installer.uninstall(BUNDLE_NAME, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -282,7 +282,7 @@ describe('ActsBmsModuleUsageRecordTest', function () { ...@@ -282,7 +282,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
var result = checkIsExist(moduleUsageRecord, BUNDLE_NAME); var result = checkIsExist(moduleUsageRecord, BUNDLE_NAME);
expect(result).assertEqual(false); expect(result).assertEqual(false);
installer.install(['/data/test/bmsThirdBundleTest1.hap'], { installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -360,7 +360,7 @@ describe('ActsBmsModuleUsageRecordTest', function () { ...@@ -360,7 +360,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
console.debug('=====================bms_getModuleUsageRecordTest_1100=================='); console.debug('=====================bms_getModuleUsageRecordTest_1100==================');
var installer = await bundle.getBundleInstaller(); var installer = await bundle.getBundleInstaller();
installer.uninstall(BUNDLE_NAME, { installer.uninstall(BUNDLE_NAME, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -369,7 +369,7 @@ describe('ActsBmsModuleUsageRecordTest', function () { ...@@ -369,7 +369,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
expect(data.statusMessage).assertEqual("SUCCESS"); expect(data.statusMessage).assertEqual("SUCCESS");
var bundlePath = ['/data/test/bmsThirdBundleTest1.hap']; var bundlePath = ['/data/test/bmsThirdBundleTest1.hap'];
installer.install(bundlePath, { installer.install(bundlePath, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -393,7 +393,7 @@ describe('ActsBmsModuleUsageRecordTest', function () { ...@@ -393,7 +393,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
console.debug('=====================bms_getModuleUsageRecordTest_1200=================='); console.debug('=====================bms_getModuleUsageRecordTest_1200==================');
var installer = await bundle.getBundleInstaller(); var installer = await bundle.getBundleInstaller();
installer.uninstall(BUNDLE_NAME, { installer.uninstall(BUNDLE_NAME, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -402,7 +402,7 @@ describe('ActsBmsModuleUsageRecordTest', function () { ...@@ -402,7 +402,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
expect(data.statusMessage).assertEqual("SUCCESS"); expect(data.statusMessage).assertEqual("SUCCESS");
var bundlePath = ['/data/test/bmsThirdBundleTest1.hap'] var bundlePath = ['/data/test/bmsThirdBundleTest1.hap']
installer.install(bundlePath, { installer.install(bundlePath, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -457,7 +457,7 @@ describe('ActsBmsModuleUsageRecordTest', function () { ...@@ -457,7 +457,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
} }
let installer = await bundle.getBundleInstaller(); let installer = await bundle.getBundleInstaller();
installer.uninstall(BUNDLE_NAME, { installer.uninstall(BUNDLE_NAME, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -465,7 +465,7 @@ describe('ActsBmsModuleUsageRecordTest', function () { ...@@ -465,7 +465,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
expect(data.status).assertEqual(0); expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual("SUCCESS"); expect(data.statusMessage).assertEqual("SUCCESS");
installer.install(['/data/test/bmsThirdBundleTest1.hap'], { installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -522,7 +522,7 @@ describe('ActsBmsModuleUsageRecordTest', function () { ...@@ -522,7 +522,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
} }
let installer = await bundle.getBundleInstaller(); let installer = await bundle.getBundleInstaller();
installer.uninstall(BUNDLE_NAME, { installer.uninstall(BUNDLE_NAME, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
...@@ -530,7 +530,7 @@ describe('ActsBmsModuleUsageRecordTest', function () { ...@@ -530,7 +530,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
expect(data.status).assertEqual(0); expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual("SUCCESS"); expect(data.statusMessage).assertEqual("SUCCESS");
installer.install(['/data/test/bmsThirdBundleTest1.hap'], { installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -673,7 +673,7 @@ describe('ActsBmsModuleUsageRecordTest', function () { ...@@ -673,7 +673,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
console.debug('=======after all install========'); console.debug('=======after all install========');
let installer = await bundle.getBundleInstaller(); let installer = await bundle.getBundleInstaller();
installer.uninstall(BUNDLE_NAME, { installer.uninstall(BUNDLE_NAME, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, (err, data) => { }, (err, data) => {
......
...@@ -53,7 +53,7 @@ describe('ActsBundleManagerUninstall', function () { ...@@ -53,7 +53,7 @@ describe('ActsBundleManagerUninstall', function () {
it('uninstall_0100', 0, async function (done) { it('uninstall_0100', 0, async function (done) {
let installData = await demo.getBundleInstaller(); let installData = await demo.getBundleInstaller();
installData.install([PATH + BMSJSTEST1], { installData.install([PATH + BMSJSTEST1], {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -63,7 +63,7 @@ describe('ActsBundleManagerUninstall', function () { ...@@ -63,7 +63,7 @@ describe('ActsBundleManagerUninstall', function () {
var datainfo1 = await demo.getBundleInfo(NAME1, 1); var datainfo1 = await demo.getBundleInfo(NAME1, 1);
expect(datainfo1.name).assertEqual(NAME1); expect(datainfo1.name).assertEqual(NAME1);
installData.uninstall(NAME1, { installData.uninstall(NAME1, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -89,7 +89,7 @@ describe('ActsBundleManagerUninstall', function () { ...@@ -89,7 +89,7 @@ describe('ActsBundleManagerUninstall', function () {
it('uninstall_0200', 0, async function (done) { it('uninstall_0200', 0, async function (done) {
let installData = await demo.getBundleInstaller() let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST1, PATH + BMSJSTEST3], { installData.install([PATH + BMSJSTEST1, PATH + BMSJSTEST3], {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -101,14 +101,14 @@ describe('ActsBundleManagerUninstall', function () { ...@@ -101,14 +101,14 @@ describe('ActsBundleManagerUninstall', function () {
expect(datainfo1.name).assertEqual(''); expect(datainfo1.name).assertEqual('');
expect(datainfo2.name).assertEqual(''); expect(datainfo2.name).assertEqual('');
installData.uninstall(NAME1, { installData.uninstall(NAME1, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async(err, data) => { }, async(err, data) => {
var datainfo3 = await demo.getBundleInfo(NAME1, 1); var datainfo3 = await demo.getBundleInfo(NAME1, 1);
expect(datainfo3.name).assertEqual(''); expect(datainfo3.name).assertEqual('');
installData.uninstall(NAME2, { installData.uninstall(NAME2, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async(err, data) => { }, async(err, data) => {
...@@ -128,7 +128,7 @@ describe('ActsBundleManagerUninstall', function () { ...@@ -128,7 +128,7 @@ describe('ActsBundleManagerUninstall', function () {
it('uninstall_0300', 0, async function (done) { it('uninstall_0300', 0, async function (done) {
let installData = await demo.getBundleInstaller() let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST4, PATH + BMSJSTEST5, PATH + BMSJSTEST6], { installData.install([PATH + BMSJSTEST4, PATH + BMSJSTEST5, PATH + BMSJSTEST6], {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -142,21 +142,21 @@ describe('ActsBundleManagerUninstall', function () { ...@@ -142,21 +142,21 @@ describe('ActsBundleManagerUninstall', function () {
var datainfo3 = await demo.getBundleInfo(NAME5, 1); var datainfo3 = await demo.getBundleInfo(NAME5, 1);
expect(datainfo3.name).assertEqual(''); expect(datainfo3.name).assertEqual('');
installData.uninstall(NAME3, { installData.uninstall(NAME3, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async(err, data) => { }, async(err, data) => {
var datainfo4 = await demo.getBundleInfo(NAME3, 1); var datainfo4 = await demo.getBundleInfo(NAME3, 1);
expect(datainfo4.name).assertEqual(''); expect(datainfo4.name).assertEqual('');
installData.uninstall(NAME4, { installData.uninstall(NAME4, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async(err, data) => { }, async(err, data) => {
var datainfo5 = await demo.getBundleInfo(NAME4, 1); var datainfo5 = await demo.getBundleInfo(NAME4, 1);
expect(datainfo5.name).assertEqual(''); expect(datainfo5.name).assertEqual('');
installData.uninstall(NAME5, { installData.uninstall(NAME5, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async(err, data) => { }, async(err, data) => {
...@@ -177,7 +177,7 @@ describe('ActsBundleManagerUninstall', function () { ...@@ -177,7 +177,7 @@ describe('ActsBundleManagerUninstall', function () {
it('uninstall_0400', 0, async function (done) { it('uninstall_0400', 0, async function (done) {
demo.getBundleInstaller().then((data) => { demo.getBundleInstaller().then((data) => {
data.uninstall(ERROR, { data.uninstall(ERROR, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, OnReceiveinstallEvent); }, OnReceiveinstallEvent);
...@@ -198,7 +198,7 @@ describe('ActsBundleManagerUninstall', function () { ...@@ -198,7 +198,7 @@ describe('ActsBundleManagerUninstall', function () {
it('uninstall_0500', 0, async function (done) { it('uninstall_0500', 0, async function (done) {
demo.getBundleInstaller().then((data) => { demo.getBundleInstaller().then((data) => {
data.uninstall('', { data.uninstall('', {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, OnReceiveinstallEvent); }, OnReceiveinstallEvent);
...@@ -220,7 +220,7 @@ describe('ActsBundleManagerUninstall', function () { ...@@ -220,7 +220,7 @@ describe('ActsBundleManagerUninstall', function () {
it('uninstall_0600', 0, async function (done) { it('uninstall_0600', 0, async function (done) {
demo.getBundleInstaller().then((data) => { demo.getBundleInstaller().then((data) => {
data.uninstall(LAUNCHER, { data.uninstall(LAUNCHER, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, OnReceiveinstallEvent); }, OnReceiveinstallEvent);
...@@ -242,7 +242,7 @@ describe('ActsBundleManagerUninstall', function () { ...@@ -242,7 +242,7 @@ describe('ActsBundleManagerUninstall', function () {
it('uninstall_0700', 0, async function (done) { it('uninstall_0700', 0, async function (done) {
let result = await demo.getBundleInstaller(); let result = await demo.getBundleInstaller();
result.install([PATH + BMSJSTEST1], { result.install([PATH + BMSJSTEST1], {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: true isKeepData: true
}, OnReceiveinstallEvent); }, OnReceiveinstallEvent);
...@@ -255,7 +255,7 @@ describe('ActsBundleManagerUninstall', function () { ...@@ -255,7 +255,7 @@ describe('ActsBundleManagerUninstall', function () {
expect(err).assertFail(); expect(err).assertFail();
}); });
result.uninstall(NAME1, { result.uninstall(NAME1, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async(err, data) => { }, async(err, data) => {
...@@ -296,7 +296,7 @@ describe('ActsBundleManagerUninstall', function () { ...@@ -296,7 +296,7 @@ describe('ActsBundleManagerUninstall', function () {
} }
let installData = await demo.getBundleInstaller(); let installData = await demo.getBundleInstaller();
installData.install([PATH + BMSJSTEST8], { installData.install([PATH + BMSJSTEST8], {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async (err, data) => { }, async (err, data) => {
...@@ -328,7 +328,7 @@ describe('ActsBundleManagerUninstall', function () { ...@@ -328,7 +328,7 @@ describe('ActsBundleManagerUninstall', function () {
let uid = bundleInfo.uid; let uid = bundleInfo.uid;
expect(processMap1.has(uid)).assertTrue(); expect(processMap1.has(uid)).assertTrue();
installData.uninstall(THIRD1, { installData.uninstall(THIRD1, {
userId: 0, userId: 100,
installFlag: 1, installFlag: 1,
isKeepData: false isKeepData: false
}, async(err, data) => { }, async(err, data) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册