layout/tools/reftest/reftest-preferences.js

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

michael@0 1 // For mochitests, we're more interested in testing the behavior of in-
michael@0 2 // content XBL bindings, so we set this pref to true. In reftests, we're
michael@0 3 // more interested in testing the behavior of XBL as it works in chrome,
michael@0 4 // so we want this pref to be false.
michael@0 5 branch.setBoolPref("dom.use_xbl_scopes_for_remote_xul", false);
michael@0 6 branch.setBoolPref("gfx.color_management.force_srgb", true);
michael@0 7 branch.setBoolPref("browser.dom.window.dump.enabled", true);
michael@0 8 branch.setIntPref("ui.caretBlinkTime", -1);
michael@0 9 branch.setBoolPref("dom.send_after_paint_to_content", true);
michael@0 10 // no slow script dialogs
michael@0 11 branch.setIntPref("dom.max_script_run_time", 0);
michael@0 12 branch.setIntPref("dom.max_chrome_script_run_time", 0);
michael@0 13 branch.setIntPref("hangmonitor.timeout", 0);
michael@0 14 // Ensure autoplay is enabled for all platforms.
michael@0 15 branch.setBoolPref("media.autoplay.enabled", true);
michael@0 16 // Disable updates
michael@0 17 branch.setBoolPref("app.update.enabled", false);
michael@0 18 // Disable addon updates and prefetching so we don't leak them
michael@0 19 branch.setBoolPref("extensions.update.enabled", false);
michael@0 20 branch.setBoolPref("extensions.getAddons.cache.enabled", false);
michael@0 21 // Disable blocklist updates so we don't have them reported as leaks
michael@0 22 branch.setBoolPref("extensions.blocklist.enabled", false);
michael@0 23 // Make url-classifier updates so rare that they won't affect tests
michael@0 24 branch.setIntPref("urlclassifier.updateinterval", 172800);
michael@0 25 // Disable high-quality downscaling, since it makes reftests more difficult.
michael@0 26 branch.setBoolPref("image.high_quality_downscaling.enabled", false);
michael@0 27 // Checking whether two files are the same is slow on Windows.
michael@0 28 // Setting this pref makes tests run much faster there.
michael@0 29 branch.setBoolPref("security.fileuri.strict_origin_policy", false);
michael@0 30 // Disable the thumbnailing service
michael@0 31 branch.setBoolPref("browser.pagethumbnails.capturing_disabled", true);
michael@0 32 // Since our tests are 800px wide, set the assume-designed-for width of all
michael@0 33 // pages to be 800px (instead of the default of 980px). This ensures that
michael@0 34 // in our 800px window we don't zoom out by default to try to fit the
michael@0 35 // assumed 980px content.
michael@0 36 branch.setIntPref("browser.viewport.desktopWidth", 800);
michael@0 37 // Disable the fade out (over time) of overlay scrollbars, since we
michael@0 38 // can't guarantee taking both reftest snapshots at the same point
michael@0 39 // during the fade.
michael@0 40 branch.setBoolPref("layout.testing.overlay-scrollbars.always-visible", true);
michael@0 41 // Disable interruptible reflow since (1) it's normally not going to
michael@0 42 // happen, but (2) it might happen if we somehow end up with both
michael@0 43 // pending user events and clock skew. So to avoid having to change
michael@0 44 // MakeProgress to deal with waiting for interruptible reflows to
michael@0 45 // complete for a rare edge case, we just disable interruptible
michael@0 46 // reflow so that that rare edge case doesn't lead to reftest
michael@0 47 // failures.
michael@0 48 branch.setBoolPref("layout.interruptible-reflow.enabled", false);

mercurial