Bug 1319989 - Better test; r?pbro
MozReview-Commit-ID: Dvry1h3iTmx
--- 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");
});
});