mirror of https://github.com/tc39/test262.git
commit
4182972a49
|
@ -3,16 +3,17 @@
|
|||
|
||||
/*---
|
||||
esid: sec-initializedatetimeformat
|
||||
description: Checks the order of getting "calendar" and "numberingSystem" options in the
|
||||
DateTimeFormat is between "localeMatcher" and "hour12" options.
|
||||
description: >
|
||||
Checks the order of getting "calendar" and "numberingSystem" options in the
|
||||
DateTimeFormat is between "localeMatcher" and "hour12" options.
|
||||
info: |
|
||||
4. Let _matcher_ be ? GetOption(_options_, `"localeMatcher"`, `"string"`, « `"lookup"`, `"best fit"` », `"best fit"`).
|
||||
...
|
||||
6. Let _calendar_ be ? GetOption(_options_, `"calendar"`, `"string"`, *undefined*, *undefined*).
|
||||
...
|
||||
9. Let _numberingSystem_ be ? GetOption(_options_, `"numberingSystem"`, `"string"`, *undefined*, *undefined*).
|
||||
...
|
||||
12. Let _hour12_ be ? GetOption(_options_, `"hour12"`, `"boolean"`, *undefined*, *undefined*).
|
||||
4. Let _matcher_ be ? GetOption(_options_, `"localeMatcher"`, `"string"`, « `"lookup"`, `"best fit"` », `"best fit"`).
|
||||
...
|
||||
6. Let _calendar_ be ? GetOption(_options_, `"calendar"`, `"string"`, *undefined*, *undefined*).
|
||||
...
|
||||
9. Let _numberingSystem_ be ? GetOption(_options_, `"numberingSystem"`, `"string"`, *undefined*, *undefined*).
|
||||
...
|
||||
12. Let _hour12_ be ? GetOption(_options_, `"hour12"`, `"boolean"`, *undefined*, *undefined*).
|
||||
includes: [compareArray.js]
|
||||
---*/
|
||||
|
||||
|
@ -38,10 +39,10 @@ const options = {
|
|||
};
|
||||
|
||||
const expected = [
|
||||
"localeMatcher",
|
||||
"calendar",
|
||||
"numberingSystem",
|
||||
"hour12"
|
||||
"localeMatcher",
|
||||
"calendar",
|
||||
"numberingSystem",
|
||||
"hour12"
|
||||
];
|
||||
|
||||
let df = new Intl.DateTimeFormat(undefined, options);
|
||||
|
|
|
@ -3,8 +3,9 @@
|
|||
|
||||
/*---
|
||||
esid: sec-initializedatetimeformat
|
||||
description: Checks the DateTimeFormat choose different patterns based
|
||||
on calendar.
|
||||
description: >
|
||||
Checks the DateTimeFormat choose different patterns based
|
||||
on calendar.
|
||||
locale: [en]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,8 +3,9 @@
|
|||
|
||||
/*---
|
||||
esid: sec-initializedatetimeformat
|
||||
description: Checks the DateTimeFormat choose different patterns based
|
||||
on calendar.
|
||||
description: >
|
||||
Checks the DateTimeFormat choose different patterns based
|
||||
on calendar.
|
||||
locale: [en]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,16 +3,17 @@
|
|||
|
||||
/*---
|
||||
esid: sec-initializenumberformat
|
||||
description: Checks the order of getting "numberingSystem" option in the
|
||||
NumberFormat is between "localeMatcher" and "style" options.
|
||||
description: >
|
||||
Checks the order of getting "numberingSystem" option in the
|
||||
NumberFormat is between "localeMatcher" and "style" options.
|
||||
info: |
|
||||
InitializeNumberFormat ( _numberFormat_, _locales_, _options_ )
|
||||
5. Let _matcher_ be ? GetOption(_options_, `"localeMatcher"`, `"string"`, « `"lookup"`, `"best fit"` », `"best fit"`).
|
||||
...
|
||||
7. Let _numberingSystem_ be ? GetOption(_options_, `"numberingSystem"`, `"string"`, *undefined*, *undefined*).
|
||||
...
|
||||
17. Let _style_ be ? GetOption(_options_, `"style"`, `"string"`, « `"decimal"`, `"percent"`, `"currency"` », `"decimal"`).
|
||||
InitializeNumberFormat ( _numberFormat_, _locales_, _options_ )
|
||||
|
||||
5. Let _matcher_ be ? GetOption(_options_, `"localeMatcher"`, `"string"`, « `"lookup"`, `"best fit"` », `"best fit"`).
|
||||
...
|
||||
7. Let _numberingSystem_ be ? GetOption(_options_, `"numberingSystem"`, `"string"`, *undefined*, *undefined*).
|
||||
...
|
||||
17. Let _style_ be ? GetOption(_options_, `"style"`, `"string"`, « `"decimal"`, `"percent"`, `"currency"` », `"decimal"`).
|
||||
includes: [compareArray.js]
|
||||
---*/
|
||||
|
||||
|
@ -34,9 +35,9 @@ const options = {
|
|||
};
|
||||
|
||||
const expected = [
|
||||
"localeMatcher",
|
||||
"numberingSystem",
|
||||
"style"
|
||||
"localeMatcher",
|
||||
"numberingSystem",
|
||||
"style"
|
||||
];
|
||||
|
||||
let nf = new Intl.NumberFormat(undefined, options);
|
||||
|
|
Loading…
Reference in New Issue