v8/test/intl
Sathya Gunasekaran 59c03fef01 [Intl] Correctly pass usage option to Collator
The spec specifies that search and standard can not be valid values
for the collation extension keyword. Instead users are expected to use
the options bag to set the correct usage options.

But, ICU expects the usage option to be set through the collation
extension value.

In this patch, we set the usage option using the collation extension
value in ICU. For resolvedOptions, we filter out this extension value
using ICU to be spec compatible.

Previously, we stored the usage option on the JSCollator instance. But
this patch changes the logic to just look it up from the icu::Collator
when required. This saves one word of memory.

This fails a test262 that was incorrectly fixed. A follow on patch
will fix the test262 test.

Bug: v8:5751
Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
Change-Id: I8c66c6286287e686f4cd152fa1301f9d51c38654
Reviewed-on: https://chromium-review.googlesource.com/1180488
Reviewed-by: Adam Klein <adamk@chromium.org>
Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55437}
2018-08-27 23:31:24 +00:00
..
break-iterator Replace the JS version of supportedLocalesOf with the C++ version. 2018-08-27 17:44:49 +00:00
collator [Intl] Correctly pass usage option to Collator 2018-08-27 23:31:24 +00:00
date-format Accept Etc/GMT* as a valid time zone id. 2018-08-02 23:23:56 +00:00
general Fix canonicalization of grandfathered tags 2018-07-31 23:49:45 +00:00
list-format [Intl] Implement Intl.ListFromat format() and formatToParts(). 2018-08-08 23:52:27 +00:00
locale [Intl] Throw when language tag argument to Intl.Locale is empty 2018-08-08 15:52:29 +00:00
number-format Roll ICU to ICU 62.1 2018-07-11 10:24:26 +00:00
overrides Revert "Make intl/overrides/caching.js more 'robust'" 2017-11-13 19:13:13 +00:00
relative-time-format [Intl] Update NumberFormat setting changes RelativeTimeFormat 2018-07-30 21:06:58 +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 [Intl] Implement Intl.RelativeTimeFormat.prototype.resolvedOptions 2018-07-10 14:24:26 +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-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-8725514.js [Intl] Use JSObject with null proto to prevent side effects 2018-08-10 18:37:41 +00:00
testcfg.py [Intl] Implement Intl.RelativeTimeFormat.prototype.resolvedOptions 2018-07-10 14:24:26 +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