From 82e048779774d5d17fd686e6437ac97406b497ec Mon Sep 17 00:00:00 2001 From: Michael Dyck Date: Wed, 21 Jul 2021 16:22:34 -0400 Subject: [PATCH] "Normalize" some YAML In each case, it's the scalar value associated with the "description" key. Normally in test262, this is written in either: - block notation (indicated by '>' or '|'), or - flow notation, single-line, on the same line as the key. In the cases addressed by this PR, the value is instead written in: - (1x) flow notation, *multi*-line, or - (2x) flow notation, single-line, on the line *after* the key. These are valid YAML, but they're styles that test262 doesn't otherwise use, so could conceivably confuse people or harnesses. This PR changes them to block notation. --- .../built-ins/Temporal/Calendar/prototype/fields/long-input.js | 3 ++- .../DateTimeFormat/constructor-options-timeZoneName-invalid.js | 2 +- .../DateTimeFormat/constructor-options-timeZoneName-valid.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/built-ins/Temporal/Calendar/prototype/fields/long-input.js b/test/built-ins/Temporal/Calendar/prototype/fields/long-input.js index afb7207d02..16004eeecf 100644 --- a/test/built-ins/Temporal/Calendar/prototype/fields/long-input.js +++ b/test/built-ins/Temporal/Calendar/prototype/fields/long-input.js @@ -3,7 +3,8 @@ /*--- esid: sec-temporal.calendar.prototype.fields -description: Temporal.Calendar.prototype.fields will take iterable of any size and any string +description: > + Temporal.Calendar.prototype.fields will take iterable of any size and any string and return Array of the same content. info: | ## 12.4.21 Temporal.Calendar.prototype.fields ( fields ) diff --git a/test/intl402/DateTimeFormat/constructor-options-timeZoneName-invalid.js b/test/intl402/DateTimeFormat/constructor-options-timeZoneName-invalid.js index 67bd8c604d..77957765f7 100644 --- a/test/intl402/DateTimeFormat/constructor-options-timeZoneName-invalid.js +++ b/test/intl402/DateTimeFormat/constructor-options-timeZoneName-invalid.js @@ -2,7 +2,7 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-initializedatetimeformat -description: +description: > Invalid values for the `timeZoneName` option of the DateTimeFormat constructor features: [Intl.DateTimeFormat-extend-timezonename] ---*/ diff --git a/test/intl402/DateTimeFormat/constructor-options-timeZoneName-valid.js b/test/intl402/DateTimeFormat/constructor-options-timeZoneName-valid.js index eb64b7407d..1af9bd2f1a 100644 --- a/test/intl402/DateTimeFormat/constructor-options-timeZoneName-valid.js +++ b/test/intl402/DateTimeFormat/constructor-options-timeZoneName-valid.js @@ -2,7 +2,7 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-initializedatetimeformat -description: +description: > Valid values for the `timeZoneName` option of the DateTimeFormat constructor features: [Intl.DateTimeFormat-extend-timezonename] ---*/