Bug 1383974 - Part 4: Modify test for tooltip for animation-timing-function. r=pbro
☠☠ backed out by af2062b5e308 ☠ ☠
authorDaisuke Akatsuka <dakatsuka@mozilla.com>
Fri, 22 Sep 2017 22:38:41 +0900
changeset 382455 588aa1f227f1541b4fb260cd708a93ad5b4f2ebf
parent 382454 f951257a6856075fb8268620895c8bfcc6101eb7
child 382456 dc8d998dc56b2bd060c1ae9cc8776c041c8f80f6
push id32558
push userkwierso@gmail.com
push dateFri, 22 Sep 2017 21:29:46 +0000
treeherdermozilla-central@61e58a7d800b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspbro
bugs1383974
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1383974 - Part 4: Modify test for tooltip for animation-timing-function. r=pbro MozReview-Commit-ID: BYr5dLw61DZ
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
@@ -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 {