Add missing tests for "length" and "name" properties of built-in functions

Note: Already uses the updated DataView function lengths from tc39/ecma262#266 (ES2016 Draft 2015-12-20)
This commit is contained in:
André Bargull 2016-01-15 18:12:05 +01:00
parent bb1bda6dfd
commit ca61d9b876
280 changed files with 7596 additions and 0 deletions

View File

@ -0,0 +1,32 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.2.5
description: >
get Array [ @@species ].length is 0.
info: >
get Array [ @@species ]
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description, including optional
parameters. However, rest parameters shown using the form ...name
are not included in the default argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
features: [Symbol.species]
---*/
var desc = Object.getOwnPropertyDescriptor(Array, Symbol.species);
assert.sameValue(desc.get.length, 0);
verifyNotEnumerable(desc.get, "length");
verifyNotWritable(desc.get, "length");
verifyConfigurable(desc.get, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.2.2
description: >
Array.isArray.name is "isArray".
info: >
Array.isArray ( arg )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.isArray.name, "isArray");
verifyNotEnumerable(Array.isArray, "name");
verifyNotWritable(Array.isArray, "name");
verifyConfigurable(Array.isArray, "name");

26
test/built-ins/Array/prototype/concat/name.js vendored Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.1
description: >
Array.prototype.concat.name is "concat".
info: >
Array.prototype.concat ( ...arguments )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.concat.name, "concat");
verifyNotEnumerable(Array.prototype.concat, "name");
verifyNotWritable(Array.prototype.concat, "name");
verifyConfigurable(Array.prototype.concat, "name");

26
test/built-ins/Array/prototype/every/name.js vendored Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.5
description: >
Array.prototype.every.name is "every".
info: >
Array.prototype.every ( callbackfn [ , thisArg] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.every.name, "every");
verifyNotEnumerable(Array.prototype.every, "name");
verifyNotWritable(Array.prototype.every, "name");
verifyConfigurable(Array.prototype.every, "name");

26
test/built-ins/Array/prototype/filter/name.js vendored Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.7
description: >
Array.prototype.filter.name is "filter".
info: >
Array.prototype.filter ( callbackfn [ , thisArg ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.filter.name, "filter");
verifyNotEnumerable(Array.prototype.filter, "name");
verifyNotWritable(Array.prototype.filter, "name");
verifyConfigurable(Array.prototype.filter, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.10
description: >
Array.prototype.forEach.name is "forEach".
info: >
Array.prototype.forEach ( callbackfn [ , thisArg ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.forEach.name, "forEach");
verifyNotEnumerable(Array.prototype.forEach, "name");
verifyNotWritable(Array.prototype.forEach, "name");
verifyConfigurable(Array.prototype.forEach, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.11
description: >
Array.prototype.indexOf.name is "indexOf".
info: >
Array.prototype.indexOf ( searchElement [ , fromIndex ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.indexOf.name, "indexOf");
verifyNotEnumerable(Array.prototype.indexOf, "name");
verifyNotWritable(Array.prototype.indexOf, "name");
verifyConfigurable(Array.prototype.indexOf, "name");

26
test/built-ins/Array/prototype/join/name.js vendored Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.12
description: >
Array.prototype.join.name is "join".
info: >
Array.prototype.join (separator)
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.join.name, "join");
verifyNotEnumerable(Array.prototype.join, "name");
verifyNotWritable(Array.prototype.join, "name");
verifyConfigurable(Array.prototype.join, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.14
description: >
Array.prototype.lastIndexOf.name is "lastIndexOf".
info: >
Array.prototype.lastIndexOf ( searchElement [ , fromIndex ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.lastIndexOf.name, "lastIndexOf");
verifyNotEnumerable(Array.prototype.lastIndexOf, "name");
verifyNotWritable(Array.prototype.lastIndexOf, "name");
verifyConfigurable(Array.prototype.lastIndexOf, "name");

26
test/built-ins/Array/prototype/map/name.js vendored Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.15
description: >
Array.prototype.map.name is "map".
info: >
Array.prototype.map ( callbackfn [ , thisArg ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.map.name, "map");
verifyNotEnumerable(Array.prototype.map, "name");
verifyNotWritable(Array.prototype.map, "name");
verifyConfigurable(Array.prototype.map, "name");

26
test/built-ins/Array/prototype/pop/name.js vendored Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.16
description: >
Array.prototype.pop.name is "pop".
info: >
Array.prototype.pop ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.pop.name, "pop");
verifyNotEnumerable(Array.prototype.pop, "name");
verifyNotWritable(Array.prototype.pop, "name");
verifyConfigurable(Array.prototype.pop, "name");

26
test/built-ins/Array/prototype/push/name.js vendored Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.17
description: >
Array.prototype.push.name is "push".
info: >
Array.prototype.push ( ...items )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.push.name, "push");
verifyNotEnumerable(Array.prototype.push, "name");
verifyNotWritable(Array.prototype.push, "name");
verifyConfigurable(Array.prototype.push, "name");

26
test/built-ins/Array/prototype/reduce/name.js vendored Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.18
description: >
Array.prototype.reduce.name is "reduce".
info: >
Array.prototype.reduce ( callbackfn [ , initialValue ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.reduce.name, "reduce");
verifyNotEnumerable(Array.prototype.reduce, "name");
verifyNotWritable(Array.prototype.reduce, "name");
verifyConfigurable(Array.prototype.reduce, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.19
description: >
Array.prototype.reduceRight.name is "reduceRight".
info: >
Array.prototype.reduceRight ( callbackfn [ , initialValue ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.reduceRight.name, "reduceRight");
verifyNotEnumerable(Array.prototype.reduceRight, "name");
verifyNotWritable(Array.prototype.reduceRight, "name");
verifyConfigurable(Array.prototype.reduceRight, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.20
description: >
Array.prototype.reverse.name is "reverse".
info: >
Array.prototype.reverse ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.reverse.name, "reverse");
verifyNotEnumerable(Array.prototype.reverse, "name");
verifyNotWritable(Array.prototype.reverse, "name");
verifyConfigurable(Array.prototype.reverse, "name");

26
test/built-ins/Array/prototype/shift/name.js vendored Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.21
description: >
Array.prototype.shift.name is "shift".
info: >
Array.prototype.shift ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.shift.name, "shift");
verifyNotEnumerable(Array.prototype.shift, "name");
verifyNotWritable(Array.prototype.shift, "name");
verifyConfigurable(Array.prototype.shift, "name");

26
test/built-ins/Array/prototype/slice/name.js vendored Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.22
description: >
Array.prototype.slice.name is "slice".
info: >
Array.prototype.slice (start, end)
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.slice.name, "slice");
verifyNotEnumerable(Array.prototype.slice, "name");
verifyNotWritable(Array.prototype.slice, "name");
verifyConfigurable(Array.prototype.slice, "name");

26
test/built-ins/Array/prototype/some/name.js vendored Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.23
description: >
Array.prototype.some.name is "some".
info: >
Array.prototype.some ( callbackfn [ , thisArg ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.some.name, "some");
verifyNotEnumerable(Array.prototype.some, "name");
verifyNotWritable(Array.prototype.some, "name");
verifyConfigurable(Array.prototype.some, "name");

26
test/built-ins/Array/prototype/sort/name.js vendored Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.24
description: >
Array.prototype.sort.name is "sort".
info: >
Array.prototype.sort (comparefn)
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.sort.name, "sort");
verifyNotEnumerable(Array.prototype.sort, "name");
verifyNotWritable(Array.prototype.sort, "name");
verifyConfigurable(Array.prototype.sort, "name");

26
test/built-ins/Array/prototype/splice/name.js vendored Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.25
description: >
Array.prototype.splice.name is "splice".
info: >
Array.prototype.splice (start, deleteCount , ...items )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.splice.name, "splice");
verifyNotEnumerable(Array.prototype.splice, "name");
verifyNotWritable(Array.prototype.splice, "name");
verifyConfigurable(Array.prototype.splice, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.26
description: >
Array.prototype.toLocaleString.name is "toLocaleString".
info: >
Array.prototype.toLocaleString ( [ reserved1 [ , reserved2 ] ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.toLocaleString.name, "toLocaleString");
verifyNotEnumerable(Array.prototype.toLocaleString, "name");
verifyNotWritable(Array.prototype.toLocaleString, "name");
verifyConfigurable(Array.prototype.toLocaleString, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.27
description: >
Array.prototype.toString.name is "toString".
info: >
Array.prototype.toString ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.toString.name, "toString");
verifyNotEnumerable(Array.prototype.toString, "name");
verifyNotWritable(Array.prototype.toString, "name");
verifyConfigurable(Array.prototype.toString, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.28
description: >
Array.prototype.unshift.name is "unshift".
info: >
Array.prototype.unshift ( ...items )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.unshift.name, "unshift");
verifyNotEnumerable(Array.prototype.unshift, "name");
verifyNotWritable(Array.prototype.unshift, "name");
verifyConfigurable(Array.prototype.unshift, "name");

View File

@ -0,0 +1,32 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.1.3.3
description: >
get ArrayBuffer [ @@species ].length is 0.
info: >
get ArrayBuffer [ @@species ]
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description, including optional
parameters. However, rest parameters shown using the form ...name
are not included in the default argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
features: [Symbol.species]
---*/
var desc = Object.getOwnPropertyDescriptor(ArrayBuffer, Symbol.species);
assert.sameValue(desc.get.length, 0);
verifyNotEnumerable(desc.get, "length");
verifyNotWritable(desc.get, "length");
verifyConfigurable(desc.get, "length");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.1.3.1
description: >
ArrayBuffer.isView.length is 1.
info: >
ArrayBuffer.isView ( arg )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description, including optional
parameters. However, rest parameters shown using the form ...name
are not included in the default argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(ArrayBuffer.isView.length, 1);
verifyNotEnumerable(ArrayBuffer.isView, "length");
verifyNotWritable(ArrayBuffer.isView, "length");
verifyConfigurable(ArrayBuffer.isView, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.1.3.1
description: >
ArrayBuffer.isView.name is "isView".
info: >
ArrayBuffer.isView ( arg )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(ArrayBuffer.isView.name, "isView");
verifyNotEnumerable(ArrayBuffer.isView, "name");
verifyNotWritable(ArrayBuffer.isView, "name");
verifyConfigurable(ArrayBuffer.isView, "name");

View File

@ -0,0 +1,31 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.1.4.1
description: >
get ArrayBuffer.prototype.byteLength.length is 0.
info: >
get ArrayBuffer.prototype.byteLength
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description, including optional
parameters. However, rest parameters shown using the form ...name
are not included in the default argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
var desc = Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, "byteLength");
assert.sameValue(desc.get.length, 0);
verifyNotEnumerable(desc.get, "length");
verifyNotWritable(desc.get, "length");
verifyConfigurable(desc.get, "length");

View File

@ -0,0 +1,31 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.5.2.1
description: >
%ArrayIteratorPrototype%.next.length is 0.
info: >
%ArrayIteratorPrototype%.next( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description, including optional
parameters. However, rest parameters shown using the form ...name
are not included in the default argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]());
assert.sameValue(ArrayIteratorProto.next.length, 0);
verifyNotEnumerable(ArrayIteratorProto.next, "length");
verifyNotWritable(ArrayIteratorProto.next, "length");
verifyConfigurable(ArrayIteratorProto.next, "length");

View File

@ -0,0 +1,28 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.5.2.1
description: >
%ArrayIteratorPrototype%.next.name is "next".
info: >
%ArrayIteratorPrototype%.next( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]());
assert.sameValue(ArrayIteratorProto.next.name, "next");
verifyNotEnumerable(ArrayIteratorProto.next, "name");
verifyNotWritable(ArrayIteratorProto.next, "name");
verifyConfigurable(ArrayIteratorProto.next, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 19.3.3.2
description: >
Boolean.prototype.toString.length is 0.
info: >
Boolean.prototype.toString ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description, including optional
parameters. However, rest parameters shown using the form ...name
are not included in the default argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Boolean.prototype.toString.length, 0);
verifyNotEnumerable(Boolean.prototype.toString, "length");
verifyNotWritable(Boolean.prototype.toString, "length");
verifyConfigurable(Boolean.prototype.toString, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 19.3.3.2
description: >
Boolean.prototype.toString.name is "toString".
info: >
Boolean.prototype.toString ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Boolean.prototype.toString.name, "toString");
verifyNotEnumerable(Boolean.prototype.toString, "name");
verifyNotWritable(Boolean.prototype.toString, "name");
verifyConfigurable(Boolean.prototype.toString, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 19.3.3.3
description: >
Boolean.prototype.valueOf.length is 0.
info: >
Boolean.prototype.valueOf ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description, including optional
parameters. However, rest parameters shown using the form ...name
are not included in the default argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Boolean.prototype.valueOf.length, 0);
verifyNotEnumerable(Boolean.prototype.valueOf, "length");
verifyNotWritable(Boolean.prototype.valueOf, "length");
verifyConfigurable(Boolean.prototype.valueOf, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 19.3.3.3
description: >
Boolean.prototype.valueOf.name is "valueOf".
info: >
Boolean.prototype.valueOf ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Boolean.prototype.valueOf.name, "valueOf");
verifyNotEnumerable(Boolean.prototype.valueOf, "name");
verifyNotWritable(Boolean.prototype.valueOf, "name");
verifyConfigurable(Boolean.prototype.valueOf, "name");

View File

@ -0,0 +1,31 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.1
description: >
get DataView.prototype.buffer.length is 0.
info: >
get DataView.prototype.buffer
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description, including optional
parameters. However, rest parameters shown using the form ...name
are not included in the default argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
var desc = Object.getOwnPropertyDescriptor(DataView.prototype, "buffer");
assert.sameValue(desc.get.length, 0);
verifyNotEnumerable(desc.get, "length");
verifyNotWritable(desc.get, "length");
verifyConfigurable(desc.get, "length");

View File

@ -0,0 +1,31 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.2
description: >
get DataView.prototype.byteLength.length is 0.
info: >
get DataView.prototype.byteLength
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description, including optional
parameters. However, rest parameters shown using the form ...name
are not included in the default argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
var desc = Object.getOwnPropertyDescriptor(DataView.prototype, "byteLength");
assert.sameValue(desc.get.length, 0);
verifyNotEnumerable(desc.get, "length");
verifyNotWritable(desc.get, "length");
verifyConfigurable(desc.get, "length");

View File

@ -0,0 +1,31 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.3
description: >
get DataView.prototype.byteOffset.length is 0.
info: >
get DataView.prototype.byteOffset
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description, including optional
parameters. However, rest parameters shown using the form ...name
are not included in the default argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
var desc = Object.getOwnPropertyDescriptor(DataView.prototype, "byteOffset");
assert.sameValue(desc.get.length, 0);
verifyNotEnumerable(desc.get, "length");
verifyNotWritable(desc.get, "length");
verifyConfigurable(desc.get, "length");

View File

@ -0,0 +1,30 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es7id: pending
description: >
DataView.prototype.getFloat32.length is 1.
info: >
DataView.prototype.getFloat32 ( byteOffset [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which
are shown using the form «...name») are not included in the default
argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getFloat32.length, 1);
verifyNotEnumerable(DataView.prototype.getFloat32, "length");
verifyNotWritable(DataView.prototype.getFloat32, "length");
verifyConfigurable(DataView.prototype.getFloat32, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.5
description: >
DataView.prototype.getFloat32.name is "getFloat32".
info: >
DataView.prototype.getFloat32 ( byteOffset [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getFloat32.name, "getFloat32");
verifyNotEnumerable(DataView.prototype.getFloat32, "name");
verifyNotWritable(DataView.prototype.getFloat32, "name");
verifyConfigurable(DataView.prototype.getFloat32, "name");

View File

@ -0,0 +1,30 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es7id: pending
description: >
DataView.prototype.getFloat64.length is 1.
info: >
DataView.prototype.getFloat64 ( byteOffset [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which
are shown using the form «...name») are not included in the default
argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getFloat64.length, 1);
verifyNotEnumerable(DataView.prototype.getFloat64, "length");
verifyNotWritable(DataView.prototype.getFloat64, "length");
verifyConfigurable(DataView.prototype.getFloat64, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.6
description: >
DataView.prototype.getFloat64.name is "getFloat64".
info: >
DataView.prototype.getFloat64 ( byteOffset [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getFloat64.name, "getFloat64");
verifyNotEnumerable(DataView.prototype.getFloat64, "name");
verifyNotWritable(DataView.prototype.getFloat64, "name");
verifyConfigurable(DataView.prototype.getFloat64, "name");

View File

@ -0,0 +1,30 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es7id: pending
description: >
DataView.prototype.getInt16.length is 1.
info: >
DataView.prototype.getInt16 ( byteOffset [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which
are shown using the form «...name») are not included in the default
argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getInt16.length, 1);
verifyNotEnumerable(DataView.prototype.getInt16, "length");
verifyNotWritable(DataView.prototype.getInt16, "length");
verifyConfigurable(DataView.prototype.getInt16, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.8
description: >
DataView.prototype.getInt16.name is "getInt16".
info: >
DataView.prototype.getInt16 ( byteOffset [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getInt16.name, "getInt16");
verifyNotEnumerable(DataView.prototype.getInt16, "name");
verifyNotWritable(DataView.prototype.getInt16, "name");
verifyConfigurable(DataView.prototype.getInt16, "name");

View File

@ -0,0 +1,30 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es7id: pending
description: >
DataView.prototype.getInt32.length is 1.
info: >
DataView.prototype.getInt32 ( byteOffset [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which
are shown using the form «...name») are not included in the default
argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getInt32.length, 1);
verifyNotEnumerable(DataView.prototype.getInt32, "length");
verifyNotWritable(DataView.prototype.getInt32, "length");
verifyConfigurable(DataView.prototype.getInt32, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.9
description: >
DataView.prototype.getInt32.name is "getInt32".
info: >
DataView.prototype.getInt32 ( byteOffset [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getInt32.name, "getInt32");
verifyNotEnumerable(DataView.prototype.getInt32, "name");
verifyNotWritable(DataView.prototype.getInt32, "name");
verifyConfigurable(DataView.prototype.getInt32, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.7
description: >
DataView.prototype.getInt8.length is 1.
info: >
DataView.prototype.getInt8 ( byteOffset )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description, including optional
parameters. However, rest parameters shown using the form ...name
are not included in the default argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getInt8.length, 1);
verifyNotEnumerable(DataView.prototype.getInt8, "length");
verifyNotWritable(DataView.prototype.getInt8, "length");
verifyConfigurable(DataView.prototype.getInt8, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.7
description: >
DataView.prototype.getInt8.name is "getInt8".
info: >
DataView.prototype.getInt8 ( byteOffset )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getInt8.name, "getInt8");
verifyNotEnumerable(DataView.prototype.getInt8, "name");
verifyNotWritable(DataView.prototype.getInt8, "name");
verifyConfigurable(DataView.prototype.getInt8, "name");

View File

@ -0,0 +1,30 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es7id: pending
description: >
DataView.prototype.getUint16.length is 1.
info: >
DataView.prototype.getUint16 ( byteOffset [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which
are shown using the form «...name») are not included in the default
argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getUint16.length, 1);
verifyNotEnumerable(DataView.prototype.getUint16, "length");
verifyNotWritable(DataView.prototype.getUint16, "length");
verifyConfigurable(DataView.prototype.getUint16, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.11
description: >
DataView.prototype.getUint16.name is "getUint16".
info: >
DataView.prototype.getUint16 ( byteOffset [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getUint16.name, "getUint16");
verifyNotEnumerable(DataView.prototype.getUint16, "name");
verifyNotWritable(DataView.prototype.getUint16, "name");
verifyConfigurable(DataView.prototype.getUint16, "name");

View File

@ -0,0 +1,30 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es7id: pending
description: >
DataView.prototype.getUint32.length is 1.
info: >
DataView.prototype.getUint32 ( byteOffset [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which
are shown using the form «...name») are not included in the default
argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getUint32.length, 1);
verifyNotEnumerable(DataView.prototype.getUint32, "length");
verifyNotWritable(DataView.prototype.getUint32, "length");
verifyConfigurable(DataView.prototype.getUint32, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.12
description: >
DataView.prototype.getUint32.name is "getUint32".
info: >
DataView.prototype.getUint32 ( byteOffset [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getUint32.name, "getUint32");
verifyNotEnumerable(DataView.prototype.getUint32, "name");
verifyNotWritable(DataView.prototype.getUint32, "name");
verifyConfigurable(DataView.prototype.getUint32, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.10
description: >
DataView.prototype.getUint8.length is 1.
info: >
DataView.prototype.getUint8 ( byteOffset )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description, including optional
parameters. However, rest parameters shown using the form ...name
are not included in the default argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getUint8.length, 1);
verifyNotEnumerable(DataView.prototype.getUint8, "length");
verifyNotWritable(DataView.prototype.getUint8, "length");
verifyConfigurable(DataView.prototype.getUint8, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.10
description: >
DataView.prototype.getUint8.name is "getUint8".
info: >
DataView.prototype.getUint8 ( byteOffset )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getUint8.name, "getUint8");
verifyNotEnumerable(DataView.prototype.getUint8, "name");
verifyNotWritable(DataView.prototype.getUint8, "name");
verifyConfigurable(DataView.prototype.getUint8, "name");

View File

@ -0,0 +1,30 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es7id: pending
description: >
DataView.prototype.setFloat32.length is 2.
info: >
DataView.prototype.setFloat32 ( byteOffset, value [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which
are shown using the form «...name») are not included in the default
argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.setFloat32.length, 2);
verifyNotEnumerable(DataView.prototype.setFloat32, "length");
verifyNotWritable(DataView.prototype.setFloat32, "length");
verifyConfigurable(DataView.prototype.setFloat32, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.13
description: >
DataView.prototype.setFloat32.name is "setFloat32".
info: >
DataView.prototype.setFloat32 ( byteOffset, value [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.setFloat32.name, "setFloat32");
verifyNotEnumerable(DataView.prototype.setFloat32, "name");
verifyNotWritable(DataView.prototype.setFloat32, "name");
verifyConfigurable(DataView.prototype.setFloat32, "name");

View File

@ -0,0 +1,30 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es7id: pending
description: >
DataView.prototype.setFloat64.length is 2.
info: >
DataView.prototype.setFloat64 ( byteOffset, value [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which
are shown using the form «...name») are not included in the default
argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.setFloat64.length, 2);
verifyNotEnumerable(DataView.prototype.setFloat64, "length");
verifyNotWritable(DataView.prototype.setFloat64, "length");
verifyConfigurable(DataView.prototype.setFloat64, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.14
description: >
DataView.prototype.setFloat64.name is "setFloat64".
info: >
DataView.prototype.setFloat64 ( byteOffset, value [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.setFloat64.name, "setFloat64");
verifyNotEnumerable(DataView.prototype.setFloat64, "name");
verifyNotWritable(DataView.prototype.setFloat64, "name");
verifyConfigurable(DataView.prototype.setFloat64, "name");

View File

@ -0,0 +1,30 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es7id: pending
description: >
DataView.prototype.setInt16.length is 2.
info: >
DataView.prototype.setInt16 ( byteOffset, value [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which
are shown using the form «...name») are not included in the default
argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.setInt16.length, 2);
verifyNotEnumerable(DataView.prototype.setInt16, "length");
verifyNotWritable(DataView.prototype.setInt16, "length");
verifyConfigurable(DataView.prototype.setInt16, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.16
description: >
DataView.prototype.setInt16.name is "setInt16".
info: >
DataView.prototype.setInt16 ( byteOffset, value [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.setInt16.name, "setInt16");
verifyNotEnumerable(DataView.prototype.setInt16, "name");
verifyNotWritable(DataView.prototype.setInt16, "name");
verifyConfigurable(DataView.prototype.setInt16, "name");

View File

@ -0,0 +1,30 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es7id: pending
description: >
DataView.prototype.setInt32.length is 2.
info: >
DataView.prototype.setInt32 ( byteOffset, value [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which
are shown using the form «...name») are not included in the default
argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.setInt32.length, 2);
verifyNotEnumerable(DataView.prototype.setInt32, "length");
verifyNotWritable(DataView.prototype.setInt32, "length");
verifyConfigurable(DataView.prototype.setInt32, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.17
description: >
DataView.prototype.setInt32.name is "setInt32".
info: >
DataView.prototype.setInt32 ( byteOffset, value [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.setInt32.name, "setInt32");
verifyNotEnumerable(DataView.prototype.setInt32, "name");
verifyNotWritable(DataView.prototype.setInt32, "name");
verifyConfigurable(DataView.prototype.setInt32, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.15
description: >
DataView.prototype.setInt8.length is 2.
info: >
DataView.prototype.setInt8 ( byteOffset, value )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description, including optional
parameters. However, rest parameters shown using the form ...name
are not included in the default argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.setInt8.length, 2);
verifyNotEnumerable(DataView.prototype.setInt8, "length");
verifyNotWritable(DataView.prototype.setInt8, "length");
verifyConfigurable(DataView.prototype.setInt8, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.15
description: >
DataView.prototype.setInt8.name is "setInt8".
info: >
DataView.prototype.setInt8 ( byteOffset, value )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.setInt8.name, "setInt8");
verifyNotEnumerable(DataView.prototype.setInt8, "name");
verifyNotWritable(DataView.prototype.setInt8, "name");
verifyConfigurable(DataView.prototype.setInt8, "name");

View File

@ -0,0 +1,30 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es7id: pending
description: >
DataView.prototype.setUint16.length is 2.
info: >
DataView.prototype.setUint16 ( byteOffset, value [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which
are shown using the form «...name») are not included in the default
argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.setUint16.length, 2);
verifyNotEnumerable(DataView.prototype.setUint16, "length");
verifyNotWritable(DataView.prototype.setUint16, "length");
verifyConfigurable(DataView.prototype.setUint16, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.19
description: >
DataView.prototype.setUint16.name is "setUint16".
info: >
DataView.prototype.setUint16 ( byteOffset, value [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.setUint16.name, "setUint16");
verifyNotEnumerable(DataView.prototype.setUint16, "name");
verifyNotWritable(DataView.prototype.setUint16, "name");
verifyConfigurable(DataView.prototype.setUint16, "name");

View File

@ -0,0 +1,30 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es7id: pending
description: >
DataView.prototype.setUint32.length is 2.
info: >
DataView.prototype.setUint32 ( byteOffset, value [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which
are shown using the form «...name») are not included in the default
argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.setUint32.length, 2);
verifyNotEnumerable(DataView.prototype.setUint32, "length");
verifyNotWritable(DataView.prototype.setUint32, "length");
verifyConfigurable(DataView.prototype.setUint32, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.20
description: >
DataView.prototype.setUint32.name is "setUint32".
info: >
DataView.prototype.setUint32 ( byteOffset, value [ , littleEndian ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.setUint32.name, "setUint32");
verifyNotEnumerable(DataView.prototype.setUint32, "name");
verifyNotWritable(DataView.prototype.setUint32, "name");
verifyConfigurable(DataView.prototype.setUint32, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.18
description: >
DataView.prototype.setUint8.length is 2.
info: >
DataView.prototype.setUint8 ( byteOffset, value )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description, including optional
parameters. However, rest parameters shown using the form ...name
are not included in the default argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.setUint8.length, 2);
verifyNotEnumerable(DataView.prototype.setUint8, "length");
verifyNotWritable(DataView.prototype.setUint8, "length");
verifyConfigurable(DataView.prototype.setUint8, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 24.2.4.18
description: >
DataView.prototype.setUint8.name is "setUint8".
info: >
DataView.prototype.setUint8 ( byteOffset, value )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.setUint8.name, "setUint8");
verifyNotEnumerable(DataView.prototype.setUint8, "name");
verifyNotWritable(DataView.prototype.setUint8, "name");
verifyConfigurable(DataView.prototype.setUint8, "name");

26
test/built-ins/Date/UTC/name.js Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.3.4
description: >
Date.UTC.name is "UTC".
info: >
Date.UTC ( year, month [ , date [ , hours [ , minutes [ , seconds [ , ms ] ] ] ] ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.UTC.name, "UTC");
verifyNotEnumerable(Date.UTC, "name");
verifyNotWritable(Date.UTC, "name");
verifyConfigurable(Date.UTC, "name");

26
test/built-ins/Date/now/name.js Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.3.1
description: >
Date.now.name is "now".
info: >
Date.now ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.now.name, "now");
verifyNotEnumerable(Date.now, "name");
verifyNotWritable(Date.now, "name");
verifyConfigurable(Date.now, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.3.2
description: >
Date.parse.name is "parse".
info: >
Date.parse ( string )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.parse.name, "parse");
verifyNotEnumerable(Date.parse, "name");
verifyNotWritable(Date.parse, "name");
verifyConfigurable(Date.parse, "name");

26
test/built-ins/Date/prototype/getDate/name.js vendored Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.2
description: >
Date.prototype.getDate.name is "getDate".
info: >
Date.prototype.getDate ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.getDate.name, "getDate");
verifyNotEnumerable(Date.prototype.getDate, "name");
verifyNotWritable(Date.prototype.getDate, "name");
verifyConfigurable(Date.prototype.getDate, "name");

26
test/built-ins/Date/prototype/getDay/name.js vendored Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.3
description: >
Date.prototype.getDay.name is "getDay".
info: >
Date.prototype.getDay ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.getDay.name, "getDay");
verifyNotEnumerable(Date.prototype.getDay, "name");
verifyNotWritable(Date.prototype.getDay, "name");
verifyConfigurable(Date.prototype.getDay, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.4
description: >
Date.prototype.getFullYear.name is "getFullYear".
info: >
Date.prototype.getFullYear ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.getFullYear.name, "getFullYear");
verifyNotEnumerable(Date.prototype.getFullYear, "name");
verifyNotWritable(Date.prototype.getFullYear, "name");
verifyConfigurable(Date.prototype.getFullYear, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.5
description: >
Date.prototype.getHours.name is "getHours".
info: >
Date.prototype.getHours ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.getHours.name, "getHours");
verifyNotEnumerable(Date.prototype.getHours, "name");
verifyNotWritable(Date.prototype.getHours, "name");
verifyConfigurable(Date.prototype.getHours, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.6
description: >
Date.prototype.getMilliseconds.name is "getMilliseconds".
info: >
Date.prototype.getMilliseconds ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.getMilliseconds.name, "getMilliseconds");
verifyNotEnumerable(Date.prototype.getMilliseconds, "name");
verifyNotWritable(Date.prototype.getMilliseconds, "name");
verifyConfigurable(Date.prototype.getMilliseconds, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.7
description: >
Date.prototype.getMinutes.name is "getMinutes".
info: >
Date.prototype.getMinutes ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.getMinutes.name, "getMinutes");
verifyNotEnumerable(Date.prototype.getMinutes, "name");
verifyNotWritable(Date.prototype.getMinutes, "name");
verifyConfigurable(Date.prototype.getMinutes, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.8
description: >
Date.prototype.getMonth.name is "getMonth".
info: >
Date.prototype.getMonth ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.getMonth.name, "getMonth");
verifyNotEnumerable(Date.prototype.getMonth, "name");
verifyNotWritable(Date.prototype.getMonth, "name");
verifyConfigurable(Date.prototype.getMonth, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.9
description: >
Date.prototype.getSeconds.name is "getSeconds".
info: >
Date.prototype.getSeconds ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.getSeconds.name, "getSeconds");
verifyNotEnumerable(Date.prototype.getSeconds, "name");
verifyNotWritable(Date.prototype.getSeconds, "name");
verifyConfigurable(Date.prototype.getSeconds, "name");

26
test/built-ins/Date/prototype/getTime/name.js vendored Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.10
description: >
Date.prototype.getTime.name is "getTime".
info: >
Date.prototype.getTime ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.getTime.name, "getTime");
verifyNotEnumerable(Date.prototype.getTime, "name");
verifyNotWritable(Date.prototype.getTime, "name");
verifyConfigurable(Date.prototype.getTime, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.11
description: >
Date.prototype.getTimezoneOffset.name is "getTimezoneOffset".
info: >
Date.prototype.getTimezoneOffset ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.getTimezoneOffset.name, "getTimezoneOffset");
verifyNotEnumerable(Date.prototype.getTimezoneOffset, "name");
verifyNotWritable(Date.prototype.getTimezoneOffset, "name");
verifyConfigurable(Date.prototype.getTimezoneOffset, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.12
description: >
Date.prototype.getUTCDate.name is "getUTCDate".
info: >
Date.prototype.getUTCDate ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.getUTCDate.name, "getUTCDate");
verifyNotEnumerable(Date.prototype.getUTCDate, "name");
verifyNotWritable(Date.prototype.getUTCDate, "name");
verifyConfigurable(Date.prototype.getUTCDate, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.13
description: >
Date.prototype.getUTCDay.name is "getUTCDay".
info: >
Date.prototype.getUTCDay ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.getUTCDay.name, "getUTCDay");
verifyNotEnumerable(Date.prototype.getUTCDay, "name");
verifyNotWritable(Date.prototype.getUTCDay, "name");
verifyConfigurable(Date.prototype.getUTCDay, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.14
description: >
Date.prototype.getUTCFullYear.name is "getUTCFullYear".
info: >
Date.prototype.getUTCFullYear ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.getUTCFullYear.name, "getUTCFullYear");
verifyNotEnumerable(Date.prototype.getUTCFullYear, "name");
verifyNotWritable(Date.prototype.getUTCFullYear, "name");
verifyConfigurable(Date.prototype.getUTCFullYear, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.15
description: >
Date.prototype.getUTCHours.name is "getUTCHours".
info: >
Date.prototype.getUTCHours ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.getUTCHours.name, "getUTCHours");
verifyNotEnumerable(Date.prototype.getUTCHours, "name");
verifyNotWritable(Date.prototype.getUTCHours, "name");
verifyConfigurable(Date.prototype.getUTCHours, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.16
description: >
Date.prototype.getUTCMilliseconds.name is "getUTCMilliseconds".
info: >
Date.prototype.getUTCMilliseconds ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.getUTCMilliseconds.name, "getUTCMilliseconds");
verifyNotEnumerable(Date.prototype.getUTCMilliseconds, "name");
verifyNotWritable(Date.prototype.getUTCMilliseconds, "name");
verifyConfigurable(Date.prototype.getUTCMilliseconds, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.17
description: >
Date.prototype.getUTCMinutes.name is "getUTCMinutes".
info: >
Date.prototype.getUTCMinutes ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.getUTCMinutes.name, "getUTCMinutes");
verifyNotEnumerable(Date.prototype.getUTCMinutes, "name");
verifyNotWritable(Date.prototype.getUTCMinutes, "name");
verifyConfigurable(Date.prototype.getUTCMinutes, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.18
description: >
Date.prototype.getUTCMonth.name is "getUTCMonth".
info: >
Date.prototype.getUTCMonth ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.getUTCMonth.name, "getUTCMonth");
verifyNotEnumerable(Date.prototype.getUTCMonth, "name");
verifyNotWritable(Date.prototype.getUTCMonth, "name");
verifyConfigurable(Date.prototype.getUTCMonth, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.19
description: >
Date.prototype.getUTCSeconds.name is "getUTCSeconds".
info: >
Date.prototype.getUTCSeconds ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.getUTCSeconds.name, "getUTCSeconds");
verifyNotEnumerable(Date.prototype.getUTCSeconds, "name");
verifyNotWritable(Date.prototype.getUTCSeconds, "name");
verifyConfigurable(Date.prototype.getUTCSeconds, "name");

26
test/built-ins/Date/prototype/setDate/name.js vendored Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.20
description: >
Date.prototype.setDate.name is "setDate".
info: >
Date.prototype.setDate ( date )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.setDate.name, "setDate");
verifyNotEnumerable(Date.prototype.setDate, "name");
verifyNotWritable(Date.prototype.setDate, "name");
verifyConfigurable(Date.prototype.setDate, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.21
description: >
Date.prototype.setFullYear.name is "setFullYear".
info: >
Date.prototype.setFullYear ( year [ , month [ , date ] ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.setFullYear.name, "setFullYear");
verifyNotEnumerable(Date.prototype.setFullYear, "name");
verifyNotWritable(Date.prototype.setFullYear, "name");
verifyConfigurable(Date.prototype.setFullYear, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.22
description: >
Date.prototype.setHours.name is "setHours".
info: >
Date.prototype.setHours ( hour [ , min [ , sec [ , ms ] ] ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.setHours.name, "setHours");
verifyNotEnumerable(Date.prototype.setHours, "name");
verifyNotWritable(Date.prototype.setHours, "name");
verifyConfigurable(Date.prototype.setHours, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.23
description: >
Date.prototype.setMilliseconds.name is "setMilliseconds".
info: >
Date.prototype.setMilliseconds ( ms )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.setMilliseconds.name, "setMilliseconds");
verifyNotEnumerable(Date.prototype.setMilliseconds, "name");
verifyNotWritable(Date.prototype.setMilliseconds, "name");
verifyConfigurable(Date.prototype.setMilliseconds, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.24
description: >
Date.prototype.setMinutes.name is "setMinutes".
info: >
Date.prototype.setMinutes ( min [ , sec [ , ms ] ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.setMinutes.name, "setMinutes");
verifyNotEnumerable(Date.prototype.setMinutes, "name");
verifyNotWritable(Date.prototype.setMinutes, "name");
verifyConfigurable(Date.prototype.setMinutes, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.25
description: >
Date.prototype.setMonth.name is "setMonth".
info: >
Date.prototype.setMonth ( month [ , date ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.setMonth.name, "setMonth");
verifyNotEnumerable(Date.prototype.setMonth, "name");
verifyNotWritable(Date.prototype.setMonth, "name");
verifyConfigurable(Date.prototype.setMonth, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.26
description: >
Date.prototype.setSeconds.name is "setSeconds".
info: >
Date.prototype.setSeconds ( sec [ , ms ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.setSeconds.name, "setSeconds");
verifyNotEnumerable(Date.prototype.setSeconds, "name");
verifyNotWritable(Date.prototype.setSeconds, "name");
verifyConfigurable(Date.prototype.setSeconds, "name");

26
test/built-ins/Date/prototype/setTime/name.js vendored Executable file
View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.27
description: >
Date.prototype.setTime.name is "setTime".
info: >
Date.prototype.setTime ( time )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.setTime.name, "setTime");
verifyNotEnumerable(Date.prototype.setTime, "name");
verifyNotWritable(Date.prototype.setTime, "name");
verifyConfigurable(Date.prototype.setTime, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.28
description: >
Date.prototype.setUTCDate.name is "setUTCDate".
info: >
Date.prototype.setUTCDate ( date )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.setUTCDate.name, "setUTCDate");
verifyNotEnumerable(Date.prototype.setUTCDate, "name");
verifyNotWritable(Date.prototype.setUTCDate, "name");
verifyConfigurable(Date.prototype.setUTCDate, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.29
description: >
Date.prototype.setUTCFullYear.name is "setUTCFullYear".
info: >
Date.prototype.setUTCFullYear ( year [ , month [ , date ] ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.setUTCFullYear.name, "setUTCFullYear");
verifyNotEnumerable(Date.prototype.setUTCFullYear, "name");
verifyNotWritable(Date.prototype.setUTCFullYear, "name");
verifyConfigurable(Date.prototype.setUTCFullYear, "name");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.3.4.30
description: >
Date.prototype.setUTCHours.name is "setUTCHours".
info: >
Date.prototype.setUTCHours ( hour [ , min [ , sec [ , ms ] ] ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Date.prototype.setUTCHours.name, "setUTCHours");
verifyNotEnumerable(Date.prototype.setUTCHours, "name");
verifyNotWritable(Date.prototype.setUTCHours, "name");
verifyConfigurable(Date.prototype.setUTCHours, "name");

Some files were not shown because too many files have changed in this diff Show More