diff options
author | André Bargull <andre.bargull@gmail.com> | 2018-02-09 09:09:47 -0800 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2018-02-09 12:09:47 -0500 |
commit | f95b56ab28c5f18150f30fbfa889a4f6ba0e50a1 (patch) | |
tree | d403f704c1b6a1842f12df380651919beaaf5fef /test/built-ins/Date/prototype/toISOString | |
parent | a01de4a722d088055a7d84d8c691ddd7109edb34 (diff) | |
download | qtdeclarative-testsuites-f95b56ab28c5f18150f30fbfa889a4f6ba0e50a1.tar.gz |
Revert "js-beautify: make all indentation consistent (depth & character) (#1409)" (#1412)
This reverts commit a01de4a722d088055a7d84d8c691ddd7109edb34.
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 f94e964d4..596f80343 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 b08fa6538..63feb9075 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 2086f48a9..5e976d17e 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 71a9232eb..431a79c41 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 7dc2be64a..49a859c59 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 752120dfc..f08686324 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 d3be4f9fb..e27b08feb 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 9703836e1..f2c53adbf 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 d2f2e391e..f27f7e0ae 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 0dc17db6f..35359f902 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 dda74767f..53b001d87 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 517fb7453..b4d5bc800 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 e85077c6c..3c55da5fa 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 04c9fd69c..8907ccb68 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"); + } |