Bug 1235723 - Part 2: Check that the short animation is surely finished before proceeding test. r?pbrosset draft
authorHiroyuki Ikezoe <hiikezoe@mozilla-japan.org>
Tue, 23 Feb 2016 10:55:25 +0900
changeset 333255 6677951e07f81307defa23917b7aa1ef8ab71857
parent 333254 85a8d8b511e54c83f90e11002e1f3a00c364044f
child 514681 283c33d78602268abc77afbd762e3b02b8c54a2c
push id11308
push userhiikezoe@mozilla-japan.org
push dateTue, 23 Feb 2016 01:55:57 +0000
reviewerspbrosset
bugs1235723
milestone47.0a1
Bug 1235723 - Part 2: Check that the short animation is surely finished before proceeding test. r?pbrosset MozReview-Commit-ID: FJS8HaWPgSe
devtools/server/tests/browser/browser_animation_keepFinished.js
--- a/devtools/server/tests/browser/browser_animation_keepFinished.js
+++ b/devtools/server/tests/browser/browser_animation_keepFinished.js
@@ -30,16 +30,19 @@ add_task(function*() {
   info("Add a short animation on the node");
   yield node.modifyAttributes([
     {attributeName: "class", newValue: "short-animation"}
   ]);
 
   info("Wait for longer than the animation's duration");
   yield wait(2000);
 
+  players = yield animations.getAnimationPlayersForNode(node);
+  is(players.length, 0, "The added animation is surely finished");
+
   is(reportedMutations.length, 1, "Only one mutation was reported");
   is(reportedMutations[0].type, "added", "The mutation was an addition");
 
   animations.off("mutations", onMutations);
 
   yield closeDebuggerClient(client);
   gBrowser.removeCurrentTab();
 });