mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
Bug 1406375 - update animation inspector test to support formatted numbers;r=pbro
Integers used to skip localization & formatting. We used to have (for 2 decimals formatting) 1000 -> 1000 1000.1 -> 1,000.10 With the other patches attached here, the behavior is now consistent 1000 -> 1,000 1000.1 -> 1,000.10 This changeset updates some regexp in an animation inspector test to be compatible with the new format. MozReview-Commit-ID: 4YUNGlKp98z --HG-- extra : rebase_source : 638fced7a884a01c5fcd41e0df68e7c8d39c2e8c
This commit is contained in:
parent
4980535bfe
commit
4db2619112
@ -26,11 +26,11 @@ add_task(function* () {
|
||||
let state = controller.animationPlayers[i].state;
|
||||
|
||||
if (state.delay) {
|
||||
ok(title.match(/Delay: [\d.-]+s/), "The tooltip shows the delay");
|
||||
ok(title.match(/Delay: [\d.,-]+s/), "The tooltip shows the delay");
|
||||
}
|
||||
ok(title.match(/Duration: [\d.]+s/), "The tooltip shows the duration");
|
||||
ok(title.match(/Duration: [\d.,]+s/), "The tooltip shows the duration");
|
||||
if (state.endDelay) {
|
||||
ok(title.match(/End delay: [\d.-]+s/), "The tooltip shows the endDelay");
|
||||
ok(title.match(/End delay: [\d.,-]+s/), "The tooltip shows the endDelay");
|
||||
}
|
||||
if (state.iterationCount !== 1) {
|
||||
ok(title.match(/Repeats: /), "The tooltip shows the iterations");
|
||||
|
Loading…
x
Reference in New Issue
Block a user