Bug 975931. Part 7: Enable APZC in reftests. r=dbaron

--HG--
extra : rebase_source : 74c33e5b5f4e8aa59199e488cb7606527d7beaec
This commit is contained in:
Robert O'Callahan 2014-02-24 20:17:58 +13:00
Родитель c7726a24e4
Коммит f3b7b2a6fa
2 изменённых файлов: 8 добавлений и 0 удалений

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

@ -107,6 +107,13 @@ RefTestCmdLineHandler.prototype =
branch.setBoolPref("security.fileuri.strict_origin_policy", false);
// Disable the thumbnailing service
branch.setBoolPref("browser.pagethumbnails.capturing_disabled", true);
// Enable APZC so we can test it
branch.setBoolPref("layers.async-pan-zoom.enabled", true);
// Since our tests are 800px wide, set the assume-designed-for width of all
// pages to be 800px (instead of the default of 980px). This ensures that
// 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);
var wwatch = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
.getService(nsIWindowWatcher);

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

@ -267,6 +267,7 @@ this.OnRefTestLoad = function OnRefTestLoad(win)
gBrowser.setAttribute("id", "browser");
gBrowser.setAttribute("type", "content-primary");
gBrowser.setAttribute("remote", gBrowserIsRemote ? "true" : "false");
gBrowser.setAttribute("mozasyncpanzoom", "true");
// Make sure the browser element is exactly 800x1000, no matter
// what size our window is
gBrowser.setAttribute("style", "min-width: 800px; min-height: 1000px; max-width: 800px; max-height: 1000px");