Bug 1120100 - Fix intermittent failure in browser_animation_actors_03.js. r=past

This commit is contained in:
Patrick Brosset 2015-01-10 09:04:00 +02:00
parent 0590585aba
commit f8021f0ac7

View File

@ -45,6 +45,7 @@ function* playerStateIsCorrect(walker, front) {
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");
@ -70,6 +71,7 @@ function* playerStateIsCorrect(walker, front) {
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");