From cc94370eb99f6c054cab976f743b0ef868168ee8 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Wed, 17 Jan 2018 12:32:11 -0500 Subject: [PATCH] Frontmatter nits --- test/built-ins/Date/UTC/non-integer-values.js | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/test/built-ins/Date/UTC/non-integer-values.js b/test/built-ins/Date/UTC/non-integer-values.js index d19bd28f48..7ab03bab0c 100644 --- a/test/built-ins/Date/UTC/non-integer-values.js +++ b/test/built-ins/Date/UTC/non-integer-values.js @@ -2,12 +2,27 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-date.utc -es6id: 20.3.3.4 description: non-integer values are converted to integers using `ToInteger` info: | [...] - 9. Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))). - MakeDay (year, month, date) + Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))). + + #sec-timeclip + + Let clippedTime be ! ToInteger(time). + + #sec-makeday + + Let y be ! ToInteger(year). + Let m be ! ToInteger(month). + Let dt be ! ToInteger(date). + + #sec-maketime + + Let h be ! ToInteger(hour). + Let m be ! ToInteger(min). + Let s be ! ToInteger(sec). + Let milli be ! ToInteger(ms). ---*/ assert.sameValue(Date.UTC(1970.9, 0.9, 1.9, 0.9, 0.9, 0.9, 0.9), 0, 'positive non-integer values');