diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2018-02-15 16:40:26 -0500 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2018-02-15 16:40:26 -0500 |
commit | b59d956b3c268abd0875aeb87d6688f4c7aafc9b (patch) | |
tree | 191bc5da0fb5c10c907306c2b317b5dbf59bb8f9 /test/built-ins/Date/prototype/toISOString | |
parent | 6c50d46b391efc4847fa1d06718db47cdf3f1723 (diff) | |
download | qtdeclarative-testsuites-b59d956b3c268abd0875aeb87d6688f4c7aafc9b.tar.gz |
built-ins/Date/*: make all indentation consistent (depth & character) (#1422)
Diffstat (limited to 'test/built-ins/Date/prototype/toISOString')
14 files changed, 55 insertions, 55 deletions
diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js index 596f80343..f94e964d4 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js @@ -10,19 +10,19 @@ description: > UTC(0) ---*/ - var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); - var date, dateStr; +var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); +var date, dateStr; - if (timeZoneMinutes > 0) { - date = new Date(1970, 0, -99999999, 0, 0, 0, 1); +if (timeZoneMinutes > 0) { + date = new Date(1970, 0, -99999999, 0, 0, 0, 1); - assert.throws(RangeError, function() { - date.toISOString(); - }); - } else { - date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes + 60, 0, 1); + assert.throws(RangeError, function() { + date.toISOString(); + }); +} else { + date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes + 60, 0, 1); - dateStr = date.toISOString(); + dateStr = date.toISOString(); - assert.sameValue(dateStr[dateStr.length - 1], "Z"); - } + assert.sameValue(dateStr[dateStr.length - 1], "Z"); +} diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-11.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-11.js index 63feb9075..b08fa6538 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-11.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-11.js @@ -10,10 +10,10 @@ description: > UTC(0) ---*/ - var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); - var date, dateStr; +var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); +var date, dateStr; - date = new Date(1970, 0, 100000001, 0, 0 + timeZoneMinutes - 60, 0, -1); - dateStr = date.toISOString(); +date = new Date(1970, 0, 100000001, 0, 0 + timeZoneMinutes - 60, 0, -1); +dateStr = date.toISOString(); assert.sameValue(dateStr[dateStr.length - 1], "Z", 'dateStr[dateStr.length - 1]'); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-12.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-12.js index 5e976d17e..2086f48a9 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-12.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-12.js @@ -10,10 +10,10 @@ description: > UTC(0) ---*/ - var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); - var date, dateStr; +var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); +var date, dateStr; - date = new Date(1970, 0, 100000001, 0, 0 + timeZoneMinutes - 60, 0, 0); - dateStr = date.toISOString(); +date = new Date(1970, 0, 100000001, 0, 0 + timeZoneMinutes - 60, 0, 0); +dateStr = date.toISOString(); assert.sameValue(dateStr[dateStr.length - 1], "Z", 'dateStr[dateStr.length - 1]'); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-13.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-13.js index 431a79c41..71a9232eb 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-13.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-13.js @@ -9,8 +9,8 @@ description: > date is outside the valid range of time. ---*/ - // As specified in ES5 15.9.1.14, time > 8.64e15 is not in the valid range. - var date = new Date(8.64e15 + 1); +// As specified in ES5 15.9.1.14, time > 8.64e15 is not in the valid range. +var date = new Date(8.64e15 + 1); assert.throws(RangeError, function() { - date.toISOString(); + date.toISOString(); }); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-14.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-14.js index 49a859c59..7dc2be64a 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-14.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-14.js @@ -9,7 +9,7 @@ description: > Date.prototype.toISOString throw the RangeError ---*/ - var date = new Date(-Infinity, 1, 70, 0, 0, 0); +var date = new Date(-Infinity, 1, 70, 0, 0, 0); assert.throws(RangeError, function() { - date.toISOString(); + date.toISOString(); }); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-15.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-15.js index f08686324..752120dfc 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-15.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-15.js @@ -9,7 +9,7 @@ description: > Date.prototype.toISOString throw the RangeError ---*/ - var date = new Date(Infinity, 1, 70, 0, 0, 0); +var date = new Date(Infinity, 1, 70, 0, 0, 0); assert.throws(RangeError, function() { - date.toISOString(); + date.toISOString(); }); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-16.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-16.js index e27b08feb..d3be4f9fb 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-16.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-16.js @@ -10,7 +10,7 @@ description: > Date.prototype.toISOString throw the TypeError ---*/ - var date = new String("1970-01-00000:00:00.000Z"); +var date = new String("1970-01-00000:00:00.000Z"); assert.throws(TypeError, function() { - Date.prototype.toISOString.call(date); + Date.prototype.toISOString.call(date); }); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-3.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-3.js index f2c53adbf..9703836e1 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-3.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-3.js @@ -7,4 +7,4 @@ es5id: 15.9.5.43-0-3 description: Date.prototype.toISOString must exist as a function ---*/ -assert.sameValue(typeof (Date.prototype.toISOString), "function", 'typeof (Date.prototype.toISOString)'); +assert.sameValue(typeof(Date.prototype.toISOString), "function", 'typeof (Date.prototype.toISOString)'); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-4.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-4.js index f27f7e0ae..d2f2e391e 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-4.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-4.js @@ -9,7 +9,7 @@ description: > 'YYYY-MM-DDTHH:mm:ss.sssZ', the time zone is UTC(0) ---*/ - var date = new Date(1999, 9, 10, 10, 10, 10, 10); - var localDate = new Date(date.getTime() - date.getTimezoneOffset() * 60000); +var date = new Date(1999, 9, 10, 10, 10, 10, 10); +var localDate = new Date(date.getTime() - date.getTimezoneOffset() * 60000); assert.sameValue(localDate.toISOString(), "1999-10-10T10:10:10.010Z", 'localDate.toISOString()'); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-5.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-5.js index 35359f902..0dc17db6f 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-5.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-5.js @@ -9,6 +9,6 @@ description: > zone(0) ---*/ - var dateStr = (new Date()).toISOString(); +var dateStr = (new Date()).toISOString(); assert.sameValue(dateStr[dateStr.length - 1], "Z", 'dateStr[dateStr.length - 1]'); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-6.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-6.js index 53b001d87..dda74767f 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-6.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-6.js @@ -11,5 +11,5 @@ description: > assert.throws(TypeError, function() { - Date.prototype.toISOString.call([]); + Date.prototype.toISOString.call([]); }); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-7.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-7.js index b4d5bc800..517fb7453 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-7.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-7.js @@ -11,5 +11,5 @@ description: > assert.throws(TypeError, function() { - Date.prototype.toISOString.call(15); + Date.prototype.toISOString.call(15); }); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-8.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-8.js index 3c55da5fa..e85077c6c 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-8.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-8.js @@ -10,14 +10,14 @@ description: > UTC(0) ---*/ - var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); - var date, dateStr; +var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); +var date, dateStr; assert.throws(RangeError, function() { - if (timeZoneMinutes > 0) { - date = new Date(1970, 0, -99999999, 0, 0, 0, -1); - } else { - date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes - 60, 0, -1); - } + if (timeZoneMinutes > 0) { + date = new Date(1970, 0, -99999999, 0, 0, 0, -1); + } else { + date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes - 60, 0, -1); + } - dateStr = date.toISOString(); + dateStr = date.toISOString(); }); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-9.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-9.js index 8907ccb68..04c9fd69c 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-9.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-9.js @@ -10,19 +10,19 @@ description: > UTC(0) ---*/ - var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); - var date, dateStr; +var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); +var date, dateStr; - if (timeZoneMinutes > 0) { - date = new Date(1970, 0, -99999999, 0, 0, 0, 0); +if (timeZoneMinutes > 0) { + date = new Date(1970, 0, -99999999, 0, 0, 0, 0); - assert.throws(RangeError, function() { - date.toISOString(); - }); - } else { - date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes + 60, 0, 0); + assert.throws(RangeError, function() { + date.toISOString(); + }); +} else { + date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes + 60, 0, 0); - dateStr = date.toISOString(); + dateStr = date.toISOString(); - assert.sameValue(dateStr[dateStr.length - 1], "Z"); - } + assert.sameValue(dateStr[dateStr.length - 1], "Z"); +} |