projects
/
platform
/
upstream
/
v8.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4cd3f5
)
Do not expect verbatim JPY symbol in test.
author
yangguo
<yangguo@chromium.org>
Mon, 20 Jul 2015 10:52:35 +0000
(
03:52
-0700)
committer
Commit bot
<commit-bot@chromium.org>
Mon, 20 Jul 2015 10:52:51 +0000
(10:52 +0000)
The choice for the symbol seems to be locale-dependent.
R=jochen@chromium.org
BUG=v8:4314
LOG=N
Review URL: https://codereview.chromium.org/
1238133003
Cr-Commit-Position: refs/heads/master@{#29750}
test/intl/number-format/format-currency.js
patch
|
blob
|
history
diff --git
a/test/intl/number-format/format-currency.js
b/test/intl/number-format/format-currency.js
index
4a8db4e
..
004c566
100755
(executable)
--- a/
test/intl/number-format/format-currency.js
+++ b/
test/intl/number-format/format-currency.js
@@
-9,9
+9,10
@@
var nf_USD = new Intl.NumberFormat(['en'], {style: 'currency', currency: 'USD'})
assertEquals("$54,306.40", nf_USD.format(parseFloat(54306.4047970)));
-var nf_JPY = new Intl.NumberFormat(['ja'], {style: 'currency', currency: 'JPY'});
+var nf_JPY = new Intl.NumberFormat(['ja'],
+ {style: 'currency', currency: 'JPY', currencyDisplay: "code"});
-assertEquals("
¥
54,306", nf_JPY.format(parseFloat(54306.4047970)));
+assertEquals("
JPY
54,306", nf_JPY.format(parseFloat(54306.4047970)));
var nf_EUR = new Intl.NumberFormat(['pt'], {style: 'currency', currency: 'EUR'});