Bug 986404: Disable fade-out of overlay scrollbars during reftest. r=mstange

This commit is contained in:
L. David Baron 2014-03-22 21:55:04 -07:00
Родитель cf68c54b12
Коммит 43c31de838
4 изменённых файлов: 12 добавлений и 3 удалений

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

@ -1,6 +1,3 @@
# Make overlay scrollbars never fade out
default-preferences pref(layout.testing.overlay-scrollbars.always-visible,true)
== 480053-1.html 480053-1-ref.html
== z-index-1.html z-index-1-ref.html
!= stacking-context-yes.html stacking-context-no.html

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

@ -38,6 +38,10 @@ function setDefaultPrefs() {
branch.setBoolPref("security.fileuri.strict_origin_policy", false);
// Disable the thumbnailing service
branch.setBoolPref("browser.pagethumbnails.capturing_disabled", true);
// Disable the fade out (over time) of overlay scrollbars, since we
// can't guarantee taking both reftest snapshots at the same point
// during the fade.
branch.setBoolPref("layout.testing.overlay-scrollbars.always-visible", true);
}
function setPermissions() {

4
layout/tools/reftest/bootstrap.js поставляемый
Просмотреть файл

@ -38,6 +38,10 @@ function setDefaultPrefs() {
branch.setIntPref("urlclassifier.updateinterval", 172800);
// Disable high-quality downscaling, since it makes reftests more difficult.
branch.setBoolPref("image.high_quality_downscaling.enabled", false);
// Disable the fade out (over time) of overlay scrollbars, since we
// can't guarantee taking both reftest snapshots at the same point
// during the fade.
branch.setBoolPref("layout.testing.overlay-scrollbars.always-visible", true);
}
var windowListener = {

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

@ -114,6 +114,10 @@ RefTestCmdLineHandler.prototype =
// in our 800px window we don't zoom out by default to try to fit the
// assumed 980px content.
branch.setIntPref("browser.viewport.desktopWidth", 800);
// Disable the fade out (over time) of overlay scrollbars, since we
// can't guarantee taking both reftest snapshots at the same point
// during the fade.
branch.setBoolPref("layout.testing.overlay-scrollbars.always-visible", true);
var wwatch = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
.getService(nsIWindowWatcher);