Bug 1042300 - test fix: shouldn't assume in-content and instantApply prefs are enabled, r=jaws

This commit is contained in:
Gijs Kruitbosch 2014-07-23 16:43:06 +01:00
parent 328eb8feca
commit d950b54159

View File

@ -1,6 +1,14 @@
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
Services.prefs.setBoolPref("browser.preferences.inContent", true);
Services.prefs.setBoolPref("browser.preferences.instantApply", true);
registerCleanupFunction(function() {
Services.prefs.clearUserPref("browser.preferences.inContent");
Services.prefs.clearUserPref("browser.preferences.instantApply");
});
add_task(function() {
let prefs = yield openPreferencesViaOpenPreferencesAPI("paneContent");
is(prefs.selectedPane, "paneContent", "Content pane was selected");