Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
test262
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pmaksimo
test262
Commits
9f39d988
Commit
9f39d988
authored
7 years ago
by
André Bargull
Committed by
Rick Waldron
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Unicode extension subtags correctly detected in Intl.Collator
parent
1abd6c65
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/intl402/Collator/unicode-ext-seq-in-private-tag.js
+27
-0
27 additions, 0 deletions
test/intl402/Collator/unicode-ext-seq-in-private-tag.js
test/intl402/Collator/unicode-ext-seq-with-attribute.js
+31
-0
31 additions, 0 deletions
test/intl402/Collator/unicode-ext-seq-with-attribute.js
with
58 additions
and
0 deletions
test/intl402/Collator/unicode-ext-seq-in-private-tag.js
0 → 100644
+
27
−
0
View file @
9f39d988
// Copyright (C) 2017 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-initializecollator
description: >
Unicode extension sequence-like parts are ignored in private-use tags.
info: |
10.1.1 InitializeCollator ( collator, locales, options )
...
15. For each element key of relevantExtensionKeys in List order, do
a. If key is "co", then
i. Let value be r.[[co]].
ii. If value is null, let value be "default".
iii. Set collator.[[Collation]] to value.
...
10.3.5 Intl.Collator.prototype.resolvedOptions ()
The function returns a new object whose properties and attributes are set as if constructed
by an object literal assigning to each of the following properties the value of the
corresponding internal slot of this Collator object (see 10.4): ...
---*/
var
c
=
new
Intl
.
Collator
(
"
de-x-u-co-phonebk
"
);
var
resolved
=
c
.
resolvedOptions
();
assert
.
sameValue
(
resolved
.
collation
,
"
default
"
);
This diff is collapsed.
Click to expand it.
test/intl402/Collator/unicode-ext-seq-with-attribute.js
0 → 100644
+
31
−
0
View file @
9f39d988
// Copyright (C) 2017 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-initializecollator
description: >
Attributes in Unicode extension subtags should be ignored.
info: |
10.1.1 InitializeCollator ( collator, locales, options )
...
15. For each element key of relevantExtensionKeys in List order, do
a. If key is "co", then
i. Let value be r.[[co]].
ii. If value is null, let value be "default".
iii. Set collator.[[Collation]] to value.
...
10.3.5 Intl.Collator.prototype.resolvedOptions ()
The function returns a new object whose properties and attributes are set as if constructed
by an object literal assigning to each of the following properties the value of the
corresponding internal slot of this Collator object (see 10.4): ...
---*/
var
colExpected
=
new
Intl
.
Collator
(
"
de-u-attrval-co-phonebk
"
);
var
colActual
=
new
Intl
.
Collator
(
"
de-u-co-phonebk
"
);
var
resolvedExpected
=
colExpected
.
resolvedOptions
();
var
resolvedActual
=
colActual
.
resolvedOptions
();
assert
.
sameValue
(
resolvedActual
.
locale
,
resolvedExpected
.
locale
);
assert
.
sameValue
(
resolvedActual
.
collation
,
resolvedExpected
.
collation
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment