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
Родитель b2cbbc1a9d
Коммит ee8c9368e3
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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");