Bug 1226864 - Don't wait for an APZ flush on load-only or script type reftests, since they don't get snapshotted. r=dbaron

--HG--
extra : commitid : E9G7TUheJ8A
This commit is contained in:
Kartikaya Gupta 2015-11-24 09:20:42 -05:00
parent 607c52ca89
commit 5b361ff365

View File

@ -565,7 +565,9 @@ function WaitForTestEnd(contentRootElement, inPrintMode, spellCheckedElements) {
};
os.addObserver(flushWaiter, "apz-repaints-flushed", false);
if (windowUtils().flushApzRepaints()) {
var willSnapshot = (gCurrentTestType != TYPE_SCRIPT) &&
(gCurrentTestType != TYPE_LOAD);
if (willSnapshot && windowUtils().flushApzRepaints()) {
LogInfo("MakeProgress: done requesting APZ flush");
} else {
LogInfo("MakeProgress: APZ flush not required");