diff --git a/test/intl402/DateTimeFormat/constructor-options-dayPeriod-invalid.js b/test/intl402/DateTimeFormat/constructor-options-dayPeriod-invalid.js index d7e0b48361..da685403a8 100644 --- a/test/intl402/DateTimeFormat/constructor-options-dayPeriod-invalid.js +++ b/test/intl402/DateTimeFormat/constructor-options-dayPeriod-invalid.js @@ -4,16 +4,15 @@ /*--- esid: sec-initializedatetimeformat description: > - Checks error cases for the options argument to the DateTimeFormat constructor. + Checks error cases for the options argument to the DateTimeFormat constructor. info: | - [[DayPeriod]] `"dayPeriod"` `"narrow"`, `"short"`, `"long"` - InitializeDateTimeFormat ( dateTimeFormat, locales, options ) + [[DayPeriod]] `"dayPeriod"` `"narrow"`, `"short"`, `"long"` + InitializeDateTimeFormat ( dateTimeFormat, locales, options ) - ... + ... features: [Intl.DateTimeFormat-dayPeriod] ---*/ - const invalidOptions = [ "", "LONG", diff --git a/test/intl402/DateTimeFormat/constructor-options-dayPeriod-valid.js b/test/intl402/DateTimeFormat/constructor-options-dayPeriod-valid.js index 0bfbbc6ce0..7e48dafaf1 100644 --- a/test/intl402/DateTimeFormat/constructor-options-dayPeriod-valid.js +++ b/test/intl402/DateTimeFormat/constructor-options-dayPeriod-valid.js @@ -4,16 +4,15 @@ /*--- esid: sec-initializedatetimeformat description: > - Checks handling of the options argument to the DateTimeFormat constructor. + Checks handling of the options argument to the DateTimeFormat constructor. info: | - [[DayPeriod]] `"dayPeriod"` `"narrow"`, `"short"`, `"long"` - InitializeDateTimeFormat ( dateTimeFormat, locales, options ) + [[DayPeriod]] `"dayPeriod"` `"narrow"`, `"short"`, `"long"` + InitializeDateTimeFormat ( dateTimeFormat, locales, options ) - ... + ... features: [Intl.DateTimeFormat-dayPeriod] ---*/ - const validOptions = [ [undefined, undefined], ["long", "long"], diff --git a/test/intl402/DateTimeFormat/constructor-options-order-fractionalSecondDigits.js b/test/intl402/DateTimeFormat/constructor-options-order-fractionalSecondDigits.js index e47840b4e5..d33456e14a 100644 --- a/test/intl402/DateTimeFormat/constructor-options-order-fractionalSecondDigits.js +++ b/test/intl402/DateTimeFormat/constructor-options-order-fractionalSecondDigits.js @@ -5,20 +5,19 @@ esid: sec-initializedatetimeformat description: Checks the order of getting options of 'fractionalSecondDigits' for the DateTimeFormat constructor. info: | - ToDateTimeOptions ( options, required, defaults ) - 5. If required is "time" or "any", then - a. For each of the property names "hour", "minute", "second", "fractionalSecondDigits", do + ToDateTimeOptions ( options, required, defaults ) + 5. If required is "time" or "any", then + a. For each of the property names "hour", "minute", "second", "fractionalSecondDigits", do - InitializeDateTimeFormat ( dateTimeFormat, locales, options ) - 2. Let options be ? ToDateTimeOptions(options, "any", "date"). - 4. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). - 22. For each row of Table 5, except the header row, do - a. Let value be ? GetOption(options, prop, "string", « the strings given in the Values column of the row », undefined). - 23. Let _opt_.[[FractionalSecondDigits]] be ? GetNumberOption(_options_, `"fractionalSecondDigits"`, 0, 3, 0). - 26. Let matcher be ? GetOption(options, "formatMatcher", "string", « "basic", "best fit" », "best fit"). + InitializeDateTimeFormat ( dateTimeFormat, locales, options ) + 2. Let options be ? ToDateTimeOptions(options, "any", "date"). + 4. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). + 22. For each row of Table 5, except the header row, do + a. Let value be ? GetOption(options, prop, "string", « the strings given in the Values column of the row », undefined). + 23. Let _opt_.[[FractionalSecondDigits]] be ? GetNumberOption(_options_, `"fractionalSecondDigits"`, 0, 3, 0). + 26. Let matcher be ? GetOption(options, "formatMatcher", "string", « "basic", "best fit" », "best fit"). includes: [compareArray.js] features: [Intl.DateTimeFormat-fractionalSecondDigits] - ---*/ // Just need to ensure fractionalSecondDigits are get diff --git a/test/intl402/DateTimeFormat/constructor-options-order-quarter.js b/test/intl402/DateTimeFormat/constructor-options-order-quarter.js index a1bf6fde66..d1a40c0cec 100644 --- a/test/intl402/DateTimeFormat/constructor-options-order-quarter.js +++ b/test/intl402/DateTimeFormat/constructor-options-order-quarter.js @@ -10,7 +10,6 @@ info: | a. For each of the property names "weekday", "year", "quarter", "month", "day", do includes: [compareArray.js] features: [Intl.DateTimeFormat-quarter] - ---*/ // Just need to ensure quarter are get between year and month. diff --git a/test/intl402/DateTimeFormat/taint-Object-prototype-dayPeriod.js b/test/intl402/DateTimeFormat/taint-Object-prototype-dayPeriod.js index 92cf288560..27daf00864 100644 --- a/test/intl402/DateTimeFormat/taint-Object-prototype-dayPeriod.js +++ b/test/intl402/DateTimeFormat/taint-Object-prototype-dayPeriod.js @@ -2,7 +2,7 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -esid: 12.1.1_22 +esid: sec-initializedatetimeformat description: > Tests that the behavior of a Record is not affected by adversarial changes to Object.prototype. diff --git a/test/intl402/DateTimeFormat/taint-Object-prototype-fractionalSecondDigits.js b/test/intl402/DateTimeFormat/taint-Object-prototype-fractionalSecondDigits.js index d6ccae76ba..6b59bce739 100644 --- a/test/intl402/DateTimeFormat/taint-Object-prototype-fractionalSecondDigits.js +++ b/test/intl402/DateTimeFormat/taint-Object-prototype-fractionalSecondDigits.js @@ -2,7 +2,7 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -esid: 12.1.1_22 +esid: sec-initializedatetimeformat description: > Tests that the behavior of a Record is not affected by adversarial changes to Object.prototype. diff --git a/test/intl402/DateTimeFormat/taint-Object-prototype-quarter.js b/test/intl402/DateTimeFormat/taint-Object-prototype-quarter.js index ca5f7d4863..0f7e042415 100644 --- a/test/intl402/DateTimeFormat/taint-Object-prototype-quarter.js +++ b/test/intl402/DateTimeFormat/taint-Object-prototype-quarter.js @@ -2,10 +2,9 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -esid: 12.1.1_22 +esid: sec-initializedatetimeformat description: > - Tests that the behavior of a Record is not affected by - adversarial changes to Object.prototype. + Tests that the behavior of a Record is not affected by adversarial changes to Object.prototype. includes: [testIntl.js] features: [Intl.DateTimeFormat-quarter] ---*/