From: yangguo Date: Mon, 20 Jul 2015 10:52:35 +0000 (-0700) Subject: Do not expect verbatim JPY symbol in test. X-Git-Tag: upstream/4.7.83~1290 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d508345123ed0d21afa2e615221dd1827a2982b9;p=platform%2Fupstream%2Fv8.git Do not expect verbatim JPY symbol in test. 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} --- diff --git a/test/intl/number-format/format-currency.js b/test/intl/number-format/format-currency.js index 4a8db4e..004c566 100755 --- 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("JPY54,306", nf_JPY.format(parseFloat(54306.4047970))); var nf_EUR = new Intl.NumberFormat(['pt'], {style: 'currency', currency: 'EUR'});