From ffc92e2d661840af188240e71d6c2f488632aa40 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Wed, 29 Nov 2017 13:05:20 +0900 Subject: [PATCH] Bug 1421476 - Use waitForNextFrame() instead of waitForFrame() in file_restyles.html. r=birtles MozReview-Commit-ID: K5tjO1tgoeN --HG-- extra : rebase_source : 1b7334f7721f06cd8219a395b96089391f8aa3a2 --- dom/animation/test/mozilla/file_restyles.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dom/animation/test/mozilla/file_restyles.html b/dom/animation/test/mozilla/file_restyles.html index ddb8bb5e8d66..cca1dc436b4f 100644 --- a/dom/animation/test/mozilla/file_restyles.html +++ b/dom/animation/test/mozilla/file_restyles.html @@ -609,7 +609,7 @@ waitForAllPaints(() => { div.style.display = 'none'; // We need to wait a frame to apply display:none style. - await waitForFrame(); + await waitForNextFrame(); is(animation.playState, 'running', 'Script animations keep running even when the target element has ' + @@ -626,7 +626,7 @@ waitForAllPaints(() => { div.style.display = ''; // We need to wait a frame to unapply display:none style. - await waitForFrame(); + await waitForNextFrame(); var markers = await observeStyling(5); is(markers.length, 5, @@ -645,7 +645,7 @@ waitForAllPaints(() => { div.style.display = 'none'; // We need to wait a frame to apply display:none style. - await waitForFrame(); + await waitForNextFrame(); is(animation.playState, 'running', 'Opacity script animations keep running even when the target element ' + @@ -663,7 +663,7 @@ waitForAllPaints(() => { div.style.display = ''; // We need to wait a frame to unapply display:none style. - await waitForFrame(); + await waitForNextFrame(); ok(SpecialPowers.wrap(animation).isRunningOnCompositor, 'Opacity script animations restored from "display: none" should be ' + @@ -836,7 +836,7 @@ waitForAllPaints(() => { // Need a frame to give the animation a chance to be sent to the // compositor. - await waitForFrame(); + await waitForNextFrame(); ok(SpecialPowers.wrap(animation).isRunningOnCompositor, 'The opacity animation which is no longer overridden by the ' +