1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/tools/reftest/reftest-preferences.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,48 @@ 1.4 + // For mochitests, we're more interested in testing the behavior of in- 1.5 + // content XBL bindings, so we set this pref to true. In reftests, we're 1.6 + // more interested in testing the behavior of XBL as it works in chrome, 1.7 + // so we want this pref to be false. 1.8 + branch.setBoolPref("dom.use_xbl_scopes_for_remote_xul", false); 1.9 + branch.setBoolPref("gfx.color_management.force_srgb", true); 1.10 + branch.setBoolPref("browser.dom.window.dump.enabled", true); 1.11 + branch.setIntPref("ui.caretBlinkTime", -1); 1.12 + branch.setBoolPref("dom.send_after_paint_to_content", true); 1.13 + // no slow script dialogs 1.14 + branch.setIntPref("dom.max_script_run_time", 0); 1.15 + branch.setIntPref("dom.max_chrome_script_run_time", 0); 1.16 + branch.setIntPref("hangmonitor.timeout", 0); 1.17 + // Ensure autoplay is enabled for all platforms. 1.18 + branch.setBoolPref("media.autoplay.enabled", true); 1.19 + // Disable updates 1.20 + branch.setBoolPref("app.update.enabled", false); 1.21 + // Disable addon updates and prefetching so we don't leak them 1.22 + branch.setBoolPref("extensions.update.enabled", false); 1.23 + branch.setBoolPref("extensions.getAddons.cache.enabled", false); 1.24 + // Disable blocklist updates so we don't have them reported as leaks 1.25 + branch.setBoolPref("extensions.blocklist.enabled", false); 1.26 + // Make url-classifier updates so rare that they won't affect tests 1.27 + branch.setIntPref("urlclassifier.updateinterval", 172800); 1.28 + // Disable high-quality downscaling, since it makes reftests more difficult. 1.29 + branch.setBoolPref("image.high_quality_downscaling.enabled", false); 1.30 + // Checking whether two files are the same is slow on Windows. 1.31 + // Setting this pref makes tests run much faster there. 1.32 + branch.setBoolPref("security.fileuri.strict_origin_policy", false); 1.33 + // Disable the thumbnailing service 1.34 + branch.setBoolPref("browser.pagethumbnails.capturing_disabled", true); 1.35 + // Since our tests are 800px wide, set the assume-designed-for width of all 1.36 + // pages to be 800px (instead of the default of 980px). This ensures that 1.37 + // in our 800px window we don't zoom out by default to try to fit the 1.38 + // assumed 980px content. 1.39 + branch.setIntPref("browser.viewport.desktopWidth", 800); 1.40 + // Disable the fade out (over time) of overlay scrollbars, since we 1.41 + // can't guarantee taking both reftest snapshots at the same point 1.42 + // during the fade. 1.43 + branch.setBoolPref("layout.testing.overlay-scrollbars.always-visible", true); 1.44 + // Disable interruptible reflow since (1) it's normally not going to 1.45 + // happen, but (2) it might happen if we somehow end up with both 1.46 + // pending user events and clock skew. So to avoid having to change 1.47 + // MakeProgress to deal with waiting for interruptible reflows to 1.48 + // complete for a rare edge case, we just disable interruptible 1.49 + // reflow so that that rare edge case doesn't lead to reftest 1.50 + // failures. 1.51 + branch.setBoolPref("layout.interruptible-reflow.enabled", false);