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
4d6e47bc
Commit
4d6e47bc
authored
6 years ago
by
André Bargull
Committed by
Rick Waldron
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Change RelativeTimeFormat -> ListFormat in ListFormat test
parent
fa16d7df
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/intl402/ListFormat/constructor/supportedLocalesOf/options-undefined.js
+7
-7
7 additions, 7 deletions
...ormat/constructor/supportedLocalesOf/options-undefined.js
with
7 additions
and
7 deletions
test/intl402/ListFormat/constructor/supportedLocalesOf/options-undefined.js
+
7
−
7
View file @
4d6e47bc
...
@@ -2,18 +2,18 @@
...
@@ -2,18 +2,18 @@
// This code is governed by the BSD license found in the LICENSE file.
// This code is governed by the BSD license found in the LICENSE file.
/*---
/*---
esid: sec-Intl.
RelativeTime
Format.supportedLocalesOf
esid: sec-Intl.
List
Format.supportedLocalesOf
description: Checks handling of an undefined options argument to the supportedLocalesOf function.
description: Checks handling of an undefined options argument to the supportedLocalesOf function.
info: |
info: |
SupportedLocales ( availableLocales, requestedLocales, options )
SupportedLocales ( availableLocales, requestedLocales, options )
1. If options is not undefined, then
1. If options is not undefined, then
b. Let matcher be ? GetOption(options, "localeMatcher", "string", «"lookup", "best fit"», "best fit").
b. Let matcher be ? GetOption(options, "localeMatcher", "string", «"lookup", "best fit"», "best fit").
features: [Intl.
RelativeTime
Format]
features: [Intl.
List
Format]
---*/
---*/
assert
.
sameValue
(
typeof
Intl
.
RelativeTime
Format
.
supportedLocalesOf
,
"
function
"
,
assert
.
sameValue
(
typeof
Intl
.
List
Format
.
supportedLocalesOf
,
"
function
"
,
"
Should support Intl.
RelativeTime
Format.supportedLocalesOf.
"
);
"
Should support Intl.
List
Format.supportedLocalesOf.
"
);
Object
.
defineProperties
(
Object
.
prototype
,
{
Object
.
defineProperties
(
Object
.
prototype
,
{
"
localeMatcher
"
:
{
"
localeMatcher
"
:
{
...
@@ -21,6 +21,6 @@ Object.defineProperties(Object.prototype, {
...
@@ -21,6 +21,6 @@ Object.defineProperties(Object.prototype, {
}
}
});
});
assert
.
sameValue
(
Array
.
isArray
(
Intl
.
RelativeTime
Format
.
supportedLocalesOf
()),
true
,
"
No arguments
"
);
assert
.
sameValue
(
Array
.
isArray
(
Intl
.
List
Format
.
supportedLocalesOf
()),
true
,
"
No arguments
"
);
assert
.
sameValue
(
Array
.
isArray
(
Intl
.
RelativeTime
Format
.
supportedLocalesOf
([])),
true
,
"
One argument
"
);
assert
.
sameValue
(
Array
.
isArray
(
Intl
.
List
Format
.
supportedLocalesOf
([])),
true
,
"
One argument
"
);
assert
.
sameValue
(
Array
.
isArray
(
Intl
.
RelativeTime
Format
.
supportedLocalesOf
([],
undefined
)),
true
,
"
Two arguments
"
);
assert
.
sameValue
(
Array
.
isArray
(
Intl
.
List
Format
.
supportedLocalesOf
([],
undefined
)),
true
,
"
Two arguments
"
);
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