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

xtsuserid修改

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