Bug 1046490 Ensure Loop is always enabled in tests, so that turning the pref off doesn't cause failures. r=mikedeboer

This commit is contained in:
Mark Banner 2014-08-14 12:22:04 +01:00
parent 9668346e3a
commit bbabf6101c
2 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,10 @@ const kUAID = "f47ac11b-58ca-4372-9567-0e02b2c3d479";
// Fake loop server
var loopServer;
// Ensure loop is always enabled for tests
Services.prefs.setBoolPref("loop.enabled", true);
function setupFakeLoopServer() {
loopServer = new HttpServer();
loopServer.start(-1);

View File

@ -231,3 +231,6 @@ user_pref("browser.aboutHomeSnippets.updateUrl", "nonexistent://test");
// Enable debug logging in the mozApps implementation.
user_pref("dom.mozApps.debug", true);
// Enable Loop
user_pref("loop.enabled", true);