зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
4766e72aba
Коммит
0f72072021
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче