mirror of https://github.com/tc39/test262.git
Update descriptor tests for %TypedArray%.prototype properties
This commit is contained in:
parent
02cdfacd31
commit
7445d77d6d
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
Loading…
Reference in New Issue