WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
210085
Update JSTests to assume ICU 60+
https://bugs.webkit.org/show_bug.cgi?id=210085
Summary
Update JSTests to assume ICU 60+
Ross Kirsling
Reported
2020-04-06 17:49:23 PDT
Update JSTests to assume ICU 60+
Attachments
Patch
(6.98 KB, patch)
2020-04-06 17:50 PDT
,
Ross Kirsling
no flags
Details
Formatted Diff
Diff
Patch
(8.14 KB, patch)
2020-04-06 20:55 PDT
,
Ross Kirsling
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ross Kirsling
Comment 1
2020-04-06 17:50:43 PDT
Created
attachment 395639
[details]
Patch
Ross Kirsling
Comment 2
2020-04-06 20:44:39 PDT
Argh, the following test case depends on ICU version (incidentally one of the same cases affected by
bug 154530
but in a new way): Intl.NumberFormat('es').format(1234.567) • using ICU 63 (WinCairo): 1.234,567 • using ICU 64 (Catalina): 1234,567 A simple fix would be to add a digit, in which case both use the thousands separator.
Ross Kirsling
Comment 3
2020-04-06 20:55:56 PDT
Created
attachment 395649
[details]
Patch
Ross Kirsling
Comment 4
2020-04-06 22:41:04 PDT
To elaborate a bit more about the 'es' locale change... Evidently this was a bug fix, since CLDR data specifies "minimumGroupingDigits" as 2 for Spanish:
https://www.unicode.org/cldr/charts/35/by_type/numbers.symbols.html#70ef5e0c9d323e01
It is a surprising change though, so apparently folks have filed bugs about it elsewhere:
https://unicode-org.atlassian.net/browse/CLDR-13676
https://bugs.chromium.org/p/chromium/issues/detail?id=1019268
Intl.NumberFormat V3 plans to make useGrouping an enum so that this can be better configured:
https://github.com/tc39/proposal-intl-numberformat-v3#part-3-grouping-enum-ecma-402-367
Ross Kirsling
Comment 5
2020-04-07 11:46:31 PDT
Comment on
attachment 395649
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=395649&action=review
> JSTests/stress/intl-pluralrules.js:290 > -shouldBe(new Intl.PluralRules('ar').resolvedOptions().pluralCategories.join(), 'zero,one,two,few,many,other'); > +shouldBe(new Intl.PluralRules('ar').resolvedOptions().pluralCategories.join(), 'few,many,one,two,zero,other');
Also, regarding this fix to a previously-disabled test: ECMA-402 doesn't specify an order for these, so engines are all just keeping them in the order received from ICU.
Yusuke Suzuki
Comment 6
2020-04-07 11:58:42 PDT
Comment on
attachment 395649
[details]
Patch r=me
EWS
Comment 7
2020-04-07 12:36:00 PDT
Committed
r259658
: <
https://trac.webkit.org/changeset/259658
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 395649
[details]
.
Radar WebKit Bug Importer
Comment 8
2020-04-07 12:36:16 PDT
<
rdar://problem/61405323
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug