Bug 1424948 - Use waitForNextFrame instead of waitForFrame. r?birtles
MozReview-Commit-ID: AZJ7LyeIKq2
--- 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();