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
febb11b2
Commit
febb11b2
authored
8 years ago
by
Leo Balter
Committed by
Tom Care
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Revert "islamicc should be canonicalized to islamic-civil (#747)" (#774)
This reverts commit
da4f4385
.
parent
b9d6fec9
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/Intl/getCanonicalLocales/main.js
+2
-0
2 additions, 0 deletions
test/intl402/Intl/getCanonicalLocales/main.js
test/intl402/Intl/getCanonicalLocales/preferred-subtag.js
+0
-24
0 additions, 24 deletions
test/intl402/Intl/getCanonicalLocales/preferred-subtag.js
with
2 additions
and
24 deletions
test/intl402/Intl/getCanonicalLocales/main.js
+
2
−
0
View file @
febb11b2
...
...
@@ -29,4 +29,6 @@ assertArray(gCL({'a': 0}), []);
assertArray
(
gCL
({}),
[]);
assertArray
(
gCL
([
'
ar-ma-u-ca-islamicc
'
]),
[
'
ar-MA-u-ca-islamicc
'
]);
assertArray
(
gCL
([
'
th-th-u-nu-thai
'
]),
[
'
th-TH-u-nu-thai
'
]);
This diff is collapsed.
Click to expand it.
test/intl402/Intl/getCanonicalLocales/preferred-subtag.js
deleted
100644 → 0
+
0
−
24
View file @
b9d6fec9
// Copyright 2016 Mozilla Corporation. All rights reserved.
// This code is governed by the license found in the LICENSE file.
/*---
esid: sec-canonicalizelanguagetag
description: Test for the replacement of a deprecated subtag with its preferred subtag.
info: |
6.2.3 CanonicalizeLanguageTag ( locale )
It takes the steps specified in RFC 5646 section 4.5, or successor, to bring the language
tag into canonical form, and to regularize the case of the subtags.
RFC 5646 section 4.5 - 3rd point: Subtags are replaced by their
'Preferred-Value', if there is one.
includes: [compareArray.js]
---*/
var
gCL
=
Intl
.
getCanonicalLocales
;
function
assertArray
(
l
,
r
)
{
assert
(
compareArray
(
l
,
r
),
r
);
}
// islamicc is deprecated and its preferred name is 'islamic-civil'.
// See http://www.unicode.org/repos/cldr/tags/latest/common/bcp47/calendar.xml .
assertArray
(
gCL
([
'
ar-ma-u-ca-islamicc
'
]),
[
'
ar-MA-u-ca-islamic-civil
'
]);
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