mirror of
https://github.com/tc39/test262.git
synced 2025-07-20 20:44:43 +02:00
parent
e1bfbbfdc8
commit
65bd4432f9
12
test/built-ins/Array/prototype/at/name.js
vendored
12
test/built-ins/Array/prototype/at/name.js
vendored
@ -15,10 +15,12 @@ features: [Array.prototype.at]
|
|||||||
assert.sameValue(typeof Array.prototype.at, 'function');
|
assert.sameValue(typeof Array.prototype.at, 'function');
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
Array.prototype.at.name, 'item',
|
Array.prototype.at.name, 'at',
|
||||||
'The value of Array.prototype.at.name is "item"'
|
'The value of Array.prototype.at.name is "at"'
|
||||||
);
|
);
|
||||||
|
|
||||||
verifyNotEnumerable(Array.prototype.at, 'name');
|
verifyProperty(Array.prototype.at, 'name', {
|
||||||
verifyNotWritable(Array.prototype.at, 'name');
|
enumerable: false,
|
||||||
verifyConfigurable(Array.prototype.at, 'name');
|
writable: false,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
@ -19,6 +19,8 @@ assert.sameValue(
|
|||||||
'The value of `typeof Array.prototype.at` is "function"'
|
'The value of `typeof Array.prototype.at` is "function"'
|
||||||
);
|
);
|
||||||
|
|
||||||
verifyNotEnumerable(Array.prototype, 'item');
|
verifyProperty(Array.prototype, 'at', {
|
||||||
verifyWritable(Array.prototype, 'item');
|
enumerable: false,
|
||||||
verifyConfigurable(Array.prototype, 'item');
|
writable: true,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
12
test/built-ins/String/prototype/at/name.js
vendored
12
test/built-ins/String/prototype/at/name.js
vendored
@ -15,10 +15,12 @@ features: [String.prototype.at]
|
|||||||
assert.sameValue(typeof String.prototype.at, 'function');
|
assert.sameValue(typeof String.prototype.at, 'function');
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
String.prototype.at.name, 'item',
|
String.prototype.at.name, 'at',
|
||||||
'The value of String.prototype.at.name is "item"'
|
'The value of String.prototype.at.name is "at"'
|
||||||
);
|
);
|
||||||
|
|
||||||
verifyNotEnumerable(String.prototype.at, 'name');
|
verifyProperty(String.prototype.at, 'name', {
|
||||||
verifyNotWritable(String.prototype.at, 'name');
|
enumerable: false,
|
||||||
verifyConfigurable(String.prototype.at, 'name');
|
writable: false,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
@ -19,6 +19,8 @@ assert.sameValue(
|
|||||||
'The value of `typeof String.prototype.at` is "function"'
|
'The value of `typeof String.prototype.at` is "function"'
|
||||||
);
|
);
|
||||||
|
|
||||||
verifyNotEnumerable(String.prototype, 'item');
|
verifyProperty(String.prototype.at, 'name', {
|
||||||
verifyWritable(String.prototype, 'item');
|
enumerable: false,
|
||||||
verifyConfigurable(String.prototype, 'item');
|
writable: true,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
12
test/built-ins/TypedArray/prototype/at/name.js
vendored
12
test/built-ins/TypedArray/prototype/at/name.js
vendored
@ -19,10 +19,12 @@ assert.sameValue(
|
|||||||
);
|
);
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
TypedArray.prototype.at.name, 'item',
|
TypedArray.prototype.at.name, 'at',
|
||||||
'The value of TypedArray.prototype.at.name is "item"'
|
'The value of TypedArray.prototype.at.name is "at"'
|
||||||
);
|
);
|
||||||
|
|
||||||
verifyNotEnumerable(TypedArray.prototype.at, 'name');
|
verifyProperty(TypedArray.prototype.at, 'name', {
|
||||||
verifyNotWritable(TypedArray.prototype.at, 'name');
|
enumerable: false,
|
||||||
verifyConfigurable(TypedArray.prototype.at, 'name');
|
writable: false,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
@ -17,6 +17,8 @@ assert.sameValue(
|
|||||||
'The value of `typeof TypedArray.prototype.at` is "function"'
|
'The value of `typeof TypedArray.prototype.at` is "function"'
|
||||||
);
|
);
|
||||||
|
|
||||||
verifyNotEnumerable(TypedArray.prototype, 'item');
|
verifyProperty(TypedArray.prototype.at, 'name', {
|
||||||
verifyWritable(TypedArray.prototype, 'item');
|
enumerable: false,
|
||||||
verifyConfigurable(TypedArray.prototype, 'item');
|
writable: true,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user