diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Promise/prototype/then')
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/Promise/prototype/then/length.js b/js/src/tests/test262/built-ins/Promise/prototype/then/length.js index 1e865b0460..2ada466b80 100644 --- a/js/src/tests/test262/built-ins/Promise/prototype/then/length.js +++ b/js/src/tests/test262/built-ins/Promise/prototype/then/length.js @@ -18,10 +18,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Promise.prototype.then.length, 2); - -verifyNotEnumerable(Promise.prototype.then, 'length'); -verifyNotWritable(Promise.prototype.then, 'length'); -verifyConfigurable(Promise.prototype.then, 'length'); +verifyProperty(Promise.prototype.then, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Promise/prototype/then/name.js b/js/src/tests/test262/built-ins/Promise/prototype/then/name.js index b1c97f9956..82402ea992 100644 --- a/js/src/tests/test262/built-ins/Promise/prototype/then/name.js +++ b/js/src/tests/test262/built-ins/Promise/prototype/then/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Promise.prototype.then.name, 'then'); - -verifyNotEnumerable(Promise.prototype.then, 'name'); -verifyNotWritable(Promise.prototype.then, 'name'); -verifyConfigurable(Promise.prototype.then, 'name'); +verifyProperty(Promise.prototype.then, "name", { + value: "then", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Promise/prototype/then/not-a-constructor.js b/js/src/tests/test262/built-ins/Promise/prototype/then/not-a-constructor.js index d943772f86..d04c89e111 100644 --- a/js/src/tests/test262/built-ins/Promise/prototype/then/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Promise/prototype/then/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let p = new Promise(() => {}); new p.then(); -}, '`let p = new Promise(() => {}); new p.then()` throws TypeError'); +}); reportCompare(0, 0); |