mirror of
https://github.com/tc39/test262.git
synced 2025-07-21 13:04:39 +02:00
Add Array.prototype.every.length tests
This commit is contained in:
parent
a8c0939bc3
commit
80b091ce2d
20
test/built-ins/Array/prototype/every/length.js
vendored
Normal file
20
test/built-ins/Array/prototype/every/length.js
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 2017 Corey Frang. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
esid: sec-array.prototype.every
|
||||||
|
description: >
|
||||||
|
Array.prototype.every.length value and property descriptor
|
||||||
|
info: >
|
||||||
|
Array.prototype.every ( callbackfn [ , thisArg] )
|
||||||
|
The length property of the of function is 1.
|
||||||
|
includes: [propertyHelper.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
assert.sameValue(
|
||||||
|
Array.prototype.every.length, 1,
|
||||||
|
'The value of `Array.prototype.every.length` is `1`'
|
||||||
|
);
|
||||||
|
|
||||||
|
verifyNotEnumerable(Array.prototype.every, 'length');
|
||||||
|
verifyNotWritable(Array.prototype.every, 'length');
|
||||||
|
verifyConfigurable(Array.prototype.every, 'length');
|
Loading…
x
Reference in New Issue
Block a user