diff options
author | Michaël Zasso <targos@protonmail.com> | 2017-02-16 11:30:50 +0300 |
---|---|---|
committer | Italo A. Casas <me@italoacasas.com> | 2017-03-01 23:53:18 +0300 |
commit | 54e55e05ca46122691879b5e6dd03f34ecaa8659 (patch) | |
tree | 6d5771faa00349098c8ed6d385e3dd416b90e2a5 /test | |
parent | 7b253eb3edc1422633f8ec9fb11b6b5478aa8a33 (diff) |
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.js | 3 |
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 ce5e9a08121..695a4698b56 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/'); |