Bug 1421476 - Use waitForNextFrame() instead of waitForFrame() in file_restyles.html. r=birtles

MozReview-Commit-ID: K5tjO1tgoeN

--HG--
extra : rebase_source : 1b7334f7721f06cd8219a395b96089391f8aa3a2
This commit is contained in:
Hiroyuki Ikezoe 2017-11-29 13:05:20 +09:00
Родитель 2a187244e9
Коммит ffc92e2d66
1 изменённых файлов: 5 добавлений и 5 удалений

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

@ -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 ' +