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:
Julian Descottes 2017-10-06 15:18:32 +02:00
parent f2ae08a103
commit 03fe9f57c9

View File

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