diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /js/src/tests/test262/built-ins/Date/prototype | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz firefox-8dd16259287f58f9273002717ec4d27e97127719.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/src/tests/test262/built-ins/Date/prototype')
87 files changed, 307 insertions, 265 deletions
diff --git a/js/src/tests/test262/built-ins/Date/prototype/Symbol.toPrimitive/length.js b/js/src/tests/test262/built-ins/Date/prototype/Symbol.toPrimitive/length.js index 1e46f05120..16f78857f2 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/Symbol.toPrimitive/length.js +++ b/js/src/tests/test262/built-ins/Date/prototype/Symbol.toPrimitive/length.js @@ -20,10 +20,11 @@ features: [Symbol.toPrimitive] includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype[Symbol.toPrimitive].length, 1); - -verifyNotEnumerable(Date.prototype[Symbol.toPrimitive], 'length'); -verifyNotWritable(Date.prototype[Symbol.toPrimitive], 'length'); -verifyConfigurable(Date.prototype[Symbol.toPrimitive], 'length'); +verifyProperty(Date.prototype[Symbol.toPrimitive], "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/Symbol.toPrimitive/name.js b/js/src/tests/test262/built-ins/Date/prototype/Symbol.toPrimitive/name.js index e1e40be0fe..58d9c00d6b 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/Symbol.toPrimitive/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/Symbol.toPrimitive/name.js @@ -17,12 +17,11 @@ features: [Symbol.toPrimitive] includes: [propertyHelper.js] ---*/ -assert.sameValue( - Date.prototype[Symbol.toPrimitive].name, '[Symbol.toPrimitive]' -); - -verifyNotEnumerable(Date.prototype[Symbol.toPrimitive], 'name'); -verifyNotWritable(Date.prototype[Symbol.toPrimitive], 'name'); -verifyConfigurable(Date.prototype[Symbol.toPrimitive], 'name'); +verifyProperty(Date.prototype[Symbol.toPrimitive], "name", { + value: "[Symbol.toPrimitive]", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getDate/name.js b/js/src/tests/test262/built-ins/Date/prototype/getDate/name.js index 3c1574d163..31c1a36efe 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getDate/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getDate/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getDate.name, "getDate"); - -verifyNotEnumerable(Date.prototype.getDate, "name"); -verifyNotWritable(Date.prototype.getDate, "name"); -verifyConfigurable(Date.prototype.getDate, "name"); +verifyProperty(Date.prototype.getDate, "name", { + value: "getDate", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getDate/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getDate/not-a-constructor.js index 675f61b753..7e3837fede 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getDate/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getDate/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getDate(); -}, '`let date = new Date(Date.now()); new date.getDate()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getDay/name.js b/js/src/tests/test262/built-ins/Date/prototype/getDay/name.js index 89c16d7928..3244db692f 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getDay/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getDay/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getDay.name, "getDay"); - -verifyNotEnumerable(Date.prototype.getDay, "name"); -verifyNotWritable(Date.prototype.getDay, "name"); -verifyConfigurable(Date.prototype.getDay, "name"); +verifyProperty(Date.prototype.getDay, "name", { + value: "getDay", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getDay/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getDay/not-a-constructor.js index 08a25137e9..e4fc295059 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getDay/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getDay/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getDay(); -}, '`let date = new Date(Date.now()); new date.getDay()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getFullYear/name.js b/js/src/tests/test262/built-ins/Date/prototype/getFullYear/name.js index d6a5b8e6ce..c02da77602 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getFullYear/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getFullYear/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getFullYear.name, "getFullYear"); - -verifyNotEnumerable(Date.prototype.getFullYear, "name"); -verifyNotWritable(Date.prototype.getFullYear, "name"); -verifyConfigurable(Date.prototype.getFullYear, "name"); +verifyProperty(Date.prototype.getFullYear, "name", { + value: "getFullYear", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getFullYear/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getFullYear/not-a-constructor.js index 917047cfdb..7a265deb84 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getFullYear/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getFullYear/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getFullYear(); -}, '`let date = new Date(Date.now()); new date.getFullYear()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getHours/name.js b/js/src/tests/test262/built-ins/Date/prototype/getHours/name.js index b775ade1e9..e93e27affa 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getHours/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getHours/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getHours.name, "getHours"); - -verifyNotEnumerable(Date.prototype.getHours, "name"); -verifyNotWritable(Date.prototype.getHours, "name"); -verifyConfigurable(Date.prototype.getHours, "name"); +verifyProperty(Date.prototype.getHours, "name", { + value: "getHours", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getHours/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getHours/not-a-constructor.js index bdb019bbee..38fa17a44d 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getHours/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getHours/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getHours(); -}, '`let date = new Date(Date.now()); new date.getHours()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getMilliseconds/name.js b/js/src/tests/test262/built-ins/Date/prototype/getMilliseconds/name.js index 0845a2c619..3cea2cb689 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getMilliseconds/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getMilliseconds/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getMilliseconds.name, "getMilliseconds"); - -verifyNotEnumerable(Date.prototype.getMilliseconds, "name"); -verifyNotWritable(Date.prototype.getMilliseconds, "name"); -verifyConfigurable(Date.prototype.getMilliseconds, "name"); +verifyProperty(Date.prototype.getMilliseconds, "name", { + value: "getMilliseconds", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getMilliseconds/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getMilliseconds/not-a-constructor.js index 4682cd3c1e..8b0397c310 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getMilliseconds/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getMilliseconds/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getMilliseconds(); -}, '`let date = new Date(Date.now()); new date.getMilliseconds()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getMinutes/name.js b/js/src/tests/test262/built-ins/Date/prototype/getMinutes/name.js index e1d71363bb..b6b919af98 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getMinutes/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getMinutes/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getMinutes.name, "getMinutes"); - -verifyNotEnumerable(Date.prototype.getMinutes, "name"); -verifyNotWritable(Date.prototype.getMinutes, "name"); -verifyConfigurable(Date.prototype.getMinutes, "name"); +verifyProperty(Date.prototype.getMinutes, "name", { + value: "getMinutes", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getMinutes/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getMinutes/not-a-constructor.js index 21682d79fc..1459f9b19f 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getMinutes/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getMinutes/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getMinutes(); -}, '`let date = new Date(Date.now()); new date.getMinutes()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getMonth/name.js b/js/src/tests/test262/built-ins/Date/prototype/getMonth/name.js index 7071c3d694..5e349f09e5 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getMonth/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getMonth/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getMonth.name, "getMonth"); - -verifyNotEnumerable(Date.prototype.getMonth, "name"); -verifyNotWritable(Date.prototype.getMonth, "name"); -verifyConfigurable(Date.prototype.getMonth, "name"); +verifyProperty(Date.prototype.getMonth, "name", { + value: "getMonth", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getMonth/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getMonth/not-a-constructor.js index 53c9ac0819..1b51675a68 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getMonth/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getMonth/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getMonth(); -}, '`let date = new Date(Date.now()); new date.getMonth()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getSeconds/name.js b/js/src/tests/test262/built-ins/Date/prototype/getSeconds/name.js index 56d30ef47f..7903622149 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getSeconds/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getSeconds/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getSeconds.name, "getSeconds"); - -verifyNotEnumerable(Date.prototype.getSeconds, "name"); -verifyNotWritable(Date.prototype.getSeconds, "name"); -verifyConfigurable(Date.prototype.getSeconds, "name"); +verifyProperty(Date.prototype.getSeconds, "name", { + value: "getSeconds", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getSeconds/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getSeconds/not-a-constructor.js index cae3edd42d..c9cd79ad73 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getSeconds/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getSeconds/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getSeconds(); -}, '`let date = new Date(Date.now()); new date.getSeconds()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getTime/name.js b/js/src/tests/test262/built-ins/Date/prototype/getTime/name.js index 3c05eb5508..7c78012059 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getTime/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getTime/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getTime.name, "getTime"); - -verifyNotEnumerable(Date.prototype.getTime, "name"); -verifyNotWritable(Date.prototype.getTime, "name"); -verifyConfigurable(Date.prototype.getTime, "name"); +verifyProperty(Date.prototype.getTime, "name", { + value: "getTime", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getTime/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getTime/not-a-constructor.js index 31e56a6eb3..1df1a5d935 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getTime/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getTime/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getTime(); -}, '`let date = new Date(Date.now()); new date.getTime()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getTimezoneOffset/name.js b/js/src/tests/test262/built-ins/Date/prototype/getTimezoneOffset/name.js index 0fe3e7046d..ff10e286cb 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getTimezoneOffset/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getTimezoneOffset/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getTimezoneOffset.name, "getTimezoneOffset"); - -verifyNotEnumerable(Date.prototype.getTimezoneOffset, "name"); -verifyNotWritable(Date.prototype.getTimezoneOffset, "name"); -verifyConfigurable(Date.prototype.getTimezoneOffset, "name"); +verifyProperty(Date.prototype.getTimezoneOffset, "name", { + value: "getTimezoneOffset", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getTimezoneOffset/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getTimezoneOffset/not-a-constructor.js index cd1dcd6992..c79024050e 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getTimezoneOffset/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getTimezoneOffset/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getTimezoneOffset(); -}, '`let date = new Date(Date.now()); new date.getTimezoneOffset()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getUTCDate/name.js b/js/src/tests/test262/built-ins/Date/prototype/getUTCDate/name.js index 3968908ce4..1f8c30ec17 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getUTCDate/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getUTCDate/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getUTCDate.name, "getUTCDate"); - -verifyNotEnumerable(Date.prototype.getUTCDate, "name"); -verifyNotWritable(Date.prototype.getUTCDate, "name"); -verifyConfigurable(Date.prototype.getUTCDate, "name"); +verifyProperty(Date.prototype.getUTCDate, "name", { + value: "getUTCDate", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getUTCDate/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getUTCDate/not-a-constructor.js index 0590ac9a6e..f49070911d 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getUTCDate/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getUTCDate/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getUTCDate(); -}, '`let date = new Date(Date.now()); new date.getUTCDate()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getUTCDay/name.js b/js/src/tests/test262/built-ins/Date/prototype/getUTCDay/name.js index 280b83ed76..fabdfa6c3a 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getUTCDay/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getUTCDay/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getUTCDay.name, "getUTCDay"); - -verifyNotEnumerable(Date.prototype.getUTCDay, "name"); -verifyNotWritable(Date.prototype.getUTCDay, "name"); -verifyConfigurable(Date.prototype.getUTCDay, "name"); +verifyProperty(Date.prototype.getUTCDay, "name", { + value: "getUTCDay", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getUTCDay/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getUTCDay/not-a-constructor.js index 42d0a20852..6ded993a4e 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getUTCDay/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getUTCDay/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getUTCDay(); -}, '`let date = new Date(Date.now()); new date.getUTCDay()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getUTCFullYear/name.js b/js/src/tests/test262/built-ins/Date/prototype/getUTCFullYear/name.js index a12fcc0b98..a2f5dbd6d1 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getUTCFullYear/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getUTCFullYear/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getUTCFullYear.name, "getUTCFullYear"); - -verifyNotEnumerable(Date.prototype.getUTCFullYear, "name"); -verifyNotWritable(Date.prototype.getUTCFullYear, "name"); -verifyConfigurable(Date.prototype.getUTCFullYear, "name"); +verifyProperty(Date.prototype.getUTCFullYear, "name", { + value: "getUTCFullYear", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getUTCFullYear/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getUTCFullYear/not-a-constructor.js index 6baf587e38..31deb328a9 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getUTCFullYear/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getUTCFullYear/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getUTCFullYear(); -}, '`let date = new Date(Date.now()); new date.getUTCFullYear()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getUTCHours/name.js b/js/src/tests/test262/built-ins/Date/prototype/getUTCHours/name.js index d35e74baa5..7ac40b70ff 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getUTCHours/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getUTCHours/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getUTCHours.name, "getUTCHours"); - -verifyNotEnumerable(Date.prototype.getUTCHours, "name"); -verifyNotWritable(Date.prototype.getUTCHours, "name"); -verifyConfigurable(Date.prototype.getUTCHours, "name"); +verifyProperty(Date.prototype.getUTCHours, "name", { + value: "getUTCHours", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getUTCHours/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getUTCHours/not-a-constructor.js index 60ed6e667f..08baa06108 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getUTCHours/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getUTCHours/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getUTCHours(); -}, '`let date = new Date(Date.now()); new date.getUTCHours()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getUTCMilliseconds/name.js b/js/src/tests/test262/built-ins/Date/prototype/getUTCMilliseconds/name.js index 1a723340a3..78a592b823 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getUTCMilliseconds/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getUTCMilliseconds/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getUTCMilliseconds.name, "getUTCMilliseconds"); - -verifyNotEnumerable(Date.prototype.getUTCMilliseconds, "name"); -verifyNotWritable(Date.prototype.getUTCMilliseconds, "name"); -verifyConfigurable(Date.prototype.getUTCMilliseconds, "name"); +verifyProperty(Date.prototype.getUTCMilliseconds, "name", { + value: "getUTCMilliseconds", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getUTCMilliseconds/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getUTCMilliseconds/not-a-constructor.js index b9e17b9792..58584449b3 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getUTCMilliseconds/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getUTCMilliseconds/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getUTCMilliseconds(); -}, '`let date = new Date(Date.now()); new date.getUTCMilliseconds()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getUTCMinutes/name.js b/js/src/tests/test262/built-ins/Date/prototype/getUTCMinutes/name.js index 5fc1ac7b8d..150f731776 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getUTCMinutes/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getUTCMinutes/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getUTCMinutes.name, "getUTCMinutes"); - -verifyNotEnumerable(Date.prototype.getUTCMinutes, "name"); -verifyNotWritable(Date.prototype.getUTCMinutes, "name"); -verifyConfigurable(Date.prototype.getUTCMinutes, "name"); +verifyProperty(Date.prototype.getUTCMinutes, "name", { + value: "getUTCMinutes", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getUTCMinutes/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getUTCMinutes/not-a-constructor.js index be50d8d0e6..b8ae1dffa1 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getUTCMinutes/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getUTCMinutes/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getUTCMinutes(); -}, '`let date = new Date(Date.now()); new date.getUTCMinutes()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getUTCMonth/name.js b/js/src/tests/test262/built-ins/Date/prototype/getUTCMonth/name.js index 796815dd91..854fc0a14f 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getUTCMonth/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getUTCMonth/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getUTCMonth.name, "getUTCMonth"); - -verifyNotEnumerable(Date.prototype.getUTCMonth, "name"); -verifyNotWritable(Date.prototype.getUTCMonth, "name"); -verifyConfigurable(Date.prototype.getUTCMonth, "name"); +verifyProperty(Date.prototype.getUTCMonth, "name", { + value: "getUTCMonth", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getUTCMonth/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getUTCMonth/not-a-constructor.js index 55428f88be..666a073fce 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getUTCMonth/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getUTCMonth/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getUTCMonth(); -}, '`let date = new Date(Date.now()); new date.getUTCMonth()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getUTCSeconds/name.js b/js/src/tests/test262/built-ins/Date/prototype/getUTCSeconds/name.js index 11cdea38b7..674434b09a 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getUTCSeconds/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getUTCSeconds/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getUTCSeconds.name, "getUTCSeconds"); - -verifyNotEnumerable(Date.prototype.getUTCSeconds, "name"); -verifyNotWritable(Date.prototype.getUTCSeconds, "name"); -verifyConfigurable(Date.prototype.getUTCSeconds, "name"); +verifyProperty(Date.prototype.getUTCSeconds, "name", { + value: "getUTCSeconds", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/getUTCSeconds/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/getUTCSeconds/not-a-constructor.js index be8ed19fe1..8cc4c66c56 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/getUTCSeconds/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/getUTCSeconds/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getUTCSeconds(); -}, '`let date = new Date(Date.now()); new date.getUTCSeconds()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setDate/name.js b/js/src/tests/test262/built-ins/Date/prototype/setDate/name.js index 15ba085ab7..0b0518bcf5 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setDate/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setDate/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setDate.name, "setDate"); - -verifyNotEnumerable(Date.prototype.setDate, "name"); -verifyNotWritable(Date.prototype.setDate, "name"); -verifyConfigurable(Date.prototype.setDate, "name"); +verifyProperty(Date.prototype.setDate, "name", { + value: "setDate", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setDate/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/setDate/not-a-constructor.js index cc4d2bca46..10ce410a35 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setDate/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setDate/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setDate(); -}, '`let date = new Date(Date.now()); new date.setDate()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setFullYear/name.js b/js/src/tests/test262/built-ins/Date/prototype/setFullYear/name.js index 07255899ed..29e39d5e7c 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setFullYear/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setFullYear/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setFullYear.name, "setFullYear"); - -verifyNotEnumerable(Date.prototype.setFullYear, "name"); -verifyNotWritable(Date.prototype.setFullYear, "name"); -verifyConfigurable(Date.prototype.setFullYear, "name"); +verifyProperty(Date.prototype.setFullYear, "name", { + value: "setFullYear", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setFullYear/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/setFullYear/not-a-constructor.js index 99b1f387c3..18a21334b4 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setFullYear/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setFullYear/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setFullYear(); -}, '`let date = new Date(Date.now()); new date.setFullYear()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setHours/name.js b/js/src/tests/test262/built-ins/Date/prototype/setHours/name.js index 9626594fc3..9f752c681a 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setHours/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setHours/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setHours.name, "setHours"); - -verifyNotEnumerable(Date.prototype.setHours, "name"); -verifyNotWritable(Date.prototype.setHours, "name"); -verifyConfigurable(Date.prototype.setHours, "name"); +verifyProperty(Date.prototype.setHours, "name", { + value: "setHours", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setHours/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/setHours/not-a-constructor.js index 767fe264d0..20348701c2 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setHours/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setHours/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setHours(); -}, '`let date = new Date(Date.now()); new date.setHours()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setMilliseconds/name.js b/js/src/tests/test262/built-ins/Date/prototype/setMilliseconds/name.js index 3430c5e216..fb20207a6b 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setMilliseconds/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setMilliseconds/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setMilliseconds.name, "setMilliseconds"); - -verifyNotEnumerable(Date.prototype.setMilliseconds, "name"); -verifyNotWritable(Date.prototype.setMilliseconds, "name"); -verifyConfigurable(Date.prototype.setMilliseconds, "name"); +verifyProperty(Date.prototype.setMilliseconds, "name", { + value: "setMilliseconds", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setMilliseconds/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/setMilliseconds/not-a-constructor.js index 3282e1a901..e667918b7c 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setMilliseconds/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setMilliseconds/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setMilliseconds(); -}, '`let date = new Date(Date.now()); new date.setMilliseconds()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setMinutes/name.js b/js/src/tests/test262/built-ins/Date/prototype/setMinutes/name.js index 5b177e2027..3a88966446 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setMinutes/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setMinutes/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setMinutes.name, "setMinutes"); - -verifyNotEnumerable(Date.prototype.setMinutes, "name"); -verifyNotWritable(Date.prototype.setMinutes, "name"); -verifyConfigurable(Date.prototype.setMinutes, "name"); +verifyProperty(Date.prototype.setMinutes, "name", { + value: "setMinutes", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setMinutes/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/setMinutes/not-a-constructor.js index c65d687fb9..c74f8aa05c 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setMinutes/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setMinutes/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setMinutes(); -}, '`let date = new Date(Date.now()); new date.setMinutes()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setMonth/name.js b/js/src/tests/test262/built-ins/Date/prototype/setMonth/name.js index 9e28f33557..b537c6f3f9 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setMonth/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setMonth/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setMonth.name, "setMonth"); - -verifyNotEnumerable(Date.prototype.setMonth, "name"); -verifyNotWritable(Date.prototype.setMonth, "name"); -verifyConfigurable(Date.prototype.setMonth, "name"); +verifyProperty(Date.prototype.setMonth, "name", { + value: "setMonth", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setMonth/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/setMonth/not-a-constructor.js index ce51b8a701..f9d71f03a1 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setMonth/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setMonth/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setMonth(); -}, '`let date = new Date(Date.now()); new date.setMonth()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setSeconds/name.js b/js/src/tests/test262/built-ins/Date/prototype/setSeconds/name.js index 1850428386..08020a855e 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setSeconds/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setSeconds/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setSeconds.name, "setSeconds"); - -verifyNotEnumerable(Date.prototype.setSeconds, "name"); -verifyNotWritable(Date.prototype.setSeconds, "name"); -verifyConfigurable(Date.prototype.setSeconds, "name"); +verifyProperty(Date.prototype.setSeconds, "name", { + value: "setSeconds", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setSeconds/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/setSeconds/not-a-constructor.js index 47cfa721dd..029042ae4e 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setSeconds/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setSeconds/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setSeconds(); -}, '`let date = new Date(Date.now()); new date.setSeconds()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setTime/name.js b/js/src/tests/test262/built-ins/Date/prototype/setTime/name.js index b978b93ad5..dec4cd1c53 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setTime/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setTime/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setTime.name, "setTime"); - -verifyNotEnumerable(Date.prototype.setTime, "name"); -verifyNotWritable(Date.prototype.setTime, "name"); -verifyConfigurable(Date.prototype.setTime, "name"); +verifyProperty(Date.prototype.setTime, "name", { + value: "setTime", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setTime/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/setTime/not-a-constructor.js index 5bd2d83907..3679690bf7 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setTime/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setTime/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setTime(); -}, '`let date = new Date(Date.now()); new date.setTime()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setUTCDate/name.js b/js/src/tests/test262/built-ins/Date/prototype/setUTCDate/name.js index 4608a57892..18daf453bf 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setUTCDate/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setUTCDate/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setUTCDate.name, "setUTCDate"); - -verifyNotEnumerable(Date.prototype.setUTCDate, "name"); -verifyNotWritable(Date.prototype.setUTCDate, "name"); -verifyConfigurable(Date.prototype.setUTCDate, "name"); +verifyProperty(Date.prototype.setUTCDate, "name", { + value: "setUTCDate", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setUTCDate/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/setUTCDate/not-a-constructor.js index eb0e04f08c..b8046e3eeb 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setUTCDate/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setUTCDate/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setUTCDate(); -}, '`let date = new Date(Date.now()); new date.setUTCDate()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setUTCFullYear/name.js b/js/src/tests/test262/built-ins/Date/prototype/setUTCFullYear/name.js index 3f0c1ce4ed..d3b53eb5b0 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setUTCFullYear/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setUTCFullYear/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setUTCFullYear.name, "setUTCFullYear"); - -verifyNotEnumerable(Date.prototype.setUTCFullYear, "name"); -verifyNotWritable(Date.prototype.setUTCFullYear, "name"); -verifyConfigurable(Date.prototype.setUTCFullYear, "name"); +verifyProperty(Date.prototype.setUTCFullYear, "name", { + value: "setUTCFullYear", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setUTCFullYear/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/setUTCFullYear/not-a-constructor.js index 06d291aa71..715c51f6c3 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setUTCFullYear/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setUTCFullYear/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setUTCFullYear(); -}, '`let date = new Date(Date.now()); new date.setUTCFullYear()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setUTCHours/name.js b/js/src/tests/test262/built-ins/Date/prototype/setUTCHours/name.js index 8335871c2c..1bbdd90e18 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setUTCHours/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setUTCHours/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setUTCHours.name, "setUTCHours"); - -verifyNotEnumerable(Date.prototype.setUTCHours, "name"); -verifyNotWritable(Date.prototype.setUTCHours, "name"); -verifyConfigurable(Date.prototype.setUTCHours, "name"); +verifyProperty(Date.prototype.setUTCHours, "name", { + value: "setUTCHours", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setUTCHours/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/setUTCHours/not-a-constructor.js index a572e32b52..379bf379c6 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setUTCHours/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setUTCHours/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setUTCHours(); -}, '`let date = new Date(Date.now()); new date.setUTCHours()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setUTCMilliseconds/name.js b/js/src/tests/test262/built-ins/Date/prototype/setUTCMilliseconds/name.js index 65d0bd6f99..73ac13ce7d 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setUTCMilliseconds/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setUTCMilliseconds/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setUTCMilliseconds.name, "setUTCMilliseconds"); - -verifyNotEnumerable(Date.prototype.setUTCMilliseconds, "name"); -verifyNotWritable(Date.prototype.setUTCMilliseconds, "name"); -verifyConfigurable(Date.prototype.setUTCMilliseconds, "name"); +verifyProperty(Date.prototype.setUTCMilliseconds, "name", { + value: "setUTCMilliseconds", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setUTCMilliseconds/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/setUTCMilliseconds/not-a-constructor.js index a7e4cbcc7b..f2b345157a 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setUTCMilliseconds/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setUTCMilliseconds/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setUTCMilliseconds(); -}, '`let date = new Date(Date.now()); new date.setUTCMilliseconds()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setUTCMinutes/name.js b/js/src/tests/test262/built-ins/Date/prototype/setUTCMinutes/name.js index db16d42c80..b8a686c993 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setUTCMinutes/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setUTCMinutes/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setUTCMinutes.name, "setUTCMinutes"); - -verifyNotEnumerable(Date.prototype.setUTCMinutes, "name"); -verifyNotWritable(Date.prototype.setUTCMinutes, "name"); -verifyConfigurable(Date.prototype.setUTCMinutes, "name"); +verifyProperty(Date.prototype.setUTCMinutes, "name", { + value: "setUTCMinutes", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setUTCMinutes/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/setUTCMinutes/not-a-constructor.js index 01f6a9293f..fd18c165b4 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setUTCMinutes/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setUTCMinutes/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setUTCMinutes(); -}, '`let date = new Date(Date.now()); new date.setUTCMinutes()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setUTCMonth/name.js b/js/src/tests/test262/built-ins/Date/prototype/setUTCMonth/name.js index 70ca8822ea..31e7374ccb 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setUTCMonth/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setUTCMonth/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setUTCMonth.name, "setUTCMonth"); - -verifyNotEnumerable(Date.prototype.setUTCMonth, "name"); -verifyNotWritable(Date.prototype.setUTCMonth, "name"); -verifyConfigurable(Date.prototype.setUTCMonth, "name"); +verifyProperty(Date.prototype.setUTCMonth, "name", { + value: "setUTCMonth", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setUTCMonth/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/setUTCMonth/not-a-constructor.js index 977faba6d2..afc198eecf 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setUTCMonth/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setUTCMonth/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setUTCMonth(); -}, '`let date = new Date(Date.now()); new date.setUTCMonth()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setUTCSeconds/name.js b/js/src/tests/test262/built-ins/Date/prototype/setUTCSeconds/name.js index b73874e84a..6748c4cdd1 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setUTCSeconds/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setUTCSeconds/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setUTCSeconds.name, "setUTCSeconds"); - -verifyNotEnumerable(Date.prototype.setUTCSeconds, "name"); -verifyNotWritable(Date.prototype.setUTCSeconds, "name"); -verifyConfigurable(Date.prototype.setUTCSeconds, "name"); +verifyProperty(Date.prototype.setUTCSeconds, "name", { + value: "setUTCSeconds", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/setUTCSeconds/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/setUTCSeconds/not-a-constructor.js index b6eebae507..df97189a3a 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/setUTCSeconds/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/setUTCSeconds/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setUTCSeconds(); -}, '`let date = new Date(Date.now()); new date.setUTCSeconds()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/toDateString/name.js b/js/src/tests/test262/built-ins/Date/prototype/toDateString/name.js index 3cd99649b7..d6c2ac0c85 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toDateString/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toDateString/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.toDateString.name, "toDateString"); - -verifyNotEnumerable(Date.prototype.toDateString, "name"); -verifyNotWritable(Date.prototype.toDateString, "name"); -verifyConfigurable(Date.prototype.toDateString, "name"); +verifyProperty(Date.prototype.toDateString, "name", { + value: "toDateString", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/toDateString/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/toDateString/not-a-constructor.js index b70807dc68..4e01ccd8d4 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toDateString/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toDateString/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toDateString(); -}, '`let date = new Date(Date.now()); new date.toDateString()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/toISOString/name.js b/js/src/tests/test262/built-ins/Date/prototype/toISOString/name.js index 1abb089310..dfce76f478 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toISOString/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toISOString/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.toISOString.name, "toISOString"); - -verifyNotEnumerable(Date.prototype.toISOString, "name"); -verifyNotWritable(Date.prototype.toISOString, "name"); -verifyConfigurable(Date.prototype.toISOString, "name"); +verifyProperty(Date.prototype.toISOString, "name", { + value: "toISOString", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/toISOString/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/toISOString/not-a-constructor.js index a3dd9891ec..e0e18320f9 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toISOString/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toISOString/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toISOString(); -}, '`let date = new Date(Date.now()); new date.toISOString()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/toJSON/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/toJSON/not-a-constructor.js index df5faff002..9616f636d7 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toJSON/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toJSON/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toJSON(); -}, '`let date = new Date(Date.now()); new date.toJSON()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/toLocaleDateString/name.js b/js/src/tests/test262/built-ins/Date/prototype/toLocaleDateString/name.js index 0f3981a565..b346684487 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toLocaleDateString/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toLocaleDateString/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.toLocaleDateString.name, "toLocaleDateString"); - -verifyNotEnumerable(Date.prototype.toLocaleDateString, "name"); -verifyNotWritable(Date.prototype.toLocaleDateString, "name"); -verifyConfigurable(Date.prototype.toLocaleDateString, "name"); +verifyProperty(Date.prototype.toLocaleDateString, "name", { + value: "toLocaleDateString", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/toLocaleDateString/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/toLocaleDateString/not-a-constructor.js index 45b56d70ed..70f5a23b2f 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toLocaleDateString/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toLocaleDateString/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toLocaleDateString(); -}, '`let date = new Date(Date.now()); new date.toLocaleDateString()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/toLocaleString/name.js b/js/src/tests/test262/built-ins/Date/prototype/toLocaleString/name.js index 1c2d1ad584..0a23badf79 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toLocaleString/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toLocaleString/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.toLocaleString.name, "toLocaleString"); - -verifyNotEnumerable(Date.prototype.toLocaleString, "name"); -verifyNotWritable(Date.prototype.toLocaleString, "name"); -verifyConfigurable(Date.prototype.toLocaleString, "name"); +verifyProperty(Date.prototype.toLocaleString, "name", { + value: "toLocaleString", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/toLocaleString/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/toLocaleString/not-a-constructor.js index 4af86cd1e6..ea251261e9 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toLocaleString/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toLocaleString/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toLocaleString(); -}, '`let date = new Date(Date.now()); new date.toLocaleString()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/toLocaleTimeString/name.js b/js/src/tests/test262/built-ins/Date/prototype/toLocaleTimeString/name.js index 260baf8b5d..ad4e9237c4 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toLocaleTimeString/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toLocaleTimeString/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.toLocaleTimeString.name, "toLocaleTimeString"); - -verifyNotEnumerable(Date.prototype.toLocaleTimeString, "name"); -verifyNotWritable(Date.prototype.toLocaleTimeString, "name"); -verifyConfigurable(Date.prototype.toLocaleTimeString, "name"); +verifyProperty(Date.prototype.toLocaleTimeString, "name", { + value: "toLocaleTimeString", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/toLocaleTimeString/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/toLocaleTimeString/not-a-constructor.js index 6f648bb789..3ed058cd57 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toLocaleTimeString/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toLocaleTimeString/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toLocaleTimeString(); -}, '`let date = new Date(Date.now()); new date.toLocaleTimeString()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/toString/name.js b/js/src/tests/test262/built-ins/Date/prototype/toString/name.js index 9bfd383b55..d317a654de 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toString/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toString/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.toString.name, "toString"); - -verifyNotEnumerable(Date.prototype.toString, "name"); -verifyNotWritable(Date.prototype.toString, "name"); -verifyConfigurable(Date.prototype.toString, "name"); +verifyProperty(Date.prototype.toString, "name", { + value: "toString", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/toString/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/toString/not-a-constructor.js index 29da7f63b2..a08235eebc 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toString/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toString/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toString(); -}, '`let date = new Date(Date.now()); new date.toString()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/toTimeString/name.js b/js/src/tests/test262/built-ins/Date/prototype/toTimeString/name.js index 4616efbad2..fe1a3a9efc 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toTimeString/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toTimeString/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.toTimeString.name, "toTimeString"); - -verifyNotEnumerable(Date.prototype.toTimeString, "name"); -verifyNotWritable(Date.prototype.toTimeString, "name"); -verifyConfigurable(Date.prototype.toTimeString, "name"); +verifyProperty(Date.prototype.toTimeString, "name", { + value: "toTimeString", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/toTimeString/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/toTimeString/not-a-constructor.js index 7191049f7c..d4a5c01932 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toTimeString/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toTimeString/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toTimeString(); -}, '`let date = new Date(Date.now()); new date.toTimeString()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/toUTCString/name.js b/js/src/tests/test262/built-ins/Date/prototype/toUTCString/name.js index 96fb0dce00..33e1c0fffe 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toUTCString/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toUTCString/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.toUTCString.name, "toUTCString"); - -verifyNotEnumerable(Date.prototype.toUTCString, "name"); -verifyNotWritable(Date.prototype.toUTCString, "name"); -verifyConfigurable(Date.prototype.toUTCString, "name"); +verifyProperty(Date.prototype.toUTCString, "name", { + value: "toUTCString", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/toUTCString/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/toUTCString/not-a-constructor.js index 7c944cd036..6d6088c60c 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/toUTCString/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/toUTCString/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toUTCString(); -}, '`let date = new Date(Date.now()); new date.toUTCString()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/valueOf/name.js b/js/src/tests/test262/built-ins/Date/prototype/valueOf/name.js index e1e16eb74b..04efdd6d3f 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/valueOf/name.js +++ b/js/src/tests/test262/built-ins/Date/prototype/valueOf/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.valueOf.name, "valueOf"); - -verifyNotEnumerable(Date.prototype.valueOf, "name"); -verifyNotWritable(Date.prototype.valueOf, "name"); -verifyConfigurable(Date.prototype.valueOf, "name"); +verifyProperty(Date.prototype.valueOf, "name", { + value: "valueOf", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Date/prototype/valueOf/not-a-constructor.js b/js/src/tests/test262/built-ins/Date/prototype/valueOf/not-a-constructor.js index 5e333ff19e..ee2d0146ce 100644 --- a/js/src/tests/test262/built-ins/Date/prototype/valueOf/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Date/prototype/valueOf/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.valueOf(); -}, '`let date = new Date(Date.now()); new date.valueOf()` throws TypeError'); +}); reportCompare(0, 0); |