Bug 1420791 - Drop explicit flushing styles before calling waitForPaintsFlushed(). r=boris

waitForPaintsFlushed() flushes styles inside it, so we don't need the explicit
flush.

MozReview-Commit-ID: KcQYRDWyhU0

--HG--
extra : rebase_source : 9adeaa107f358d9beb717a6d1fa96bbfd4c05416
This commit is contained in:
Hiroyuki Ikezoe 2017-11-27 12:29:45 +09:00
parent 126931ab2d
commit d606b7a73d

View File

@ -262,8 +262,6 @@ function runOMTATest(aTestFunction, aOnSkip, specialPowersForPrefs) {
utils.advanceTimeAndRefresh(0);
div.style.animation = animationName + " 10s";
// Trigger style flush
div.clientTop;
return waitForPaintsFlushed();
}).then(function() {
var opacity = utils.getOMTAStyle(div, "opacity");