mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 1406311 - more tests for devtools l10n numbers method;r=ochameau
MozReview-Commit-ID: EwJxfER0qyV --HG-- extra : rebase_source : e9cb0cbb6bedd29a506f36fe35eb37772a82ce3c extra : source : 002176cb97a90f1019ae71486d9c19409d5ad2c7
This commit is contained in:
parent
f2ae08a103
commit
03fe9f57c9
@ -22,6 +22,12 @@ function test() {
|
||||
"`null` was properly localized.");
|
||||
is(l10n.numberWithDecimals(undefined, 2), "0",
|
||||
"`undefined` was properly localized.");
|
||||
is(l10n.numberWithDecimals(-1234.56789, 2), "-1,234.57",
|
||||
"Negative number was properly localized.");
|
||||
is(l10n.numberWithDecimals(1234.56789, 0), "1,235",
|
||||
"Number was properly localized with decimals set 0.");
|
||||
is(l10n.numberWithDecimals(-1234.56789, 0), "-1,235",
|
||||
"Negative number was properly localized with decimals set 0.");
|
||||
|
||||
finish();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user