Bug 1123936 - Fix intermittent browser_animation_actors_02.js by making the test wait for animationPlayer.ready. r=bgrins, a=test-only
authorPatrick Brosset <pbrosset@mozilla.com>
Thu, 22 Jan 2015 01:39:00 -0500
changeset 249442 87a0f1b690400040355898c03e8324f121f42d57
parent 249441 f5ea68b9c6e271813b5473e105e086cff35e916d
child 249443 aaaa3b3b7bf84925f142a0c4ca74e1b6a67adb80
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins, test-only
bugs1123936
milestone37.0a2
Bug 1123936 - Fix intermittent browser_animation_actors_02.js by making the test wait for animationPlayer.ready. r=bgrins, a=test-only
toolkit/devtools/server/tests/browser/browser_animation_actors_02.js
--- a/toolkit/devtools/server/tests/browser/browser_animation_actors_02.js
+++ b/toolkit/devtools/server/tests/browser/browser_animation_actors_02.js
@@ -42,16 +42,17 @@ function* theRightNumberOfPlayersIsRetur
   node = yield walker.querySelector(walker.rootNode, ".transition");
   players = yield front.getAnimationPlayersForNode(node);
   is(players.length, 1, "One animation player was returned for the transitioned node");
 }
 
 function* playersCanBePausedAndResumed(walker, front) {
   let node = yield walker.querySelector(walker.rootNode, ".simple-animation");
   let [player] = yield front.getAnimationPlayersForNode(node);
+  yield player.ready;
 
   ok(player.initialState, "The player has an initialState");
   ok(player.getCurrentState, "The player has the getCurrentState method");
   is(player.initialState.playState, "running", "The animation is currently running");
 
   yield player.pause();
   let state = yield player.getCurrentState();
   is(state.playState, "paused", "The animation is now paused");