Bug 1467407 - Fix incorrect usage of ok() in server animation test;r=daisuke draft
authorJulian Descottes <jdescottes@mozilla.com>
Thu, 07 Jun 2018 12:00:32 +0200
changeset 805133 4c04af9fc0c19c0b827ee2ec85743bec1b149568
parent 804634 cec4a3cecc29ff97860198969b6fdff24b9e93bb
child 805134 d408fa2ebaa3fb5cbc9c623e3c8189b0edcfb7da
child 805696 0d377ab656da77ecf301099c096cd7c8ec8ee454
child 805699 b1707f8e1e627580deaef71a17033798ee0477a0
push id112576
push userjdescottes@mozilla.com
push dateThu, 07 Jun 2018 10:08:25 +0000
reviewersdaisuke
bugs1467407
milestone62.0a1
Bug 1467407 - Fix incorrect usage of ok() in server animation test;r=daisuke MozReview-Commit-ID: 5N1VtTYbZtL
devtools/server/tests/browser/browser_animation_getMultipleStates.js
--- a/devtools/server/tests/browser/browser_animation_getMultipleStates.js
+++ b/devtools/server/tests/browser/browser_animation_getMultipleStates.js
@@ -16,32 +16,32 @@ add_task(async function() {
   await client.close();
   gBrowser.removeCurrentTab();
 });
 
 async function playerHasAnInitialState(walker, animations) {
   let state = await getAnimationStateForNode(walker, animations,
     ".delayed-multiple-animations", 0);
 
-  ok(state.duration, 50000,
+  is(state.duration, 500,
      "The duration of the first animation is correct");
-  ok(state.iterationCount, 10,
+  is(state.iterationCount, 10,
      "The iterationCount of the first animation is correct");
-  ok(state.delay, 1000,
+  is(state.delay, 1000,
      "The delay of the first animation is correct");
 
   state = await getAnimationStateForNode(walker, animations,
     ".delayed-multiple-animations", 1);
 
-  ok(state.duration, 100000,
-     "The duration of the secon animation is correct");
-  ok(state.iterationCount, 30,
-     "The iterationCount of the secon animation is correct");
-  ok(state.delay, 750,
-     "The delay of the secon animation is correct");
+  is(state.duration, 1000,
+     "The duration of the second animation is correct");
+  is(state.iterationCount, 30,
+     "The iterationCount of the second animation is correct");
+  is(state.delay, 750,
+     "The delay of the second animation is correct");
 }
 
 async function getAnimationStateForNode(walker, animations, selector, playerIndex) {
   const node = await walker.querySelector(walker.rootNode, selector);
   const players = await animations.getAnimationPlayersForNode(node);
   const player = players[playerIndex];
   await player.ready();
   const state = await player.getCurrentState();