From 40b4f28e98c416a092e26aa17489bf94ccb8bf4f Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Mon, 12 Mar 2018 15:45:40 +0100 Subject: Change number of days in test to make date actually out of range The ES test-suite's 15.9.5.43-0-8.js believed that (year=1970, month=0, day=-99999999) was out of range for toISODate(); but it's wrong about that. Add another 9 to the day number to *actually* make it out of range. Task-number: QTBUG-67010 Change-Id: I605937208d2aa6b35ee0a74582d595aa3c4c042e Reviewed-by: Simon Hausmann --- test/suite/ch15/15.9/15.9.5/15.9.5.43/15.9.5.43-0-8.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/suite/ch15/15.9/15.9.5/15.9.5.43/15.9.5.43-0-8.js b/test/suite/ch15/15.9/15.9.5/15.9.5.43/15.9.5.43-0-8.js index b21867345..6694e14db 100644 --- a/test/suite/ch15/15.9/15.9.5/15.9.5.43/15.9.5.43-0-8.js +++ b/test/suite/ch15/15.9/15.9.5/15.9.5.43/15.9.5.43-0-8.js @@ -14,9 +14,9 @@ function testcase() { var date, dateStr; try { if (timeZoneMinutes > 0) { - date = new Date(1970, 0, -99999999, 0, 0, 0, -1); + date = new Date(1970, 0, -999999999, 0, 0, 0, -1); } else { - date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes - 60, 0, -1); + date = new Date(1970, 0, -999999999, 0, 0 + timeZoneMinutes - 60, 0, -1); } dateStr = date.toISOString(); -- cgit v1.2.3