Bug 1424948 - Use waitForNextFrame instead of waitForFrame. r=birtles

MozReview-Commit-ID: AZJ7LyeIKq2

--HG--
extra : rebase_source : f42d2b0d4220d3d458093fdc5aed7ff11dcff63e
This commit is contained in:
Hiroyuki Ikezoe 2017-12-15 00:06:26 +09:00
Родитель f4496d23fc
Коммит 2a72c4f2f9
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -37,7 +37,7 @@ async_test(function(t) {
'margin-left does not increase after calling pause()'); 'margin-left does not increase after calling pause()');
previousAnimVal = getMarginLeft(cs); previousAnimVal = getMarginLeft(cs);
animation.play(); animation.play();
return animation.ready.then(waitForFrame); return animation.ready.then(waitForNextFrame);
})).then(t.step_func(function() { })).then(t.step_func(function() {
assert_greater_than(getMarginLeft(cs), previousAnimVal, assert_greater_than(getMarginLeft(cs), previousAnimVal,
'margin-left increases after calling play()'); 'margin-left increases after calling play()');