Bug 1424948 - Use waitForNextFrame instead of waitForFrame. r?birtles draft
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Fri, 15 Dec 2017 00:06:26 +0900
changeset 711712 a3f38e019a04f9f0c28789f4f1c7a0676aa8c26c
parent 711178 defccba824aa91e8d4d820b1defaadfdca34bac7
child 711713 7e2d6a2e2c7465050d9a3e63e3a0efe23e3196be
child 711742 23038e9bc3f7f480845b91839629c4bde387d2b4
push id93118
push userhikezoe@mozilla.com
push dateThu, 14 Dec 2017 15:40:14 +0000
reviewersbirtles
bugs1424948
milestone59.0a1
Bug 1424948 - Use waitForNextFrame instead of waitForFrame. r?birtles MozReview-Commit-ID: AZJ7LyeIKq2
dom/animation/test/css-transitions/file_animation-pausing.html
--- a/dom/animation/test/css-transitions/file_animation-pausing.html
+++ b/dom/animation/test/css-transitions/file_animation-pausing.html
@@ -32,17 +32,17 @@ async_test(function(t) {
   })).then(t.step_func(function() {
     previousAnimVal = getMarginLeft(cs);
     return waitForNextFrame();
   })).then(t.step_func(function() {
     assert_equals(getMarginLeft(cs), previousAnimVal,
                   'margin-left does not increase after calling pause()');
     previousAnimVal = getMarginLeft(cs);
     animation.play();
-    return animation.ready.then(waitForFrame);
+    return animation.ready.then(waitForNextFrame);
   })).then(t.step_func(function() {
     assert_greater_than(getMarginLeft(cs), previousAnimVal,
                         'margin-left increases after calling play()');
     t.done();
   }));
 }, 'pause() and play() a transition');
 
 done();