Merge pull request #2396 from leobalter/2381/yaml

Yaml consistency
This commit is contained in:
Leo Balter 2019-10-09 13:29:16 -04:00 committed by GitHub
commit 4182972a49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 28 deletions

View File

@ -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);

View File

@ -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]
---*/

View File

@ -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]
---*/

View File

@ -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);