mirror of
https://github.com/tc39/test262.git
synced 2025-07-22 13:34:38 +02:00
Sync the test w/ changes in intl-datetime-style 43
See https://github.com/tc39/proposal-intl-datetime-style/pull/43
This commit is contained in:
parent
2dcdba94e5
commit
8d3dd2d1a0
@ -15,6 +15,10 @@ const expected = [
|
|||||||
"weekday", "year", "month", "day",
|
"weekday", "year", "month", "day",
|
||||||
// ToDateTimeOptions step 5.
|
// ToDateTimeOptions step 5.
|
||||||
"hour", "minute", "second",
|
"hour", "minute", "second",
|
||||||
|
// ToDateTimeOptions step 6.
|
||||||
|
"dateStyle",
|
||||||
|
// ToDateTimeOptions step 7.
|
||||||
|
"timeStyle",
|
||||||
|
|
||||||
// InitializeDateTimeFormat step 4.
|
// InitializeDateTimeFormat step 4.
|
||||||
"localeMatcher",
|
"localeMatcher",
|
||||||
@ -22,13 +26,9 @@ const expected = [
|
|||||||
"hour12",
|
"hour12",
|
||||||
// InitializeDateTimeFormat step 7.
|
// InitializeDateTimeFormat step 7.
|
||||||
"hourCycle",
|
"hourCycle",
|
||||||
// InitializeDateTimeFormat step 22.
|
// InitializeDateTimeFormat step 23.
|
||||||
"timeZone",
|
"timeZone",
|
||||||
// InitializeDateTimeFormat step 28.
|
// InitializeDateTimeFormat step 28.
|
||||||
"dateStyle",
|
|
||||||
// InitializeDateTimeFormat step 30.
|
|
||||||
"timeStyle",
|
|
||||||
// InitializeDateTimeFormat step 33.
|
|
||||||
"weekday",
|
"weekday",
|
||||||
"era",
|
"era",
|
||||||
"year",
|
"year",
|
||||||
@ -39,6 +39,10 @@ const expected = [
|
|||||||
"second",
|
"second",
|
||||||
"timeZoneName",
|
"timeZoneName",
|
||||||
"formatMatcher",
|
"formatMatcher",
|
||||||
|
// InitializeDateTimeFormat step 32.
|
||||||
|
"dateStyle",
|
||||||
|
// InitializeDateTimeFormat step 33.
|
||||||
|
"timeStyle",
|
||||||
];
|
];
|
||||||
|
|
||||||
const actual = [];
|
const actual = [];
|
||||||
|
@ -9,7 +9,6 @@ features: [Intl.DateTimeFormat-datetimestyle]
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
const options = new Intl.DateTimeFormat([], {
|
const options = new Intl.DateTimeFormat([], {
|
||||||
"timeStyle": "full",
|
|
||||||
"hourCycle": "h24",
|
"hourCycle": "h24",
|
||||||
"weekday": "short",
|
"weekday": "short",
|
||||||
"era": "short",
|
"era": "short",
|
||||||
@ -29,7 +28,6 @@ const expected = [
|
|||||||
"timeZone",
|
"timeZone",
|
||||||
"hourCycle",
|
"hourCycle",
|
||||||
"hour12",
|
"hour12",
|
||||||
"timeStyle",
|
|
||||||
];
|
];
|
||||||
|
|
||||||
let actual = Object.getOwnPropertyNames(options);
|
let actual = Object.getOwnPropertyNames(options);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user