Bug 1319989 - Better test; r?pbro draft
authorYann Gravrand <y.gravrand@gmail.com>
Sun, 27 Nov 2016 15:28:33 +0100
changeset 444192 e438b2d984c96c267e3a7cf0c041d5fc21ca39d9
parent 444191 a94466b7fc8681a2e7885c31b10fdab0c3f8879d
child 444195 e531d7d6e923b7f30bc9cf982f3a5564e481c29f
push id37222
push userbmo:y.gravrand@gmail.com
push dateSun, 27 Nov 2016 14:29:43 +0000
reviewerspbro
bugs1319989
milestone53.0a1
Bug 1319989 - Better test; r?pbro MozReview-Commit-ID: Dvry1h3iTmx
devtools/client/animationinspector/test/browser_animation_timeline_shows_time_info.js
--- a/devtools/client/animationinspector/test/browser_animation_timeline_shows_time_info.js
+++ b/devtools/client/animationinspector/test/browser_animation_timeline_shows_time_info.js
@@ -37,16 +37,19 @@ add_task(function* () {
     }
     if (controller.animationPlayers[i].state.easing) {
       ok(title.match(/Easing: /), "The tooltip shows the easing");
     }
     if (controller.animationPlayers[i].state.fill) {
       ok(title.match(/Fill: /), "The tooltip shows the fill");
     }
     if (controller.animationPlayers[i].state.direction) {
-      if (title.match(/Direction: /)) {
-        ok(!title.match(/Direction: normal/), "The tooltip shows the direction if it is not 'normal'");
+      if (controller.animationPlayers[i].state.direction === "normal") {
+        ok(!title.match(/Direction: /),
+          "The tooltip doesn't show the direction if it is 'normal'");
+      } else {
+          ok(title.match(/Direction: /), "The tooltip shows the direction");
       }
     }
     ok(!title.match(/Iteration start:/),
       "The tooltip doesn't show the iteration start");
   });
 });