Bug 1383974 - Part 4: Modify test for tooltip for animation-timing-function. r?pbro
MozReview-Commit-ID: BYr5dLw61DZ
--- a/devtools/client/animationinspector/test/browser_animation_timeline_shows_time_info.js
+++ b/devtools/client/animationinspector/test/browser_animation_timeline_shows_time_info.js
@@ -38,16 +38,26 @@ add_task(function* () {
ok(!title.match(/Repeats: /), "The tooltip doesn't show the iterations");
}
if (state.easing && state.easing !== "linear") {
ok(title.match(/Overall easing: /), "The tooltip shows the easing");
} else {
ok(!title.match(/Overall easing: /),
"The tooltip doesn't show the easing if it is 'linear'");
}
+ if (state.animationTimingFunction && state.animationTimingFunction !== "ease") {
+ is(state.type, "cssanimation",
+ "The animation type should be CSS Animations if has animation-timing-function");
+ ok(title.match(/Animation timing function: /),
+ "The tooltip shows animation-timing-function");
+ } else {
+ ok(!title.match(/Animation timing function: /),
+ "The tooltip doesn't show the animation-timing-function if it is 'ease'"
+ + " or not CSS Animations");
+ }
if (state.fill) {
ok(title.match(/Fill: /), "The tooltip shows the fill");
}
if (state.direction) {
if (state.direction === "normal") {
ok(!title.match(/Direction: /),
"The tooltip doesn't show the direction if it is 'normal'");
} else {