built-ins/Date/*: make all indentation consistent (depth & character) (#1422)

This commit is contained in:
Rick Waldron 2018-02-15 16:40:26 -05:00 committed by Leo Balter
parent 6c50d46b39
commit b59d956b3c
391 changed files with 1011 additions and 932 deletions

View File

@ -19,8 +19,12 @@ description: 2 arguments, (year, month)
var myObj = function(val) { var myObj = function(val) {
this.value = val; this.value = val;
this.valueOf = function(){throw "valueOf-"+this.value;}; this.valueOf = function() {
this.toString = function(){throw "toString-"+this.value;}; throw "valueOf-" + this.value;
};
this.toString = function() {
throw "toString-" + this.value;
};
}; };
//CHECK#1 //CHECK#1

View File

@ -19,8 +19,12 @@ description: 3 arguments, (year, month, date)
var myObj = function(val) { var myObj = function(val) {
this.value = val; this.value = val;
this.valueOf = function(){throw "valueOf-"+this.value;}; this.valueOf = function() {
this.toString = function(){throw "toString-"+this.value;}; throw "valueOf-" + this.value;
};
this.toString = function() {
throw "toString-" + this.value;
};
}; };
//CHECK#1 //CHECK#1

View File

@ -19,8 +19,12 @@ description: 4 arguments, (year, month, date, hours)
var myObj = function(val) { var myObj = function(val) {
this.value = val; this.value = val;
this.valueOf = function(){throw "valueOf-"+this.value;}; this.valueOf = function() {
this.toString = function(){throw "toString-"+this.value;}; throw "valueOf-" + this.value;
};
this.toString = function() {
throw "toString-" + this.value;
};
}; };
//CHECK#1 //CHECK#1

View File

@ -19,8 +19,12 @@ description: 5 arguments, (year, month, date, hours, minutes)
var myObj = function(val) { var myObj = function(val) {
this.value = val; this.value = val;
this.valueOf = function(){throw "valueOf-"+this.value;}; this.valueOf = function() {
this.toString = function(){throw "toString-"+this.value;}; throw "valueOf-" + this.value;
};
this.toString = function() {
throw "toString-" + this.value;
};
}; };
//CHECK#1 //CHECK#1

View File

@ -19,8 +19,12 @@ description: 6 arguments, (year, month, date, hours, minutes, seconds)
var myObj = function(val) { var myObj = function(val) {
this.value = val; this.value = val;
this.valueOf = function(){throw "valueOf-"+this.value;}; this.valueOf = function() {
this.toString = function(){throw "toString-"+this.value;}; throw "valueOf-" + this.value;
};
this.toString = function() {
throw "toString-" + this.value;
};
}; };
//CHECK#1 //CHECK#1

View File

@ -19,8 +19,12 @@ description: 7 arguments, (year, month, date, hours, minutes, seconds, ms)
var myObj = function(val) { var myObj = function(val) {
this.value = val; this.value = val;
this.valueOf = function(){throw "valueOf-"+this.value;}; this.valueOf = function() {
this.toString = function(){throw "toString-"+this.value;}; throw "valueOf-" + this.value;
};
this.toString = function() {
throw "toString-" + this.value;
};
}; };
//CHECK#1 //CHECK#1

View File

@ -48,5 +48,9 @@ assert.throws(TypeError, function() {
}); });
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
d[Symbol.toPrimitive]({ toString: function() { 'number'; } }); d[Symbol.toPrimitive]({
toString: function() {
'number';
}
});
}); });

View File

@ -16,7 +16,9 @@ info: |
---*/ ---*/
var getDate = Date.prototype.getDate; var getDate = Date.prototype.getDate;
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof getDate, 'function'); assert.sameValue(typeof getDate, 'function');

View File

@ -16,7 +16,9 @@ info: |
---*/ ---*/
var getDay = Date.prototype.getDay; var getDay = Date.prototype.getDay;
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof getDay, 'function'); assert.sameValue(typeof getDay, 'function');

View File

@ -16,7 +16,9 @@ info: |
---*/ ---*/
var getFullYear = Date.prototype.getFullYear; var getFullYear = Date.prototype.getFullYear;
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof getFullYear, 'function'); assert.sameValue(typeof getFullYear, 'function');

View File

@ -16,7 +16,9 @@ info: |
---*/ ---*/
var getHours = Date.prototype.getHours; var getHours = Date.prototype.getHours;
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof getHours, 'function'); assert.sameValue(typeof getHours, 'function');

View File

@ -16,7 +16,9 @@ info: |
---*/ ---*/
var getMilliseconds = Date.prototype.getMilliseconds; var getMilliseconds = Date.prototype.getMilliseconds;
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof getMilliseconds, 'function'); assert.sameValue(typeof getMilliseconds, 'function');

View File

@ -16,7 +16,9 @@ info: |
---*/ ---*/
var getMinutes = Date.prototype.getMinutes; var getMinutes = Date.prototype.getMinutes;
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof getMinutes, 'function'); assert.sameValue(typeof getMinutes, 'function');

View File

@ -16,7 +16,9 @@ info: |
---*/ ---*/
var getMonth = Date.prototype.getMonth; var getMonth = Date.prototype.getMonth;
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof getMonth, 'function'); assert.sameValue(typeof getMonth, 'function');

View File

@ -16,7 +16,9 @@ info: |
---*/ ---*/
var getSeconds = Date.prototype.getSeconds; var getSeconds = Date.prototype.getSeconds;
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof getSeconds, 'function'); assert.sameValue(typeof getSeconds, 'function');

View File

@ -16,7 +16,9 @@ info: |
---*/ ---*/
var getTime = Date.prototype.getTime; var getTime = Date.prototype.getTime;
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof getTime, 'function'); assert.sameValue(typeof getTime, 'function');

View File

@ -16,7 +16,9 @@ info: |
---*/ ---*/
var getTimezoneOffset = Date.prototype.getTimezoneOffset; var getTimezoneOffset = Date.prototype.getTimezoneOffset;
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof getTimezoneOffset, 'function'); assert.sameValue(typeof getTimezoneOffset, 'function');

View File

@ -16,7 +16,9 @@ info: |
---*/ ---*/
var getUTCDate = Date.prototype.getUTCDate; var getUTCDate = Date.prototype.getUTCDate;
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof getUTCDate, 'function'); assert.sameValue(typeof getUTCDate, 'function');

View File

@ -16,7 +16,9 @@ info: |
---*/ ---*/
var getUTCDay = Date.prototype.getUTCDay; var getUTCDay = Date.prototype.getUTCDay;
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof getUTCDay, 'function'); assert.sameValue(typeof getUTCDay, 'function');

View File

@ -16,7 +16,9 @@ info: |
---*/ ---*/
var getUTCFullYear = Date.prototype.getUTCFullYear; var getUTCFullYear = Date.prototype.getUTCFullYear;
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof getUTCFullYear, 'function'); assert.sameValue(typeof getUTCFullYear, 'function');

View File

@ -16,7 +16,9 @@ info: |
---*/ ---*/
var getUTCHours = Date.prototype.getUTCHours; var getUTCHours = Date.prototype.getUTCHours;
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof getUTCHours, 'function'); assert.sameValue(typeof getUTCHours, 'function');

View File

@ -16,7 +16,9 @@ info: |
---*/ ---*/
var getUTCMilliseconds = Date.prototype.getUTCMilliseconds; var getUTCMilliseconds = Date.prototype.getUTCMilliseconds;
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof getUTCMilliseconds, 'function'); assert.sameValue(typeof getUTCMilliseconds, 'function');

View File

@ -16,7 +16,9 @@ info: |
---*/ ---*/
var getUTCMinutes = Date.prototype.getUTCMinutes; var getUTCMinutes = Date.prototype.getUTCMinutes;
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof getUTCMinutes, 'function'); assert.sameValue(typeof getUTCMinutes, 'function');

View File

@ -16,7 +16,9 @@ info: |
---*/ ---*/
var getUTCMonth = Date.prototype.getUTCMonth; var getUTCMonth = Date.prototype.getUTCMonth;
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof getUTCMonth, 'function'); assert.sameValue(typeof getUTCMonth, 'function');

View File

@ -16,7 +16,9 @@ info: |
---*/ ---*/
var getUTCSeconds = Date.prototype.getUTCSeconds; var getUTCSeconds = Date.prototype.getUTCSeconds;
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof getUTCSeconds, 'function'); assert.sameValue(typeof getUTCSeconds, 'function');

View File

@ -23,7 +23,9 @@ var arg = {
return 1; return 1;
} }
}; };
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof setDate, 'function'); assert.sameValue(typeof setDate, 'function');

View File

@ -23,7 +23,9 @@ var arg = {
return 1; return 1;
} }
}; };
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof setFullYear, 'function'); assert.sameValue(typeof setFullYear, 'function');

View File

@ -23,7 +23,9 @@ var arg = {
return 1; return 1;
} }
}; };
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof setHours, 'function'); assert.sameValue(typeof setHours, 'function');

View File

@ -23,7 +23,9 @@ var arg = {
return 1; return 1;
} }
}; };
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof setMilliseconds, 'function'); assert.sameValue(typeof setMilliseconds, 'function');

View File

@ -23,7 +23,9 @@ var arg = {
return 1; return 1;
} }
}; };
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof setMinutes, 'function'); assert.sameValue(typeof setMinutes, 'function');

View File

@ -23,7 +23,9 @@ var arg = {
return 1; return 1;
} }
}; };
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof setMonth, 'function'); assert.sameValue(typeof setMonth, 'function');

View File

@ -23,7 +23,9 @@ var arg = {
return 1; return 1;
} }
}; };
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof setSeconds, 'function'); assert.sameValue(typeof setSeconds, 'function');

View File

@ -23,7 +23,9 @@ var arg = {
return 1; return 1;
} }
}; };
var args = (function() { return arguments; }()); var args = (function() {
return arguments;
}());
assert.sameValue(typeof setTime, 'function'); assert.sameValue(typeof setTime, 'function');

View File

@ -13,5 +13,3 @@ info: |
---*/ ---*/
assert.sameValue(new Date(NaN).toDateString(), "Invalid Date"); assert.sameValue(new Date(NaN).toDateString(), "Invalid Date");

View File

@ -13,5 +13,3 @@ info: |
---*/ ---*/
assert.sameValue(new Date(NaN).toTimeString(), "Invalid Date"); assert.sameValue(new Date(NaN).toTimeString(), "Invalid Date");

View File

@ -13,4 +13,3 @@ info: |
---*/ ---*/
assert.sameValue(new Date(NaN).toUTCString(), "Invalid Date"); assert.sameValue(new Date(NaN).toUTCString(), "Invalid Date");

View File

@ -39,7 +39,9 @@ assert.throws(TypeError, function() {
new Date(y); new Date(y);
}, 'ordinary object'); }, 'ordinary object');
retVal = (function() { return arguments; }()); retVal = (function() {
return arguments;
}());
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
new Date(y); new Date(y);
}, 'arguments exotic object'); }, 'arguments exotic object');

View File

@ -40,7 +40,9 @@ assert.throws(TypeError, function() {
new Date(faultyToPrimitive); new Date(faultyToPrimitive);
}, 'Array exotic object'); }, 'Array exotic object');
returnValue = (function() { return arguments; }()); returnValue = (function() {
return arguments;
}());
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
new Date(faultyToPrimitive); new Date(faultyToPrimitive);
}, 'arguments exotic object'); }, 'arguments exotic object');