mirror of
https://github.com/tc39/test262.git
synced 2025-07-28 16:34:27 +02:00
Update InitializeDateTimeFormat references to new CreateDateTimeFormat to reflect recent editorial change (#3889)
This commit is contained in:
parent
5d9dc53a19
commit
a5e2cf2433
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Tests that the options numberingSystem and calendar are mapped
|
Tests that the options numberingSystem and calendar are mapped
|
||||||
to lower case properly.
|
to lower case properly.
|
||||||
|
@ -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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Checks the order of getting "calendar" and "numberingSystem" options in the
|
Checks the order of getting "calendar" and "numberingSystem" options in the
|
||||||
DateTimeFormat is between "localeMatcher" and "hour12" options.
|
DateTimeFormat is between "localeMatcher" and "hour12" options.
|
||||||
info: |
|
info: |
|
||||||
4. Let _matcher_ be ? GetOption(_options_, `"localeMatcher"`, `"string"`, « `"lookup"`, `"best fit"` », `"best fit"`).
|
5. Let _matcher_ be ? GetOption(_options_, `"localeMatcher"`, ~string~, « `"lookup"`, `"best fit"` », `"best fit"`).
|
||||||
...
|
...
|
||||||
6. Let _calendar_ be ? GetOption(_options_, `"calendar"`, `"string"`, *undefined*, *undefined*).
|
7. Let _calendar_ be ? GetOption(_options_, `"calendar"`, ~string~ , ~empty~, *undefined*).
|
||||||
...
|
...
|
||||||
9. Let _numberingSystem_ be ? GetOption(_options_, `"numberingSystem"`, `"string"`, *undefined*, *undefined*).
|
10. Let _numberingSystem_ be ? GetOption(_options_, `"numberingSystem"`, ~string~, ~empty~, *undefined*).
|
||||||
...
|
...
|
||||||
12. Let _hour12_ be ? GetOption(_options_, `"hour12"`, `"boolean"`, *undefined*, *undefined*).
|
13. Let _hour12_ be ? GetOption(_options_, `"hour12"`, ~boolean~, ~empty~, *undefined*).
|
||||||
includes: [compareArray.js]
|
includes: [compareArray.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Tests that the constructor for Intl.DateTimeFormat uses appropriate default
|
Tests that the constructor for Intl.DateTimeFormat uses appropriate default
|
||||||
values for its arguments (locales and options).
|
values for its arguments (locales and options).
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Checks error cases for the options argument to the DateTimeFormat constructor.
|
Checks error cases for the options argument to the DateTimeFormat constructor.
|
||||||
info: |
|
info: |
|
||||||
InitializeDateTimeFormat ( dateTimeFormat, locales, options )
|
CreateDateTimeFormat ( dateTimeFormat, locales, options, required, defaults )
|
||||||
|
|
||||||
...
|
...
|
||||||
7. If calendar is not undefined, then
|
8. If calendar is not undefined, then
|
||||||
a. If calendar does not match the Unicode Locale Identifier type nonterminal, throw a RangeError exception.
|
a. If calendar does not match the Unicode Locale Identifier type nonterminal, throw a RangeError exception.
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Checks error cases for the options argument to the DateTimeFormat constructor.
|
Checks error cases for the options argument to the DateTimeFormat constructor.
|
||||||
info: |
|
info: |
|
||||||
InitializeDateTimeFormat ( dateTimeFormat, locales, options )
|
CreateDateTimeFormat ( dateTimeFormat, locales, options, required, defaults )
|
||||||
|
|
||||||
...
|
...
|
||||||
28. Let dateStyle be ? GetOption(options, "dateStyle", "string", « "full", "long", "medium", "short" », undefined).
|
39. Let dateStyle be ? GetOption(options, "dateStyle", "string", « "full", "long", "medium", "short" », undefined).
|
||||||
features: [Intl.DateTimeFormat-datetimestyle]
|
features: [Intl.DateTimeFormat-datetimestyle]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Checks handling of the options argument to the DateTimeFormat constructor.
|
Checks handling of the options argument to the DateTimeFormat constructor.
|
||||||
info: |
|
info: |
|
||||||
InitializeDateTimeFormat ( dateTimeFormat, locales, options )
|
CreateDateTimeFormat ( dateTimeFormat, locales, options, required, defaults )
|
||||||
|
|
||||||
...
|
...
|
||||||
28. Let dateStyle be ? GetOption(options, "dateStyle", "string", « "full", "long", "medium", "short" », undefined).
|
39. Let dateStyle be ? GetOption(options, "dateStyle", "string", « "full", "long", "medium", "short" », undefined).
|
||||||
29. If dateStyle is not undefined, set dateTimeFormat.[[DateStyle]] to dateStyle.
|
40. If dateStyle is not undefined, set dateTimeFormat.[[DateStyle]] to dateStyle.
|
||||||
features: [Intl.DateTimeFormat-datetimestyle]
|
features: [Intl.DateTimeFormat-datetimestyle]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Checks error cases for the options argument to the DateTimeFormat constructor.
|
Checks error cases for the options argument to the DateTimeFormat constructor.
|
||||||
info: |
|
info: |
|
||||||
[[DayPeriod]] `"dayPeriod"` `"narrow"`, `"short"`, `"long"`
|
[[DayPeriod]] `"dayPeriod"` `"narrow"`, `"short"`, `"long"`
|
||||||
InitializeDateTimeFormat ( dateTimeFormat, locales, options )
|
CreateDateTimeFormat ( dateTimeFormat, locales, options, required, defaults )
|
||||||
|
|
||||||
...
|
...
|
||||||
features: [Intl.DateTimeFormat-dayPeriod]
|
features: [Intl.DateTimeFormat-dayPeriod]
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Checks handling of the options argument to the DateTimeFormat constructor.
|
Checks handling of the options argument to the DateTimeFormat constructor.
|
||||||
info: |
|
info: |
|
||||||
[[DayPeriod]] `"dayPeriod"` `"narrow"`, `"short"`, `"long"`
|
[[DayPeriod]] `"dayPeriod"` `"narrow"`, `"short"`, `"long"`
|
||||||
InitializeDateTimeFormat ( dateTimeFormat, locales, options )
|
CreateDateTimeFormat ( dateTimeFormat, locales, options, required, defaults )
|
||||||
|
|
||||||
...
|
...
|
||||||
features: [Intl.DateTimeFormat-dayPeriod]
|
features: [Intl.DateTimeFormat-dayPeriod]
|
||||||
|
@ -2,14 +2,16 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Checks error cases for the options argument to the DateTimeFormat constructor.
|
Checks error cases for the options argument to the DateTimeFormat constructor.
|
||||||
info: |
|
info: |
|
||||||
InitializeDateTimeFormat ( dateTimeFormat, locales, options )
|
CreateDateTimeFormat ( dateTimeFormat, locales, options, required, defaults )
|
||||||
23. Let _opt_.[[FractionalSecondDigits]] be ? GetNumberOption(_options_, `"fractionalSecondDigits"`, 0, 3, 0).
|
|
||||||
|
|
||||||
...
|
...
|
||||||
|
37. For each row of Table 7, except the header row, in table order, do
|
||||||
|
a. Let prop be the name given in the Property column of the row.
|
||||||
|
b. If prop is "fractionalSecondDigits", then
|
||||||
|
i. Let value be ? GetNumberOption(options, "fractionalSecondDigits", 1, 3, undefined).
|
||||||
features: [Intl.DateTimeFormat-fractionalSecondDigits]
|
features: [Intl.DateTimeFormat-fractionalSecondDigits]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -2,12 +2,16 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Checks handling of the options argument to the DateTimeFormat constructor.
|
Checks handling of the options argument to the DateTimeFormat constructor.
|
||||||
info: |
|
info: |
|
||||||
InitializeDateTimeFormat ( dateTimeFormat, locales, options )
|
CreateDateTimeFormat ( dateTimeFormat, locales, options, required, defaults )
|
||||||
23. Let _opt_.[[FractionalSecondDigits]] be ? GetNumberOption(_options_, `"fractionalSecondDigits"`, 0, 3, 0).
|
...
|
||||||
|
37. For each row of Table 7, except the header row, in table order, do
|
||||||
|
a. Let prop be the name given in the Property column of the row.
|
||||||
|
b. If prop is "fractionalSecondDigits", then
|
||||||
|
i. Let value be ? GetNumberOption(options, "fractionalSecondDigits", 1, 3, undefined).
|
||||||
features: [Intl.DateTimeFormat-fractionalSecondDigits]
|
features: [Intl.DateTimeFormat-fractionalSecondDigits]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -2,14 +2,13 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Checks error cases for the options argument to the DateTimeFormat constructor.
|
Checks error cases for the options argument to the DateTimeFormat constructor.
|
||||||
info: |
|
info: |
|
||||||
InitializeDateTimeFormat ( dateTimeFormat, locales, options )
|
CreateDateTimeFormat ( dateTimeFormat, locales, options, required, defaults )
|
||||||
|
|
||||||
...
|
...
|
||||||
10. If numberingSystem is not undefined, then
|
27. If numberingSystem is not undefined, then
|
||||||
a. If numberingSystem does not match the Unicode Locale Identifier type nonterminal, throw a RangeError exception.
|
a. If numberingSystem does not match the Unicode Locale Identifier type nonterminal, throw a RangeError exception.
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -2,19 +2,20 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Conflicting properties of dateStyle/timeStyle must be rejected with a TypeError for the options argument to the DateTimeFormat constructor.
|
Conflicting properties of dateStyle/timeStyle must be rejected with a TypeError for the options argument to the DateTimeFormat constructor.
|
||||||
info: |
|
info: |
|
||||||
InitializeDateTimeFormat ( dateTimeFormat, locales, options )
|
InitializeDateTimeFormat ( dateTimeFormat, locales, options )
|
||||||
|
|
||||||
...
|
...
|
||||||
36. If dateStyle is not undefined or timeStyle is not undefined, then
|
43. If dateStyle is not undefined or timeStyle is not undefined, then
|
||||||
a. For each row in Table 4, except the header row, do
|
a. If hasExplicitFormatComponents is true, then
|
||||||
i. Let prop be the name given in the Property column of the row.
|
i. Throw a TypeError exception.
|
||||||
ii. Let p be opt.[[<prop>]].
|
b. If required is date and timeStyle is not undefined, then
|
||||||
iii. If p is not undefined, then
|
i. Throw a TypeError exception.
|
||||||
1. Throw a TypeError exception.
|
c. If required is time and dateStyle is not undefined, then
|
||||||
|
i. Throw a TypeError exception.
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: Checks the propagation of exceptions from the options for the DateTimeFormat constructor.
|
description: Checks the propagation of exceptions from the options for the DateTimeFormat constructor.
|
||||||
features: [Intl.DateTimeFormat-dayPeriod]
|
features: [Intl.DateTimeFormat-dayPeriod]
|
||||||
---*/
|
---*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: Checks the propagation of exceptions from the options for the DateTimeFormat constructor.
|
description: Checks the propagation of exceptions from the options for the DateTimeFormat constructor.
|
||||||
features: [Intl.DateTimeFormat-fractionalSecondDigits]
|
features: [Intl.DateTimeFormat-fractionalSecondDigits]
|
||||||
---*/
|
---*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: Checks the propagation of exceptions from the options for the DateTimeFormat constructor.
|
description: Checks the propagation of exceptions from the options for the DateTimeFormat constructor.
|
||||||
features: [Intl.DateTimeFormat-datetimestyle]
|
features: [Intl.DateTimeFormat-datetimestyle]
|
||||||
---*/
|
---*/
|
||||||
@ -12,9 +12,9 @@ features: [Intl.DateTimeFormat-datetimestyle]
|
|||||||
function CustomError() {}
|
function CustomError() {}
|
||||||
|
|
||||||
const options = [
|
const options = [
|
||||||
// InitializeDateTimeFormat step 28
|
// CreateDateTimeFormat step 39
|
||||||
"dateStyle",
|
"dateStyle",
|
||||||
// InitializeDateTimeFormat step 30
|
// CreateDateTimeFormat step 41
|
||||||
"timeStyle",
|
"timeStyle",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: Checks the propagation of exceptions from the options for the DateTimeFormat constructor.
|
description: Checks the propagation of exceptions from the options for the DateTimeFormat constructor.
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Checks error cases for the options argument to the DateTimeFormat constructor.
|
Checks error cases for the options argument to the DateTimeFormat constructor.
|
||||||
info: |
|
info: |
|
||||||
InitializeDateTimeFormat ( dateTimeFormat, locales, options )
|
CreateDateTimeFormat ( dateTimeFormat, locales, options, required, defaults )
|
||||||
|
|
||||||
...
|
...
|
||||||
30. Let timeStyle be ? GetOption(options, "timeStyle", "string", « "full", "long", "medium", "short" », undefined).
|
41. Let timeStyle be ? GetOption(options, "timeStyle", "string", « "full", "long", "medium", "short" », undefined).
|
||||||
features: [Intl.DateTimeFormat-datetimestyle]
|
features: [Intl.DateTimeFormat-datetimestyle]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Checks handling of the options argument to the DateTimeFormat constructor.
|
Checks handling of the options argument to the DateTimeFormat constructor.
|
||||||
info: |
|
info: |
|
||||||
InitializeDateTimeFormat ( dateTimeFormat, locales, options )
|
CreateDateTimeFormat ( dateTimeFormat, locales, options, required, default )
|
||||||
|
|
||||||
...
|
...
|
||||||
30. Let timeStyle be ? GetOption(options, "timeStyle", "string", « "full", "long", "medium", "short" », undefined).
|
41. Let timeStyle be ? GetOption(options, "timeStyle", string, « "full", "long", "medium", "short" », undefined).
|
||||||
31. If timeStyle is not undefined, set dateTimeFormat.[[TimeStyle]] to timeStyle.
|
42. Set dateTimeFormat.[[TimeStyle]] to timeStyle.
|
||||||
features: [Intl.DateTimeFormat-datetimestyle]
|
features: [Intl.DateTimeFormat-datetimestyle]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright 2021 the V8 project authors. All rights reserved.
|
// Copyright 2021 the V8 project authors. All rights reserved.
|
||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Invalid values for the `timeZoneName` option of the DateTimeFormat constructor
|
Invalid values for the `timeZoneName` option of the DateTimeFormat constructor
|
||||||
features: [Intl.DateTimeFormat-extend-timezonename]
|
features: [Intl.DateTimeFormat-extend-timezonename]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright 2021 the V8 project authors. All rights reserved.
|
// Copyright 2021 the V8 project authors. All rights reserved.
|
||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Valid values for the `timeZoneName` option of the DateTimeFormat constructor
|
Valid values for the `timeZoneName` option of the DateTimeFormat constructor
|
||||||
features: [Intl.DateTimeFormat-extend-timezonename]
|
features: [Intl.DateTimeFormat-extend-timezonename]
|
||||||
|
@ -2,15 +2,11 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Tests that Intl.DateTimeFormat contructor converts the options argument
|
Tests that Intl.DateTimeFormat contructor converts the options argument
|
||||||
to an object using `ToObject` (7.1.13).
|
to an object using `ToObject` (7.1.13).
|
||||||
info: |
|
|
||||||
12.1.2 ToDateTimeOptions
|
|
||||||
|
|
||||||
1. If options is undefined, let options be null; otherwise let options be ?
|
|
||||||
ToObject(options).
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const toObjectResults = [
|
const toObjectResults = [
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Tests that the options numberingSystem and calendar can be set through
|
Tests that the options numberingSystem and calendar can be set through
|
||||||
either the locale or the options.
|
either the locale or the options.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: Checks basic handling of dayPeriod, long format.
|
description: Checks basic handling of dayPeriod, long format.
|
||||||
features: [Intl.DateTimeFormat-dayPeriod]
|
features: [Intl.DateTimeFormat-dayPeriod]
|
||||||
locale: [en-US]
|
locale: [en-US]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: Checks basic handling of dayPeriod, narrow format.
|
description: Checks basic handling of dayPeriod, narrow format.
|
||||||
features: [Intl.DateTimeFormat-dayPeriod]
|
features: [Intl.DateTimeFormat-dayPeriod]
|
||||||
locale: [en-US]
|
locale: [en-US]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: Checks basic handling of fractionalSecondDigits.
|
description: Checks basic handling of fractionalSecondDigits.
|
||||||
features: [Intl.DateTimeFormat-fractionalSecondDigits]
|
features: [Intl.DateTimeFormat-fractionalSecondDigits]
|
||||||
locale: [en-US]
|
locale: [en-US]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: Checks basic handling of fractionalSecondDigits.
|
description: Checks basic handling of fractionalSecondDigits.
|
||||||
features: [Intl.DateTimeFormat-fractionalSecondDigits, Intl.DateTimeFormat-formatRange]
|
features: [Intl.DateTimeFormat-fractionalSecondDigits, Intl.DateTimeFormat-formatRange]
|
||||||
locale: [en-US]
|
locale: [en-US]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: Checks basic handling of fractionalSecondDigits.
|
description: Checks basic handling of fractionalSecondDigits.
|
||||||
features: [Intl.DateTimeFormat-fractionalSecondDigits, Intl.DateTimeFormat-formatRange]
|
features: [Intl.DateTimeFormat-fractionalSecondDigits, Intl.DateTimeFormat-formatRange]
|
||||||
locale: [en-US]
|
locale: [en-US]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Checks the DateTimeFormat choose different patterns based
|
Checks the DateTimeFormat choose different patterns based
|
||||||
on calendar.
|
on calendar.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: Checks basic handling of dayPeriod, long format.
|
description: Checks basic handling of dayPeriod, long format.
|
||||||
features: [Intl.DateTimeFormat-dayPeriod]
|
features: [Intl.DateTimeFormat-dayPeriod]
|
||||||
---*/
|
---*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: Checks basic handling of dayPeriod, narrow format.
|
description: Checks basic handling of dayPeriod, narrow format.
|
||||||
features: [Intl.DateTimeFormat-dayPeriod]
|
features: [Intl.DateTimeFormat-dayPeriod]
|
||||||
---*/
|
---*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: Checks basic handling of dayPeriod, short format.
|
description: Checks basic handling of dayPeriod, short format.
|
||||||
features: [Intl.DateTimeFormat-dayPeriod]
|
features: [Intl.DateTimeFormat-dayPeriod]
|
||||||
---*/
|
---*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: Checks basic handling of fractionalSecondDigits.
|
description: Checks basic handling of fractionalSecondDigits.
|
||||||
features: [Intl.DateTimeFormat-fractionalSecondDigits]
|
features: [Intl.DateTimeFormat-fractionalSecondDigits]
|
||||||
locale: [en-US]
|
locale: [en-US]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Checks the DateTimeFormat choose different patterns based
|
Checks the DateTimeFormat choose different patterns based
|
||||||
on calendar.
|
on calendar.
|
||||||
|
@ -9,7 +9,7 @@ description: >
|
|||||||
info: |
|
info: |
|
||||||
12.4.5 Intl.DateTimeFormat.prototype.resolvedOptions()
|
12.4.5 Intl.DateTimeFormat.prototype.resolvedOptions()
|
||||||
|
|
||||||
12.1.1 InitializeDateTimeFormat ( dateTimeFormat, locales, options )
|
11.1.2 CreateDateTimeFormat ( dateTimeFormat, locales, options, required, defaults )
|
||||||
29. If dateTimeFormat.[[Hour]] is not undefined, then
|
29. If dateTimeFormat.[[Hour]] is not undefined, then
|
||||||
a. Let hcDefault be dataLocaleData.[[hourCycle]].
|
a. Let hcDefault be dataLocaleData.[[hourCycle]].
|
||||||
b. Let hc be dateTimeFormat.[[HourCycle]].
|
b. Let hc be dateTimeFormat.[[HourCycle]].
|
||||||
|
@ -7,13 +7,12 @@ description: >
|
|||||||
The resolved locale doesn't include a hc Unicode extension value if the
|
The resolved locale doesn't include a hc Unicode extension value if the
|
||||||
hour12 or hourCycle option is also present.
|
hour12 or hourCycle option is also present.
|
||||||
info: |
|
info: |
|
||||||
12.1.1 InitializeDateTimeFormat(dateTimeFormat, locales, options)
|
11.1.2 CreateDateTimeFormat( dateTimeFormat, locales, options, required, defaults )
|
||||||
...
|
...
|
||||||
6. Let hour12 be ? GetOption(options, "hour12", "boolean", undefined, undefined).
|
13. Let hour12 be ? GetOption(options, "hour12", boolean, empty, undefined).
|
||||||
7. Let hourCycle be ? GetOption(options, "hourCycle", "string", « "h11", "h12", "h23", "h24" », undefined).
|
14. Let hourCycle be ? GetOption(options, "hourCycle", string, « "h11", "h12", "h23", "h24" », undefined).
|
||||||
8. If hour12 is not undefined, then
|
15. If hour12 is not undefined, then
|
||||||
a. Let hourCycle be null.
|
a. Set hourCycle to null.
|
||||||
9. Set opt.[[hc]] to hourCycle.
|
|
||||||
...
|
...
|
||||||
|
|
||||||
9.2.6 ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData)
|
9.2.6 ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Tests that the behavior of a Record is not affected by
|
Tests that the behavior of a Record is not affected by
|
||||||
adversarial changes to Object.prototype.
|
adversarial changes to Object.prototype.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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-initializedatetimeformat
|
esid: sec-createdatetimeformat
|
||||||
description: >
|
description: >
|
||||||
Tests that the behavior of a Record is not affected by
|
Tests that the behavior of a Record is not affected by
|
||||||
adversarial changes to Object.prototype.
|
adversarial changes to Object.prototype.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user