From 1d33654619f334f4afbaed965dc54e8df19f00db Mon Sep 17 00:00:00 2001 From: Daisuke Akatsuka Date: Mon, 25 Sep 2017 08:44:06 +0900 Subject: [PATCH] Bug 1383974 - Part 4: Modify test for tooltip for animation-timing-function. r=pbro MozReview-Commit-ID: BYr5dLw61DZ --HG-- extra : rebase_source : 2e0c4277f43c0fd0ceab6d7e4c7d4f75d04c6115 --- .../test/browser_animation_timeline_shows_time_info.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/devtools/client/animationinspector/test/browser_animation_timeline_shows_time_info.js b/devtools/client/animationinspector/test/browser_animation_timeline_shows_time_info.js index a33c30f830e9..d49623e6c6e3 100644 --- a/devtools/client/animationinspector/test/browser_animation_timeline_shows_time_info.js +++ b/devtools/client/animationinspector/test/browser_animation_timeline_shows_time_info.js @@ -43,6 +43,16 @@ add_task(function* () { 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"); }