mirror of https://github.com/tc39/test262.git
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",
|
||||
// ToDateTimeOptions step 5.
|
||||
"hour", "minute", "second",
|
||||
// ToDateTimeOptions step 6.
|
||||
"dateStyle",
|
||||
// ToDateTimeOptions step 7.
|
||||
"timeStyle",
|
||||
|
||||
// InitializeDateTimeFormat step 4.
|
||||
"localeMatcher",
|
||||
|
@ -22,13 +26,9 @@ const expected = [
|
|||
"hour12",
|
||||
// InitializeDateTimeFormat step 7.
|
||||
"hourCycle",
|
||||
// InitializeDateTimeFormat step 22.
|
||||
// InitializeDateTimeFormat step 23.
|
||||
"timeZone",
|
||||
// InitializeDateTimeFormat step 28.
|
||||
"dateStyle",
|
||||
// InitializeDateTimeFormat step 30.
|
||||
"timeStyle",
|
||||
// InitializeDateTimeFormat step 33.
|
||||
"weekday",
|
||||
"era",
|
||||
"year",
|
||||
|
@ -39,6 +39,10 @@ const expected = [
|
|||
"second",
|
||||
"timeZoneName",
|
||||
"formatMatcher",
|
||||
// InitializeDateTimeFormat step 32.
|
||||
"dateStyle",
|
||||
// InitializeDateTimeFormat step 33.
|
||||
"timeStyle",
|
||||
];
|
||||
|
||||
const actual = [];
|
||||
|
|
|
@ -9,7 +9,6 @@ features: [Intl.DateTimeFormat-datetimestyle]
|
|||
---*/
|
||||
|
||||
const options = new Intl.DateTimeFormat([], {
|
||||
"timeStyle": "full",
|
||||
"hourCycle": "h24",
|
||||
"weekday": "short",
|
||||
"era": "short",
|
||||
|
@ -29,7 +28,6 @@ const expected = [
|
|||
"timeZone",
|
||||
"hourCycle",
|
||||
"hour12",
|
||||
"timeStyle",
|
||||
];
|
||||
|
||||
let actual = Object.getOwnPropertyNames(options);
|
||||
|
|
Loading…
Reference in New Issue