Bug 1330538 - Hide easing label in tooltip when the easing is linear (the default); r=daisuke

MozReview-Commit-ID: 4mfeki3OXhR

--HG--
extra : rebase_source : 69d0985ca33dc15e913573f5f84d93bb6a9eac78
This commit is contained in:
Brian Birtles 2017-02-09 16:05:45 +09:00
Родитель 4766e72aba
Коммит 0f72072021
2 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -299,8 +299,8 @@ AnimationTimeBlock.prototype = {
text += "\n";
}
// Adding the easing.
if (state.easing) {
// Adding the easing if it is not "linear".
if (state.easing && state.easing !== "linear") {
text += L10N.getStr("player.animationEasingLabel") + " ";
text += state.easing;
text += "\n";

Просмотреть файл

@ -37,8 +37,11 @@ add_task(function* () {
} else {
ok(!title.match(/Repeats: /), "The tooltip doesn't show the iterations");
}
if (state.easing) {
if (state.easing && state.easing !== "linear") {
ok(title.match(/Easing: /), "The tooltip shows the easing");
} else {
ok(!title.match(/Easing: /),
"The tooltip doesn't show the easing if it is 'linear'");
}
if (state.fill) {
ok(title.match(/Fill: /), "The tooltip shows the fill");