Do not expect verbatim JPY symbol in test.
authoryangguo <yangguo@chromium.org>
Mon, 20 Jul 2015 10:52:35 +0000 (03:52 -0700)
committerCommit 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

index 4a8db4e..004c566 100755 (executable)
@@ -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("JPY54,306", nf_JPY.format(parseFloat(54306.4047970)));
 
 var nf_EUR = new Intl.NumberFormat(['pt'], {style: 'currency', currency: 'EUR'});