Bug 1120100 - Fix intermittent failure in browser_animation_actors_03.js. r=past
authorPatrick Brosset <pbrosset@mozilla.com>
Sat, 10 Jan 2015 09:04:00 +0200
changeset 223087 4e343b8494f90f68b4cf7102d8abe001c788f81a
parent 223086 b7cb3b5da58d6966d852f4f0d978933816377d6c
child 223088 15c6f78cd4ff9ea342d274490875526b2c9451a5
push id10756
push userpastithas@mozilla.com
push dateSun, 11 Jan 2015 09:33:32 +0000
treeherderfx-team@4e343b8494f9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspast
bugs1120100
milestone37.0a1
Bug 1120100 - Fix intermittent failure in browser_animation_actors_03.js. r=past
toolkit/devtools/server/tests/browser/browser_animation_actors_03.js
--- a/toolkit/devtools/server/tests/browser/browser_animation_actors_03.js
+++ b/toolkit/devtools/server/tests/browser/browser_animation_actors_03.js
@@ -40,16 +40,17 @@ function* playerHasAnInitialState(walker
   ok("isRunningOnCompositor" in player.initialState, "Player's state has isRunningOnCompositor");
 }
 
 function* playerStateIsCorrect(walker, front) {
   info("Checking the state of the simple animation");
 
   let node = yield walker.querySelector(walker.rootNode, ".simple-animation");
   let [player] = yield front.getAnimationPlayersForNode(node);
+  yield player.ready();
   let state = player.initialState;
 
   is(state.name, "move", "Name is correct");
   is(state.duration, 2000, "Duration is correct");
   // null = infinite count
   is(state.iterationCount, null, "Iteration count is correct");
   is(state.playState, "running", "PlayState is correct");
 
@@ -65,15 +66,16 @@ function* playerStateIsCorrect(walker, f
   is(state.iterationCount, 1, "Transition iteration count is correct");
   is(state.playState, "running", "Transition playState is correct");
 
   info("Checking the state of one of multiple animations on a node");
 
   node = yield walker.querySelector(walker.rootNode, ".multiple-animations");
   // Checking the 2nd player
   [, player] = yield front.getAnimationPlayersForNode(node);
+  yield player.ready();
   state = player.initialState;
 
   is(state.name, "glow", "The 2nd animation's name is correct");
   is(state.duration, 1000, "The 2nd animation's duration is correct");
   is(state.iterationCount, 5, "The 2nd animation's iteration count is correct");
   is(state.playState, "running", "The 2nd animation's playState is correct");
 }