v8/test
Jungshik Shin f24b575d6c Fix canonicalization of grandfathered tags
ICU maps a few grandfathered tags to made-up values even when there
is no preferred value entry in the IANA language tag registry. [1]

1. Check for grandfathered tags without preferred value upfront
   and return them as they're.
2. Lowercase the input before structural validity check to simplify
   check for grandfathered tag without preferred value as well
   as regexps used in the structural validity check.

intl/general/grandfathered_tags_without_preferred_value is added and
intl/general/language_tags_with_preferred_values is changed to check
for case-insensitive matching of grandfathered tags.

[1] https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry

Bug: v8:7669
Test: test262/intl402/Intl/getCanonicalLocales/preferred-grandfathered
Test: intl/general/grandfathered_tags_without_preferred_value
Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
Change-Id: Ie0520de8712928300fd71fe152909789483ec256
Reviewed-on: https://chromium-review.googlesource.com/1156529
Commit-Queue: Jungshik Shin <jshin@chromium.org>
Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54829}
2018-07-31 23:49:45 +00:00
..
benchmarks Reland "[build] Remove legacy isolate configurations" 2018-03-28 12:36:55 +00:00
cctest [turbofan] Disable broker in JSContextSpecialization test. 2018-07-31 18:34:35 +00:00
common [arm][arm64] Fix TurboAssembler tests for hard aborts 2018-07-26 09:12:58 +00:00
debugger [tests] Mark debug/es6/debug-scope-default-param-with-eval as CRASH 2018-07-24 09:45:57 +00:00
fuzzer [wasm][multi-return][arm64] Pad parameter slots 2018-07-26 11:04:04 +00:00
inspector [utils] Change ReadFile interface 2018-07-31 08:59:00 +00:00
intl Fix canonicalization of grandfathered tags 2018-07-31 23:49:45 +00:00
js-perf-test Reland "[turbofan] Inline Number constructor in certain cases" 2018-07-23 13:17:19 +00:00
memory [builtins] Add embedded stats to --serialization-statistics 2018-07-05 12:33:26 +00:00
message [wasm] Make the output of --wasm-trace-memory more understandable 2018-07-19 09:49:36 +00:00
mjsunit [wasm] Use "wasm-function[i]" for wasm function name 2018-07-31 11:20:44 +00:00
mkgrokdump [explicit isolates] Move remaining roots to ReadOnyRoots 2018-07-03 15:26:04 +00:00
mozilla Roll ICU to ICU 62.1 2018-07-11 10:24:26 +00:00
preparser Reland "[build] Remove legacy isolate configurations" 2018-03-28 12:36:55 +00:00
test262 Fix canonicalization of grandfathered tags 2018-07-31 23:49:45 +00:00
torque [torque] fix assignment with operator 2018-07-31 19:12:22 +00:00
unittests [turbofan] Put some tests under a canonical handle scope. 2018-07-31 18:20:53 +00:00
wasm-spec-tests [wasm] Update spec tests 2018-07-26 09:54:02 +00:00
webkit [test] Skip slow tests 2018-05-23 14:14:34 +00:00
BUILD.gn Reland "Update GN configs for v8_perf target to allow running perf tests in swarming" 2018-07-17 08:40:17 +00:00