From a919d530191fe6de4be3cfd88bf9687e70043e11 Mon Sep 17 00:00:00 2001 From: Ross Kirsling Date: Thu, 16 May 2019 10:46:55 -0700 Subject: [PATCH] Fix invalid YAML in formatRange* tests. (#2157) --- .../prototype/formatRange/argument-date-string.js | 4 ++-- .../prototype/formatRange/argument-near-time-boundaries.js | 4 ++-- .../prototype/formatRange/argument-to-integer.js | 4 ++-- .../prototype/formatRange/date-is-infinity-throws.js | 4 ++-- .../prototype/formatRange/date-is-nan-throws.js | 4 ++-- .../prototype/formatRange/date-undefined-throws.js | 4 ++-- .../prototype/formatRange/date-x-greater-than-y-throws.js | 4 ++-- test/intl402/DateTimeFormat/prototype/formatRange/en-US.js | 2 +- .../prototype/formatRange/this-is-not-object-throws.js | 4 ++-- .../prototype/formatRangeToParts/argument-date-string.js | 4 ++-- .../formatRangeToParts/argument-near-time-boundaries.js | 4 ++-- .../prototype/formatRangeToParts/argument-to-integer.js | 4 ++-- .../prototype/formatRangeToParts/date-is-infinity-throws.js | 4 ++-- .../prototype/formatRangeToParts/date-is-nan-throws.js | 4 ++-- .../prototype/formatRangeToParts/date-undefined-throws.js | 4 ++-- .../formatRangeToParts/date-x-greater-than-y-throws.js | 4 ++-- .../DateTimeFormat/prototype/formatRangeToParts/en-US.js | 2 +- .../prototype/formatRangeToParts/this-is-not-object-throws.js | 4 ++-- 18 files changed, 34 insertions(+), 34 deletions(-) diff --git a/test/intl402/DateTimeFormat/prototype/formatRange/argument-date-string.js b/test/intl402/DateTimeFormat/prototype/formatRange/argument-date-string.js index 8860e29ed1..6be3a36b91 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRange/argument-date-string.js +++ b/test/intl402/DateTimeFormat/prototype/formatRange/argument-date-string.js @@ -3,9 +3,9 @@ /*--- esid: sec-partitiondatetimerangepattern -description: | +description: > The Date constructor is not called to convert the input value. -info: > +info: | Intl.DateTimeFormat.prototype.formatRange ( startDate , endDate ) 5. Let x be ? ToNumber(startDate). diff --git a/test/intl402/DateTimeFormat/prototype/formatRange/argument-near-time-boundaries.js b/test/intl402/DateTimeFormat/prototype/formatRange/argument-near-time-boundaries.js index fab475c083..e5e0718723 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRange/argument-near-time-boundaries.js +++ b/test/intl402/DateTimeFormat/prototype/formatRange/argument-near-time-boundaries.js @@ -3,9 +3,9 @@ /*--- esid: sec-partitiondatetimerangepattern -description: | +description: > TimeClip is applied when calling Intl.DateTimeFormat.prototype.formatRange. -info: > +info: | PartitionDateTimeRangePattern ( dateTimeFormat, x, y ) 1. Let x be TimeClip(x). diff --git a/test/intl402/DateTimeFormat/prototype/formatRange/argument-to-integer.js b/test/intl402/DateTimeFormat/prototype/formatRange/argument-to-integer.js index 931e160f0a..5d9542a8c9 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRange/argument-to-integer.js +++ b/test/intl402/DateTimeFormat/prototype/formatRange/argument-to-integer.js @@ -3,9 +3,9 @@ /*--- esid: sec-partitiondatetimerangepattern -description: | +description: > TimeClip applies ToInteger on its input value. -info: > +info: | Intl.DateTimeFormat.prototype.formatRange ( startDate , endDate ) 5. Let x be ? ToNumber(startDate). diff --git a/test/intl402/DateTimeFormat/prototype/formatRange/date-is-infinity-throws.js b/test/intl402/DateTimeFormat/prototype/formatRange/date-is-infinity-throws.js index 54e5b96b4b..13c355e37f 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRange/date-is-infinity-throws.js +++ b/test/intl402/DateTimeFormat/prototype/formatRange/date-is-infinity-throws.js @@ -2,9 +2,9 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -description: +description: > Throws a RangeError if date arg is cast to an Infinity value -info: +info: | Intl.DateTimeFormat.prototype.formatRange ( startDate , endDate ) 1. Let dtf be this value. diff --git a/test/intl402/DateTimeFormat/prototype/formatRange/date-is-nan-throws.js b/test/intl402/DateTimeFormat/prototype/formatRange/date-is-nan-throws.js index 9c20d6d456..9a91f375f0 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRange/date-is-nan-throws.js +++ b/test/intl402/DateTimeFormat/prototype/formatRange/date-is-nan-throws.js @@ -2,9 +2,9 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -description: +description: > Throws a RangeError if date arg is cast to NaN -info: +info: | Intl.DateTimeFormat.prototype.formatRange ( startDate , endDate ) 1. Let dtf be this value. diff --git a/test/intl402/DateTimeFormat/prototype/formatRange/date-undefined-throws.js b/test/intl402/DateTimeFormat/prototype/formatRange/date-undefined-throws.js index dade376c43..c7c453f23d 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRange/date-undefined-throws.js +++ b/test/intl402/DateTimeFormat/prototype/formatRange/date-undefined-throws.js @@ -2,9 +2,9 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -description: +description: > Throws a RangeError if startDate or endDate is undefined. -info: +info: | Intl.DateTimeFormat.prototype.formatRange ( startDate , endDate ) 1. Let dtf be this value. diff --git a/test/intl402/DateTimeFormat/prototype/formatRange/date-x-greater-than-y-throws.js b/test/intl402/DateTimeFormat/prototype/formatRange/date-x-greater-than-y-throws.js index 33729fe9a8..587c967a3e 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRange/date-x-greater-than-y-throws.js +++ b/test/intl402/DateTimeFormat/prototype/formatRange/date-x-greater-than-y-throws.js @@ -2,9 +2,9 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -description: +description: > Throws a RangeError if date x is greater than y. -info: +info: | Intl.DateTimeFormat.prototype.formatRange ( startDate , endDate ) 1. Let dtf be this value. diff --git a/test/intl402/DateTimeFormat/prototype/formatRange/en-US.js b/test/intl402/DateTimeFormat/prototype/formatRange/en-US.js index 4d9c1ca1e5..a5560417cd 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRange/en-US.js +++ b/test/intl402/DateTimeFormat/prototype/formatRange/en-US.js @@ -4,7 +4,7 @@ /*--- esid: sec-partitiondatetimerangepattern description: Basic tests for the en-US output of formatRange() -info: > +info: | Intl.DateTimeFormat.prototype.formatRange ( startDate , endDate ) 8. Return ? FormatDateTimeRange(dtf, x, y). diff --git a/test/intl402/DateTimeFormat/prototype/formatRange/this-is-not-object-throws.js b/test/intl402/DateTimeFormat/prototype/formatRange/this-is-not-object-throws.js index 7ae45cc0bb..af692c3207 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRange/this-is-not-object-throws.js +++ b/test/intl402/DateTimeFormat/prototype/formatRange/this-is-not-object-throws.js @@ -2,9 +2,9 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -description: +description: > Throws a TypeError if this is not Object. -info: +info: | Intl.DateTimeFormat.prototype.formatRange ( startDate , endDate ) 1. Let dtf be this value. diff --git a/test/intl402/DateTimeFormat/prototype/formatRangeToParts/argument-date-string.js b/test/intl402/DateTimeFormat/prototype/formatRangeToParts/argument-date-string.js index daec705048..69e50c56dc 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRangeToParts/argument-date-string.js +++ b/test/intl402/DateTimeFormat/prototype/formatRangeToParts/argument-date-string.js @@ -3,9 +3,9 @@ /*--- esid: sec-partitiondatetimerangepattern -description: | +description: > The Date constructor is not called to convert the input value. -info: > +info: | Intl.DateTimeFormat.prototype.formatRangeToParts ( startDate , endDate ) 5. Let x be ? ToNumber(startDate). diff --git a/test/intl402/DateTimeFormat/prototype/formatRangeToParts/argument-near-time-boundaries.js b/test/intl402/DateTimeFormat/prototype/formatRangeToParts/argument-near-time-boundaries.js index 2e33c406d1..999f2d5d39 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRangeToParts/argument-near-time-boundaries.js +++ b/test/intl402/DateTimeFormat/prototype/formatRangeToParts/argument-near-time-boundaries.js @@ -3,9 +3,9 @@ /*--- esid: sec-partitiondatetimerangepattern -description: | +description: > TimeClip is applied when calling Intl.DateTimeFormat.prototype.formatRangeToParts. -info: > +info: | PartitionDateTimeRangePattern ( dateTimeFormat, x, y ) 1. Let x be TimeClip(x). diff --git a/test/intl402/DateTimeFormat/prototype/formatRangeToParts/argument-to-integer.js b/test/intl402/DateTimeFormat/prototype/formatRangeToParts/argument-to-integer.js index 2f64a83e33..84f7b8b04f 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRangeToParts/argument-to-integer.js +++ b/test/intl402/DateTimeFormat/prototype/formatRangeToParts/argument-to-integer.js @@ -3,9 +3,9 @@ /*--- esid: sec-partitiondatetimerangepattern -description: | +description: > TimeClip applies ToInteger on its input value. -info: > +info: | Intl.DateTimeFormat.prototype.formatRangeToParts ( startDate , endDate ) 5. Let x be ? ToNumber(startDate). diff --git a/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-is-infinity-throws.js b/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-is-infinity-throws.js index fd394977d4..f5e436627a 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-is-infinity-throws.js +++ b/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-is-infinity-throws.js @@ -2,9 +2,9 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -description: +description: > Throws a RangeError if date arg is cast to an Infinity value -info: +info: | Intl.DateTimeFormat.prototype.formatRangeToParts ( startDate , endDate ) 1. Let dtf be this value. diff --git a/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-is-nan-throws.js b/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-is-nan-throws.js index c70a2936dd..4ac521d728 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-is-nan-throws.js +++ b/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-is-nan-throws.js @@ -2,9 +2,9 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -description: +description: > Throws a RangeError if date arg is cast to Nan -info: +info: | Intl.DateTimeFormat.prototype.formatRangeToParts ( startDate , endDate ) 1. Let dtf be this value. diff --git a/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-undefined-throws.js b/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-undefined-throws.js index e5aff72519..ec46ade73b 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-undefined-throws.js +++ b/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-undefined-throws.js @@ -2,9 +2,9 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -description: +description: > Throws a RangeError if startDate or endDate are undefined. -info: +info: | Intl.DateTimeFormat.prototype.formatRangeToParts ( startDate , endDate ) 1. Let dtf be this value. diff --git a/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-x-greater-than-y-throws.js b/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-x-greater-than-y-throws.js index 73cd963b71..11b47ee399 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-x-greater-than-y-throws.js +++ b/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-x-greater-than-y-throws.js @@ -2,9 +2,9 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -description: +description: > Throws a RangeError if date x is greater than y. -info: +info: | Intl.DateTimeFormat.prototype.formatRangeToParts ( startDate , endDate ) 1. Let dtf be this value. diff --git a/test/intl402/DateTimeFormat/prototype/formatRangeToParts/en-US.js b/test/intl402/DateTimeFormat/prototype/formatRangeToParts/en-US.js index 569f4543bf..2a45d4ddfc 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRangeToParts/en-US.js +++ b/test/intl402/DateTimeFormat/prototype/formatRangeToParts/en-US.js @@ -4,7 +4,7 @@ /*--- esid: sec-partitiondatetimerangepattern description: Basic tests for the en-US output of formatRangeToParts() -info: > +info: | Intl.DateTimeFormat.prototype.formatRangeToParts ( startDate , endDate ) 8. Return ? FormatDateTimeRange(dtf, x, y). diff --git a/test/intl402/DateTimeFormat/prototype/formatRangeToParts/this-is-not-object-throws.js b/test/intl402/DateTimeFormat/prototype/formatRangeToParts/this-is-not-object-throws.js index 9b1881d22c..48260f44ad 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRangeToParts/this-is-not-object-throws.js +++ b/test/intl402/DateTimeFormat/prototype/formatRangeToParts/this-is-not-object-throws.js @@ -2,9 +2,9 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -description: +description: > Throws a TypeError if this is not Object. -info: +info: | Intl.DateTimeFormat.prototype.formatRangeToParts ( startDate , endDate ) 1. Let dtf be this value.