diff --git a/test/built-ins/TypedArray/prototype/buffer/prop-desc.js b/test/built-ins/TypedArray/prototype/buffer/prop-desc.js index a413419495062a460d8f167443b18be38331f1dd..f026c0668ef4a5aceb7bf1f31830d4b45da31433 100644 --- a/test/built-ins/TypedArray/prototype/buffer/prop-desc.js +++ b/test/built-ins/TypedArray/prototype/buffer/prop-desc.js @@ -7,11 +7,17 @@ description: > info: > %TypedArray%.prototype.buffer is an accessor property whose set accessor function is undefined. -includes: [testTypedArray.js] + + Section 17: Every accessor property described in clauses 18 through 26 and in + Annex B.2 has the attributes {[[Enumerable]]: false, [[Configurable]]: true } +includes: [propertyHelper.js, testTypedArray.js] ---*/ var TypedArrayPrototype = TypedArray.prototype; -var desc = Object.getOwnPropertyDescriptor(TypedArrayPrototype, 'buffer'); +var desc = Object.getOwnPropertyDescriptor(TypedArrayPrototype, "buffer"); assert.sameValue(desc.set, undefined); -assert.sameValue(typeof desc.get, 'function'); +assert.sameValue(typeof desc.get, "function"); + +verifyNotEnumerable(TypedArrayPrototype, "buffer"); +verifyConfigurable(TypedArrayPrototype, "buffer"); diff --git a/test/built-ins/TypedArray/prototype/byteLength/prop-desc.js b/test/built-ins/TypedArray/prototype/byteLength/prop-desc.js index 8ceec382530b9bf5b80d451a863e43832ddf8440..3f227ee448b4b58f0b7ad7eae36483d0c150d695 100644 --- a/test/built-ins/TypedArray/prototype/byteLength/prop-desc.js +++ b/test/built-ins/TypedArray/prototype/byteLength/prop-desc.js @@ -7,11 +7,17 @@ description: > info: > %TypedArray%.prototype.byteLength is an accessor property whose set accessor function is undefined. -includes: [testTypedArray.js] + + Section 17: Every accessor property described in clauses 18 through 26 and in + Annex B.2 has the attributes {[[Enumerable]]: false, [[Configurable]]: true } +includes: [propertyHelper.js, testTypedArray.js] ---*/ var TypedArrayPrototype = TypedArray.prototype; -var desc = Object.getOwnPropertyDescriptor(TypedArrayPrototype, 'byteLength'); +var desc = Object.getOwnPropertyDescriptor(TypedArrayPrototype, "byteLength"); assert.sameValue(desc.set, undefined); -assert.sameValue(typeof desc.get, 'function'); +assert.sameValue(typeof desc.get, "function"); + +verifyNotEnumerable(TypedArrayPrototype, "byteLength"); +verifyConfigurable(TypedArrayPrototype, "byteLength"); diff --git a/test/built-ins/TypedArray/prototype/byteOffset/prop-desc.js b/test/built-ins/TypedArray/prototype/byteOffset/prop-desc.js index 7b180db704eb011873a6c4d62a0df1b6993bab12..f03c4963d61b8ad88529463e2c3cf5e82beb191c 100644 --- a/test/built-ins/TypedArray/prototype/byteOffset/prop-desc.js +++ b/test/built-ins/TypedArray/prototype/byteOffset/prop-desc.js @@ -7,11 +7,17 @@ description: > info: > %TypedArray%.prototype.byteOffset is an accessor property whose set accessor function is undefined. -includes: [testTypedArray.js] + + Section 17: Every accessor property described in clauses 18 through 26 and in + Annex B.2 has the attributes {[[Enumerable]]: false, [[Configurable]]: true } +includes: [propertyHelper.js, testTypedArray.js] ---*/ var TypedArrayPrototype = TypedArray.prototype; -var desc = Object.getOwnPropertyDescriptor(TypedArrayPrototype, 'byteOffset'); +var desc = Object.getOwnPropertyDescriptor(TypedArrayPrototype, "byteOffset"); assert.sameValue(desc.set, undefined); -assert.sameValue(typeof desc.get, 'function'); +assert.sameValue(typeof desc.get, "function"); + +verifyNotEnumerable(TypedArrayPrototype, "byteOffset"); +verifyConfigurable(TypedArrayPrototype, "byteOffset"); diff --git a/test/built-ins/TypedArray/prototype/length/prop-desc.js b/test/built-ins/TypedArray/prototype/length/prop-desc.js index 3f40eae8936c750cfce3177aa7801ea971929b60..ff2718060b3198801598207fcaed20b8959a4ba1 100644 --- a/test/built-ins/TypedArray/prototype/length/prop-desc.js +++ b/test/built-ins/TypedArray/prototype/length/prop-desc.js @@ -7,11 +7,17 @@ description: > info: > %TypedArray%.prototype.length is an accessor property whose set accessor function is undefined. -includes: [testTypedArray.js] + + Section 17: Every accessor property described in clauses 18 through 26 and in + Annex B.2 has the attributes {[[Enumerable]]: false, [[Configurable]]: true } +includes: [propertyHelper.js, testTypedArray.js] ---*/ var TypedArrayPrototype = TypedArray.prototype; -var desc = Object.getOwnPropertyDescriptor(TypedArrayPrototype, 'length'); +var desc = Object.getOwnPropertyDescriptor(TypedArrayPrototype, "length"); assert.sameValue(desc.set, undefined); -assert.sameValue(typeof desc.get, 'function'); +assert.sameValue(typeof desc.get, "function"); + +verifyNotEnumerable(TypedArrayPrototype, "length"); +verifyConfigurable(TypedArrayPrototype, "length"); diff --git a/test/built-ins/TypedArray/prototype/toString/prop-desc.js b/test/built-ins/TypedArray/prototype/toString/prop-desc.js new file mode 100644 index 0000000000000000000000000000000000000000..c5277b14777f7966d2966e5f197c994d2ff355c1 --- /dev/null +++ b/test/built-ins/TypedArray/prototype/toString/prop-desc.js @@ -0,0 +1,19 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es6id: 22.2.3.28 +esid: sec-%typedarray%.prototype.tostring +description: > + "String" property of TypedArrayPrototype +info: > + ES6 section 17: Every other data property described in clauses 18 through + 26 and in Annex B.2 has the attributes { [[Writable]]: true, + [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. +includes: [propertyHelper.js, testTypedArray.js] +---*/ + +var TypedArrayPrototype = TypedArray.prototype; + +verifyNotEnumerable(TypedArrayPrototype, "toString"); +verifyWritable(TypedArrayPrototype, "toString"); +verifyConfigurable(TypedArrayPrototype, "toString");