From 65bd4432f9c7bbb80a68a1f71a652a3d70e4313b Mon Sep 17 00:00:00 2001 From: Leo Balter Date: Wed, 18 Nov 2020 12:03:25 -0800 Subject: [PATCH] Fix missing renames for item->at Ref #2905 --- test/built-ins/Array/prototype/at/name.js | 12 +++++++----- test/built-ins/Array/prototype/at/prop-desc.js | 8 +++++--- test/built-ins/String/prototype/at/name.js | 12 +++++++----- test/built-ins/String/prototype/at/prop-desc.js | 8 +++++--- test/built-ins/TypedArray/prototype/at/name.js | 12 +++++++----- test/built-ins/TypedArray/prototype/at/prop-desc.js | 8 +++++--- 6 files changed, 36 insertions(+), 24 deletions(-) diff --git a/test/built-ins/Array/prototype/at/name.js b/test/built-ins/Array/prototype/at/name.js index 13d3cf6a3c..2995f60923 100644 --- a/test/built-ins/Array/prototype/at/name.js +++ b/test/built-ins/Array/prototype/at/name.js @@ -15,10 +15,12 @@ features: [Array.prototype.at] assert.sameValue(typeof Array.prototype.at, 'function'); assert.sameValue( - Array.prototype.at.name, 'item', - 'The value of Array.prototype.at.name is "item"' + Array.prototype.at.name, 'at', + 'The value of Array.prototype.at.name is "at"' ); -verifyNotEnumerable(Array.prototype.at, 'name'); -verifyNotWritable(Array.prototype.at, 'name'); -verifyConfigurable(Array.prototype.at, 'name'); +verifyProperty(Array.prototype.at, 'name', { + enumerable: false, + writable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/at/prop-desc.js b/test/built-ins/Array/prototype/at/prop-desc.js index c806576b32..0a8ee5572d 100644 --- a/test/built-ins/Array/prototype/at/prop-desc.js +++ b/test/built-ins/Array/prototype/at/prop-desc.js @@ -19,6 +19,8 @@ assert.sameValue( 'The value of `typeof Array.prototype.at` is "function"' ); -verifyNotEnumerable(Array.prototype, 'item'); -verifyWritable(Array.prototype, 'item'); -verifyConfigurable(Array.prototype, 'item'); +verifyProperty(Array.prototype, 'at', { + enumerable: false, + writable: true, + configurable: true +}); diff --git a/test/built-ins/String/prototype/at/name.js b/test/built-ins/String/prototype/at/name.js index c0dd3f41d1..0cba4bb13b 100644 --- a/test/built-ins/String/prototype/at/name.js +++ b/test/built-ins/String/prototype/at/name.js @@ -15,10 +15,12 @@ features: [String.prototype.at] assert.sameValue(typeof String.prototype.at, 'function'); assert.sameValue( - String.prototype.at.name, 'item', - 'The value of String.prototype.at.name is "item"' + String.prototype.at.name, 'at', + 'The value of String.prototype.at.name is "at"' ); -verifyNotEnumerable(String.prototype.at, 'name'); -verifyNotWritable(String.prototype.at, 'name'); -verifyConfigurable(String.prototype.at, 'name'); +verifyProperty(String.prototype.at, 'name', { + enumerable: false, + writable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/at/prop-desc.js b/test/built-ins/String/prototype/at/prop-desc.js index 4b06eb9670..90d331ef58 100644 --- a/test/built-ins/String/prototype/at/prop-desc.js +++ b/test/built-ins/String/prototype/at/prop-desc.js @@ -19,6 +19,8 @@ assert.sameValue( 'The value of `typeof String.prototype.at` is "function"' ); -verifyNotEnumerable(String.prototype, 'item'); -verifyWritable(String.prototype, 'item'); -verifyConfigurable(String.prototype, 'item'); +verifyProperty(String.prototype.at, 'name', { + enumerable: false, + writable: true, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/at/name.js b/test/built-ins/TypedArray/prototype/at/name.js index cd6e4aa782..f25437522b 100644 --- a/test/built-ins/TypedArray/prototype/at/name.js +++ b/test/built-ins/TypedArray/prototype/at/name.js @@ -19,10 +19,12 @@ assert.sameValue( ); assert.sameValue( - TypedArray.prototype.at.name, 'item', - 'The value of TypedArray.prototype.at.name is "item"' + TypedArray.prototype.at.name, 'at', + 'The value of TypedArray.prototype.at.name is "at"' ); -verifyNotEnumerable(TypedArray.prototype.at, 'name'); -verifyNotWritable(TypedArray.prototype.at, 'name'); -verifyConfigurable(TypedArray.prototype.at, 'name'); +verifyProperty(TypedArray.prototype.at, 'name', { + enumerable: false, + writable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/at/prop-desc.js b/test/built-ins/TypedArray/prototype/at/prop-desc.js index 4ab195d8c9..b7a8124437 100644 --- a/test/built-ins/TypedArray/prototype/at/prop-desc.js +++ b/test/built-ins/TypedArray/prototype/at/prop-desc.js @@ -17,6 +17,8 @@ assert.sameValue( 'The value of `typeof TypedArray.prototype.at` is "function"' ); -verifyNotEnumerable(TypedArray.prototype, 'item'); -verifyWritable(TypedArray.prototype, 'item'); -verifyConfigurable(TypedArray.prototype, 'item'); +verifyProperty(TypedArray.prototype.at, 'name', { + enumerable: false, + writable: true, + configurable: true +});