Bug 1224877 - fix animation_timeline_pause_button intermittent;r=pbro

This commit is contained in:
Julian Descottes 2016-02-15 00:42:56 +01:00
parent ef0a1dd2a1
commit 05d335ab9c

View File

@ -65,8 +65,10 @@ add_task(function*() {
info("Select a finite animation, reload the page and wait for the " +
"animation to complete");
yield selectNode(".negative-delay", inspector);
let onScrubberStopped = waitForScrubberStopped(timeline);
yield reloadTab(inspector);
yield waitForScrubberStopped(timeline);
yield onScrubberStopped;
ok(btn.classList.contains("paused"),
"The button is in paused state once finite animations are done");