Bug 912322 - Sync pref from reftest-cmdline.js to bootstrap.js. r=jgriffin

This commit is contained in:
Bobby Holley 2013-09-06 09:12:55 -07:00
parent 1acd4e13cc
commit 74a8289887
3 changed files with 8 additions and 3 deletions

View File

@ -54,4 +54,4 @@ load 806751.html
load 833856.html
load 854604.html
load 854139.html
pref(dom.use_xbl_scopes_for_remote_xul,true) skip-if(Android) load 898939.html
pref(dom.use_xbl_scopes_for_remote_xul,true) load 898939.html

View File

@ -1171,8 +1171,8 @@ fuzzy(127,2) == 448193.html 448193-ref.html
!= 449149-1a.html about:blank
!= 449149-1b.html about:blank
# Retry the above with XBL scopes
test-pref(dom.use_xbl_scopes_for_remote_xul,true) fails-if(Android) != 449149-1a.html about:blank
test-pref(dom.use_xbl_scopes_for_remote_xul,true) fails-if(Android) != 449149-1b.html about:blank
test-pref(dom.use_xbl_scopes_for_remote_xul,true) != 449149-1a.html about:blank
test-pref(dom.use_xbl_scopes_for_remote_xul,true) != 449149-1b.html about:blank
== 449149-2.html 449149-2-ref.html
== 449171-1.html 449171-ref.html
== 449362-1.html 449362-1-ref.html

View File

@ -12,6 +12,11 @@ function setDefaultPrefs() {
var prefs = Components.classes["@mozilla.org/preferences-service;1"].
getService(Components.interfaces.nsIPrefService);
var branch = prefs.getDefaultBranch("");
// For mochitests, we're more interested in testing the behavior of in-
// content XBL bindings, so we set this pref to true. In reftests, we're
// more interested in testing the behavior of XBL as it works in chrome,
// so we want this pref to be false.
branch.setBoolPref("dom.use_xbl_scopes_for_remote_xul", false);
branch.setBoolPref("gfx.color_management.force_srgb", true);
branch.setBoolPref("browser.dom.window.dump.enabled", true);
branch.setIntPref("ui.caretBlinkTime", -1);