summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2017-02-16 09:30:50 +0100
committerMichaël Zasso <targos@protonmail.com>2017-02-22 15:57:37 +0100
commitca480719199d2ff38223aff8e301aced25d7e6f1 (patch)
tree2cd5678d5e5f5f2a740033db832a0fda2cda2c02 /test
parent7c0c7baff33b54992c37effa8822d2560698ee98 (diff)
downloadnode-new-ca480719199d2ff38223aff8e301aced25d7e6f1.tar.gz
test: make test-intl-no-icu-data more robust
In V8 5.6, String#toLocaleUpperCase can work even when no ICU data is loaded. Use another method to check the --icu-data-dir option pointing to an empty directory. PR-URL: https://github.com/nodejs/node/pull/10992 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-intl-no-icu-data.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/parallel/test-intl-no-icu-data.js b/test/parallel/test-intl-no-icu-data.js
index ce5e9a0812..695a4698b5 100644
--- a/test/parallel/test-intl-no-icu-data.js
+++ b/test/parallel/test-intl-no-icu-data.js
@@ -4,6 +4,5 @@ require('../common');
const assert = require('assert');
const config = process.binding('config');
-// No-op when ICU case mappings are unavailable.
-assert.strictEqual('ç'.toLocaleUpperCase('el'), 'ç');
+assert.deepStrictEqual(Intl.NumberFormat.supportedLocalesOf('en'), []);
assert.strictEqual(config.icuDataDir, 'test/fixtures/empty/');