From 10479bb3203cd34b82b2d633178e5fce4ddb03f5 Mon Sep 17 00:00:00 2001 From: geng-wenguang Date: Tue, 15 Mar 2022 17:28:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4mock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: geng-wenguang --- .../main/extend/systemplugin/ohos/bundleManager.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/runtime/main/extend/systemplugin/ohos/bundleManager.js b/runtime/main/extend/systemplugin/ohos/bundleManager.js index cebde03c..642f67cc 100644 --- a/runtime/main/extend/systemplugin/ohos/bundleManager.js +++ b/runtime/main/extend/systemplugin/ohos/bundleManager.js @@ -1504,18 +1504,6 @@ const ExtensionAbilityInfoMock = [ }); } }, - getAllShortcutInfo: function (...args) { - console.warn("bundle.getAllShortcutInfo interface mocked in the Previewer. How this interface works on the" + - " Previewer may be different from that on a real device.") - const len = args.length - if (typeof args[len - 1] === 'function') { - args[len - 1].call(this, paramMock.businessErrorMock, ShortcutInfosMock) - } else { - return new Promise((resolve) => { - resolve(ShortcutInfosMock) - }); - } - }, getModuleUsageRecords: function (...args) { console.warn("bundle.getModuleUsageRecords interface mocked in the Previewer. How this interface works on the" + " Previewer may be different from that on a real device.")