From 6c5665897444b2b012957614ba30a082286e2f05 Mon Sep 17 00:00:00 2001 From: Leonardo Balter Date: Thu, 18 Feb 2016 15:21:20 -0500 Subject: [PATCH] Add tests for _TypedArray_.prototype methods --- .../TypedArrays/prototype/Symbol.iterator.js | 13 +++++++++++++ .../prototype/Symbol.toStringTag/inherited.js | 14 ++++++++++++++ .../TypedArrays/prototype/buffer/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/byteLength/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/byteOffset/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/copyWithin/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/entries/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/every/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/fill/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/filter/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/find/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/findIndex/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/forEach/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/indexOf/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/join/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/keys/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/lastIndexOf/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/length/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/map/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/reduce/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/reduceRight/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/reverse/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/set/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/slice/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/some/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/sort/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/subarray/inherited.js | 12 ++++++++++++ .../prototype/toLocaleString/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/toString/inherited.js | 12 ++++++++++++ .../TypedArrays/prototype/values/inherited.js | 12 ++++++++++++ 30 files changed, 363 insertions(+) create mode 100755 test/built-ins/TypedArrays/prototype/Symbol.iterator.js create mode 100644 test/built-ins/TypedArrays/prototype/Symbol.toStringTag/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/buffer/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/byteLength/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/byteOffset/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/copyWithin/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/entries/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/every/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/fill/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/filter/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/find/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/findIndex/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/forEach/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/indexOf/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/join/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/keys/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/lastIndexOf/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/length/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/map/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/reduce/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/reduceRight/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/reverse/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/set/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/slice/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/some/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/sort/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/subarray/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/toLocaleString/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/toString/inherited.js create mode 100644 test/built-ins/TypedArrays/prototype/values/inherited.js diff --git a/test/built-ins/TypedArrays/prototype/Symbol.iterator.js b/test/built-ins/TypedArrays/prototype/Symbol.iterator.js new file mode 100755 index 0000000000..cfb4a24244 --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/Symbol.iterator.js @@ -0,0 +1,13 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype-@@iterator +description: > + _TypedArray_.prototype has no own property @@iterator +includes: [testTypedArray.js] +features: [Symbol.iterator] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty(Symbol.iterator), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/Symbol.toStringTag/inherited.js b/test/built-ins/TypedArrays/prototype/Symbol.toStringTag/inherited.js new file mode 100644 index 0000000000..1e5cc0e2bb --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/Symbol.toStringTag/inherited.js @@ -0,0 +1,14 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-get-%typedarray%.prototype-@@tostringtag +description: > + _TypedArray_.prototype[@@toStringTag] is inherited from %TypedArray% + _TypedArray_.prototype has no own property @@toStringTag +includes: [testTypedArray.js] +features: [Symbol.toStringTag] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty(Symbol.toStringTag), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/buffer/inherited.js b/test/built-ins/TypedArrays/prototype/buffer/inherited.js new file mode 100644 index 0000000000..0d68c60fdc --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/buffer/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-get-%typedarray%.prototype.buffer +description: > + _TypedArray_.prototype has no own property "buffer" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("buffer"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/byteLength/inherited.js b/test/built-ins/TypedArrays/prototype/byteLength/inherited.js new file mode 100644 index 0000000000..55646f37ef --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/byteLength/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-get-%typedarray%.prototype.bytelength +description: > + _TypedArray_.prototype has no own property "byteLength" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("byteLength"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/byteOffset/inherited.js b/test/built-ins/TypedArrays/prototype/byteOffset/inherited.js new file mode 100644 index 0000000000..eb098d6267 --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/byteOffset/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-get-%typedarray%.prototype.byteoffset +description: > + _TypedArray_.prototype has no own property "byteOffset" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("byteOffset"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/copyWithin/inherited.js b/test/built-ins/TypedArrays/prototype/copyWithin/inherited.js new file mode 100644 index 0000000000..9c2e52ac32 --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/copyWithin/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.copywithin +description: > + _TypedArray_.prototype has no own property "copyWithin" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("copyWithin"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/entries/inherited.js b/test/built-ins/TypedArrays/prototype/entries/inherited.js new file mode 100644 index 0000000000..e4b080c559 --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/entries/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.entries +description: > + _TypedArray_.prototype has no own property "entries" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("entries"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/every/inherited.js b/test/built-ins/TypedArrays/prototype/every/inherited.js new file mode 100644 index 0000000000..fcf42763ef --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/every/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.every +description: > + _TypedArray_.prototype has no own property "every" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("every"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/fill/inherited.js b/test/built-ins/TypedArrays/prototype/fill/inherited.js new file mode 100644 index 0000000000..050de1b053 --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/fill/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.fill +description: > + _TypedArray_.prototype has no own property "fill" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("fill"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/filter/inherited.js b/test/built-ins/TypedArrays/prototype/filter/inherited.js new file mode 100644 index 0000000000..48bde7b97a --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/filter/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.filter +description: > + _TypedArray_.prototype has no own property "filter" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("filter"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/find/inherited.js b/test/built-ins/TypedArrays/prototype/find/inherited.js new file mode 100644 index 0000000000..39be0a7c7b --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/find/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.find +description: > + _TypedArray_.prototype has no own property "find" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("find"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/findIndex/inherited.js b/test/built-ins/TypedArrays/prototype/findIndex/inherited.js new file mode 100644 index 0000000000..df3acdd086 --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/findIndex/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.findindex +description: > + _TypedArray_.prototype has no own property "findIndex" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("findIndex"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/forEach/inherited.js b/test/built-ins/TypedArrays/prototype/forEach/inherited.js new file mode 100644 index 0000000000..d08b41484b --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/forEach/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.foreach +description: > + _TypedArray_.prototype has no own property "forEach" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("forEach"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/indexOf/inherited.js b/test/built-ins/TypedArrays/prototype/indexOf/inherited.js new file mode 100644 index 0000000000..fdebbaed11 --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/indexOf/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.indexof +description: > + _TypedArray_.prototype has no own property "indexOf" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("indexOf"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/join/inherited.js b/test/built-ins/TypedArrays/prototype/join/inherited.js new file mode 100644 index 0000000000..07db7980aa --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/join/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.join +description: > + _TypedArray_.prototype has no own property "join" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("join"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/keys/inherited.js b/test/built-ins/TypedArrays/prototype/keys/inherited.js new file mode 100644 index 0000000000..c2d85c011f --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/keys/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.keys +description: > + _TypedArray_.prototype has no own property "keys" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("keys"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/lastIndexOf/inherited.js b/test/built-ins/TypedArrays/prototype/lastIndexOf/inherited.js new file mode 100644 index 0000000000..3dccc11ab7 --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/lastIndexOf/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.lastindexof +description: > + _TypedArray_.prototype has no own property "lastIndexOf" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("lastIndexOf"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/length/inherited.js b/test/built-ins/TypedArrays/prototype/length/inherited.js new file mode 100644 index 0000000000..fb73a6d5ee --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/length/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-get-%typedarray%.prototype.length +description: > + _TypedArray_.prototype has no own property "length" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("length"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/map/inherited.js b/test/built-ins/TypedArrays/prototype/map/inherited.js new file mode 100644 index 0000000000..8305e9331a --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/map/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.map +description: > + _TypedArray_.prototype has no own property "map" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("map"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/reduce/inherited.js b/test/built-ins/TypedArrays/prototype/reduce/inherited.js new file mode 100644 index 0000000000..a1327a87a2 --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/reduce/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-get-%typedarray%.prototype.reduce +description: > + _TypedArray_.prototype has no own property "reduce" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("reduce"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/reduceRight/inherited.js b/test/built-ins/TypedArrays/prototype/reduceRight/inherited.js new file mode 100644 index 0000000000..0073fd5d28 --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/reduceRight/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.reduceright +description: > + _TypedArray_.prototype has no own property "reduceRight" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("reduceRight"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/reverse/inherited.js b/test/built-ins/TypedArrays/prototype/reverse/inherited.js new file mode 100644 index 0000000000..54555621f7 --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/reverse/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.reverse +description: > + _TypedArray_.prototype has no own property "reverse" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("reverse"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/set/inherited.js b/test/built-ins/TypedArrays/prototype/set/inherited.js new file mode 100644 index 0000000000..2b741bbdc9 --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/set/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.set +description: > + _TypedArray_.prototype has no own property "set" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("set"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/slice/inherited.js b/test/built-ins/TypedArrays/prototype/slice/inherited.js new file mode 100644 index 0000000000..1fb88a8405 --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/slice/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.slice +description: > + _TypedArray_.prototype has no own property "slice" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("slice"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/some/inherited.js b/test/built-ins/TypedArrays/prototype/some/inherited.js new file mode 100644 index 0000000000..5d3bf013d8 --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/some/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.some +description: > + _TypedArray_.prototype has no own property "some" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("some"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/sort/inherited.js b/test/built-ins/TypedArrays/prototype/sort/inherited.js new file mode 100644 index 0000000000..b638661112 --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/sort/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.sort +description: > + _TypedArray_.prototype has no own property "sort" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("sort"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/subarray/inherited.js b/test/built-ins/TypedArrays/prototype/subarray/inherited.js new file mode 100644 index 0000000000..53bb41efce --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/subarray/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.subarray +description: > + _TypedArray_.prototype has no own property "subarray" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("subarray"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/toLocaleString/inherited.js b/test/built-ins/TypedArrays/prototype/toLocaleString/inherited.js new file mode 100644 index 0000000000..69809cf7db --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/toLocaleString/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.tolocalestring +description: > + _TypedArray_.prototype has no own property "toLocaleString" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("toLocaleString"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/toString/inherited.js b/test/built-ins/TypedArrays/prototype/toString/inherited.js new file mode 100644 index 0000000000..44cb7c19bc --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/toString/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.tostring +description: > + _TypedArray_.prototype has no own property "toString" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("toString"), false); +}); diff --git a/test/built-ins/TypedArrays/prototype/values/inherited.js b/test/built-ins/TypedArrays/prototype/values/inherited.js new file mode 100644 index 0000000000..86570c55a0 --- /dev/null +++ b/test/built-ins/TypedArrays/prototype/values/inherited.js @@ -0,0 +1,12 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.values +description: > + _TypedArray_.prototype has no own property "values" +includes: [testTypedArray.js] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("values"), false); +});