Bug 768276. Part 5 - Set allAppsLaunchable = true on API tests that skip native installation. r=ctalbert

This commit is contained in:
Felipe Gomes 2012-06-29 13:46:21 -07:00
parent 01a767170b
commit 1744d44393

View File

@ -9,6 +9,7 @@ var popupNotifications = getPopupNotifications(window.top);
var event_listener_loaded = {};
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/Webapps.jsm");
Components.classes["@mozilla.org/permissionmanager;1"]
.getService(Components.interfaces.nsIPermissionManager)
@ -21,6 +22,9 @@ SpecialPowers.setBoolPref('dom.mozBrowserFramesEnabled', true);
SpecialPowers.setBoolPref('browser.mozApps.installer.dry_run', true);
SpecialPowers.setBoolPref("dom.mozBrowserFramesWhitelist", "http://www.example.com");
let originalAAL = DOMApplicationRegistry.allAppsLaunchable;
DOMApplicationRegistry.allAppsLaunchable = true;
var triggered = false;
function iterateMethods(label, root, suppress) {
@ -104,5 +108,6 @@ function tearDown() {
uninstallAll();
popupNotifications.panel.removeEventListener("popupshown", mainCommand, false);
SpecialPowers.clearUserPref('browser.mozApps.installer.dry_run');
DOMApplicationRegistry.allAppsLaunchable = originalAAL;
}