Bug 212943

Summary: [Intl] Update tests to support ICU 67
Product: WebKit Reporter: Ross Kirsling <ross.kirsling>
Component: New BugsAssignee: Ross Kirsling <ross.kirsling>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Ross Kirsling 2020-06-08 17:56:55 PDT
[Intl] Update tests to support ICU 67
Comment 1 Ross Kirsling 2020-06-08 17:59:40 PDT
Created attachment 401403 [details]
Patch
Comment 2 Ross Kirsling 2020-06-08 18:07:09 PDT
Comment on attachment 401403 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=401403&action=review

> JSTests/stress/intl-collator.js:106
>  // Ignores irrelevant extension keys.
> -shouldBe(testCollator(Intl.Collator('en-u-aa-aaaa-kn-true-bb-bbbb-co-eor-cc-cccc-y-yyd'), [{locale: 'en-u-co-eor-kn-true', collation: 'eor', numeric: true}, {locale: 'en-u-kn-true', numeric: true}]), true);
> +shouldBe(testCollator(Intl.Collator('en-u-aa-aaaa-kf-upper-bb-bbbb-co-eor-cc-cccc-y-yyd'), [{locale: 'en-u-co-eor-kf-upper', collation: 'eor', caseFirst: 'upper'}, {locale: 'en-u-kf-upper', caseFirst: 'upper'}]), true);
>  
>  // Ignores other extensions.
> -shouldBe(testCollator(Intl.Collator('en-u-kn-true-a-aa'), [{locale: 'en-u-kn-true', numeric: true}]), true);
> -shouldBe(testCollator(Intl.Collator('en-a-aa-u-kn-true'), [{locale: 'en-u-kn-true', numeric: true}]), true);
> -shouldBe(testCollator(Intl.Collator('en-a-aa-u-kn-true-b-bb'), [{locale: 'en-u-kn-true', numeric: true}]), true);
> +shouldBe(testCollator(Intl.Collator('en-u-kf-upper-a-aa'), [{locale: 'en-u-kf-upper', caseFirst: 'upper'}]), true);
> +shouldBe(testCollator(Intl.Collator('en-a-aa-u-kf-upper'), [{locale: 'en-u-kf-upper', caseFirst: 'upper'}]), true);
> +shouldBe(testCollator(Intl.Collator('en-a-aa-u-kf-upper-b-bb'), [{locale: 'en-u-kf-upper', caseFirst: 'upper'}]), true);

FWIW: I switched these particular cases to be version-independent instead, but could've gone either way.
Comment 3 EWS 2020-06-08 19:19:23 PDT
Committed r262763: <https://trac.webkit.org/changeset/262763>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 401403 [details].
Comment 4 Radar WebKit Bug Importer 2020-06-08 19:20:16 PDT
<rdar://problem/64145730>