mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
parent
e1bfbbfdc8
commit
65bd4432f9
test/built-ins
Array/prototype/at
String/prototype/at
TypedArray/prototype/at
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(
|
||||
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
|
||||
});
|
||||
|
@ -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
|
||||
});
|
||||
|
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(
|
||||
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
|
||||
});
|
||||
|
@ -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
|
||||
});
|
||||
|
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(
|
||||
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
|
||||
});
|
||||
|
@ -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
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user