v8/test/intl
Jungshik Shin 2abb31a9d6 Use ICU to validate and canonicalize lang tag
- Get rid of an unnecessary call to uloc_canonicalize in js-locale.
- Do not use regex, but rely on ICU for the structrural validity check
with Chrome's ICU or ICU 63 or newer. Otherwise, continue to use regex.

This became possible thanks to a couple of bug fixes in ICU ToT that
were cherry-picked for Chromium's ICU.

Not yet done is to change js-locale to use CanonicalizeLocale().
That will make a few more tests pass.

Bug: v8:8135
Test: test262/intl402/Intl/getCanonicalLocales/*
Test: test262/intl402/Locale/*
Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
Change-Id: I45c10b298fb041e0b39a4d96309c68a7966f91c2
Reviewed-on: https://chromium-review.googlesource.com/c/1215223
Commit-Queue: Jungshik Shin <jshin@chromium.org>
Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56399}
2018-10-05 08:26:39 +00:00
..
break-iterator [Intl] Fix subclassing of V8BreakIterator 2018-09-06 07:10:10 +00:00
collator [Intl] Correctly pass usage option to Collator 2018-08-27 23:31:24 +00:00
date-format [Intl] move DateTimeFormat.prototype.resolvedOptions to c++ 2018-09-26 00:57:09 +00:00
general Use ICU to validate and canonicalize lang tag 2018-10-05 08:26:39 +00:00
list-format [Intl] add supportedLocales for Intl.ListFormat 2018-08-29 17:13:36 +00:00
locale [Intl] Throw when language tag argument to Intl.Locale is empty 2018-08-08 15:52:29 +00:00
number-format [intl] Bind NumberFormat.prototype.format to the proper receiver 2018-09-13 22:41:04 +00:00
overrides Revert "Make intl/overrides/caching.js more 'robust'" 2017-11-13 19:13:13 +00:00
plural-rules [intl] Port pluralrules#select to C++ 2018-09-13 02:32:45 +00:00
relative-time-format [Intl] add tests for 'quarter' 2018-09-26 20:56:49 +00:00
segmenter [Intl] add Intl.Segmenter - part 1 2018-10-05 02:42:30 +00:00
string Ensure String.prototype.normalize.length is 0 2015-08-05 15:13:45 +00:00
assert.js [intl] Fix default Intl language tag handling 2018-04-21 13:16:20 +00:00
bad-target.js [intl] Remove redundant type checking system 2017-01-09 22:24:57 +00:00
BUILD.gn [build] Add data deps for d8 test suites 2018-03-26 13:44:58 +00:00
intl.status Reland "[test] Increase coverage of d8_default test suites" 2018-09-07 07:53:29 +00:00
not-constructors.js [intl] Remove new.target check in Intl functions and method 2016-12-20 16:06:19 +00:00
OWNERS Add COMPONENT tags to OWNERS files where appropriate 2017-05-22 10:15:28 +00:00
regexp-assert.js [regexp, intl] Intl should not cause side effects to the RegExp object. 2016-03-29 11:57:03 +00:00
regexp-prepare.js [regexp, intl] Intl should not cause side effects to the RegExp object. 2016-03-29 11:57:03 +00:00
regress-4870.js Use stricter type checks in Intl's bound methods 2016-05-18 14:57:58 +00:00
regress-5179.js Avoid calling the builtin String.prototype.split in Intl 2016-07-08 16:53:09 +00:00
regress-7982.js [Intl] Call uloc_forLanguageTag before morphing a language tag 2018-09-11 06:45:12 +00:00
regress-8030.js [Intl] fix Intl.ListFormat / RelativeTimeFormat subclassing bug 2018-08-23 01:45:33 +00:00
regress-8031.js [Intl] fix Intl.ListFormat / RelativeTimeFormat subclassing bug 2018-08-23 01:45:33 +00:00
regress-875643.js [Intl] Convert options arg to Object before processing it 2018-08-31 23:56:33 +00:00
regress-888299.js [Intl] Remove incorrect CHECK 2018-09-26 00:24:28 +00:00
regress-8725514.js [Intl] Use JSObject with null proto to prevent side effects 2018-08-10 18:37:41 +00:00
testcfg.py [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
toStringTag.js [intl] Create the Intl constructors to C++ 2016-12-27 17:10:00 +00:00
utils.js Import intl test suite from v8-i18n project 2013-07-10 10:49:04 +00:00