зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1379896 - Disable cosmetic animations in mozscreenshots. r=MattN
MozReview-Commit-ID: AWM1jgdpb9u --HG-- extra : rebase_source : 045bf5ea03fd8b10c1d5cb05abe3aee871b0f1e4
This commit is contained in:
Родитель
400112650a
Коммит
02b1d32eaf
|
@ -88,6 +88,9 @@ this.TestRunner = {
|
|||
Services.prefs.setCharPref("extensions.ui.lastCategory", "addons://list/extension");
|
||||
// Don't let the caret blink since it causes false positives for image diffs
|
||||
Services.prefs.setIntPref("ui.caretBlinkTime", -1);
|
||||
// Disable some animations that can cause false positives, such as the
|
||||
// reload/stop button spinning animation.
|
||||
Services.prefs.setBoolPref("toolkit.cosmeticAnimations.enabled", false);
|
||||
|
||||
let browserWindow = Services.wm.getMostRecentWindow("navigator:browser");
|
||||
|
||||
|
@ -151,6 +154,7 @@ this.TestRunner = {
|
|||
gBrowser.unpinTab(gBrowser.selectedTab);
|
||||
gBrowser.selectedBrowser.loadURI("data:text/html;charset=utf-8,<h1>Done!");
|
||||
browserWindow.restore();
|
||||
Services.prefs.clearUserPref("toolkit.cosmeticAnimations.enabled");
|
||||
},
|
||||
|
||||
// helpers
|
||||
|
|
Загрузка…
Ссылка в новой задаче