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