v8/test/intl/date-format
Jungshik Shin 98c0cd9f8f Use the base locale when getting the best match pattern
This is to fix an assertion failure in formatToParts when
Chinese calendar is specified with 'u-ca-chinese'.

See https://github.com/tc39/ecma402/issues/225 . This CL
is a temporary work-around to get v8 match the spec in terms
of the external behavior, but it's not taking the steps in
the spec, yet.

Moreover, the spec may have to be revised as to how to pick the best
match pattern when the default calendar for a locale is different from
the calendar specified via 'u-ca'. How to handle 'related year' part
also needs to be specified.

Bug: chromium:826549
Test: intl/date-format/format-with-extensions
Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
Change-Id: I1f9a2467e86e71e024bc9babe18f16e49746008e
Reviewed-on: https://chromium-review.googlesource.com/1006915
Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Jungshik Shin <jshin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#52556}
2018-04-12 06:14:47 +00:00
..
calendar-with-multiple-type-subtags.js Support language tag extensions with multiple subtags for a key 2016-08-17 17:55:34 +00:00
date-format-to-parts.js [intl] Remove always-true --datetime-format-to-parts flag 2017-04-17 19:25:51 +00:00
default-locale.js
format-is-bound.js
format-test.js [tests] Fix timezone dependence in an intl test 2017-07-12 12:23:22 +00:00
format-with-extensions.js Use the base locale when getting the best match pattern 2018-04-12 06:14:47 +00:00
invalid-time.js Intl.DateTimeFormat: throw RangeError for non-finite input 2017-10-19 23:25:52 +00:00
month-far-future.js Add a test for a huge time value and month display 2018-01-27 10:52:46 +00:00
property-override.js
resolved-options-is-method.js
resolved-options.js
timezone-name.js
timezone.js
unmodified-options.js [intl] Avoid modifying options bag from constructor 2016-12-19 21:36:16 +00:00
wellformed-unsupported-locale.js