Bug 1383974 - Part 4: Modify test for tooltip for animation-timing-function. r=pbro

MozReview-Commit-ID: BYr5dLw61DZ

--HG--
extra : rebase_source : 2e0c4277f43c0fd0ceab6d7e4c7d4f75d04c6115
This commit is contained in:
Daisuke Akatsuka 2017-09-25 08:44:06 +09:00
parent da64729896
commit 1d33654619

View File

@ -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");
}