aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2018-03-12 15:45:40 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2018-03-12 15:02:02 +0000
commit40b4f28e98c416a092e26aa17489bf94ccb8bf4f (patch)
treedcd3b4491103acb88d2143938af6b7c43d75cb13 /test
parentfe58b18c13d1ea5d42951e5b698efc3bfab6dc8c (diff)
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 <simon.hausmann@qt.io>
Diffstat (limited to 'test')
-rw-r--r--test/suite/ch15/15.9/15.9.5/15.9.5.43/15.9.5.43-0-8.js4
1 files changed, 2 insertions, 2 deletions
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();