summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/copyWithin
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArray/prototype/copyWithin')
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-func.js29
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-method.js29
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/BigInt/length.js30
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/BigInt/name.js27
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/BigInt/prop-desc.js19
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-object.js50
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-typedarray-instance.js42
7 files changed, 0 insertions, 226 deletions
diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-func.js
deleted file mode 100644
index 7559361e1..000000000
--- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-func.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// 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: Throws a TypeError exception when invoked as a function
-info: |
- 22.2.3.5 %TypedArray%.prototype.copyWithin (target, start [, end ] )
-
- This function is not generic. ValidateTypedArray is applied to the this value
- prior to evaluating the algorithm. If its result is an abrupt completion that
- exception is thrown instead of evaluating the algorithm.
-
- 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O )
-
- 1. If Type(O) is not Object, throw a TypeError exception.
- 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError
- exception.
- ...
-includes: [testBigIntTypedArray.js]
-features: [BigInt, TypedArray]
----*/
-
-var copyWithin = TypedArray.prototype.copyWithin;
-
-assert.sameValue(typeof copyWithin, 'function');
-
-assert.throws(TypeError, function() {
- copyWithin();
-});
diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-method.js
deleted file mode 100644
index 5a40d48c9..000000000
--- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-method.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// 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: Requires a [[TypedArrayName]] internal slot.
-info: |
- 22.2.3.5 %TypedArray%.prototype.copyWithin (target, start [, end ] )
-
- This function is not generic. ValidateTypedArray is applied to the this value
- prior to evaluating the algorithm. If its result is an abrupt completion that
- exception is thrown instead of evaluating the algorithm.
-
- 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O )
-
- 1. If Type(O) is not Object, throw a TypeError exception.
- 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError
- exception.
- ...
-includes: [testBigIntTypedArray.js]
-features: [BigInt, TypedArray]
----*/
-
-var TypedArrayPrototype = TypedArray.prototype;
-
-assert.sameValue(typeof TypedArrayPrototype.copyWithin, 'function');
-
-assert.throws(TypeError, function() {
- TypedArrayPrototype.copyWithin();
-});
diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/length.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/length.js
deleted file mode 100644
index 7c635e69c..000000000
--- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/length.js
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (C) 2015 André Bargull. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/*---
-esid: sec-%typedarray%.prototype.copywithin
-description: >
- %TypedArray%.prototype.copyWithin.length is 2.
-info: |
- %TypedArray%.prototype.copyWithin (target, start [, end ] )
-
- 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, testBigIntTypedArray.js]
-features: [BigInt, TypedArray]
----*/
-
-assert.sameValue(TypedArray.prototype.copyWithin.length, 2);
-
-verifyNotEnumerable(TypedArray.prototype.copyWithin, "length");
-verifyNotWritable(TypedArray.prototype.copyWithin, "length");
-verifyConfigurable(TypedArray.prototype.copyWithin, "length");
diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/name.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/name.js
deleted file mode 100644
index 902c628c4..000000000
--- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/name.js
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (C) 2015 André Bargull. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/*---
-esid: sec-%typedarray%.prototype.copywithin
-description: >
- %TypedArray%.prototype.copyWithin.name is "copyWithin".
-info: |
- %TypedArray%.prototype.copyWithin (target, 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, testBigIntTypedArray.js]
-features: [BigInt, TypedArray]
----*/
-
-assert.sameValue(TypedArray.prototype.copyWithin.name, "copyWithin");
-
-verifyNotEnumerable(TypedArray.prototype.copyWithin, "name");
-verifyNotWritable(TypedArray.prototype.copyWithin, "name");
-verifyConfigurable(TypedArray.prototype.copyWithin, "name");
diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/prop-desc.js
deleted file mode 100644
index d75e27ac0..000000000
--- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/prop-desc.js
+++ /dev/null
@@ -1,19 +0,0 @@
-// 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: >
- "copyWithin" 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, testBigIntTypedArray.js]
-features: [BigInt, TypedArray]
----*/
-
-var TypedArrayPrototype = TypedArray.prototype;
-
-verifyNotEnumerable(TypedArrayPrototype, 'copyWithin');
-verifyWritable(TypedArrayPrototype, 'copyWithin');
-verifyConfigurable(TypedArrayPrototype, 'copyWithin');
diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-object.js
deleted file mode 100644
index 3c1b7c435..000000000
--- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-object.js
+++ /dev/null
@@ -1,50 +0,0 @@
-// 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: Throws a TypeError exception when `this` is not Object
-info: |
- 22.2.3.5 %TypedArray%.prototype.copyWithin (target, start [ , end ] )
-
- This function is not generic. ValidateTypedArray is applied to the this value
- prior to evaluating the algorithm. If its result is an abrupt completion that
- exception is thrown instead of evaluating the algorithm.
-
- 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O )
-
- 1. If Type(O) is not Object, throw a TypeError exception.
- ...
-includes: [testBigIntTypedArray.js]
-features: [BigInt, Symbol, TypedArray]
----*/
-
-var copyWithin = TypedArray.prototype.copyWithin;
-
-assert.throws(TypeError, function() {
- copyWithin.call(undefined, 0, 0);
-}, "this is undefined");
-
-assert.throws(TypeError, function() {
- copyWithin.call(null, 0, 0);
-}, "this is null");
-
-assert.throws(TypeError, function() {
- copyWithin.call(42, 0, 0);
-}, "this is 42");
-
-assert.throws(TypeError, function() {
- copyWithin.call("1", 0, 0);
-}, "this is a string");
-
-assert.throws(TypeError, function() {
- copyWithin.call(true, 0, 0);
-}, "this is true");
-
-assert.throws(TypeError, function() {
- copyWithin.call(false, 0, 0);
-}, "this is false");
-
-var s = Symbol("s");
-assert.throws(TypeError, function() {
- copyWithin.call(s, 0, 0);
-}, "this is a Symbol");
diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-typedarray-instance.js
deleted file mode 100644
index 95d9bfd12..000000000
--- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-typedarray-instance.js
+++ /dev/null
@@ -1,42 +0,0 @@
-// 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: >
- Throws a TypeError exception when `this` is not a TypedArray instance
-info: |
- 22.2.3.5 %TypedArray%.prototype.copyWithin (target, start [ , end ] )
-
- This function is not generic. ValidateTypedArray is applied to the this value
- prior to evaluating the algorithm. If its result is an abrupt completion that
- exception is thrown instead of evaluating the algorithm.
-
- 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O )
-
- 1. If Type(O) is not Object, throw a TypeError exception.
- 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError
- exception.
- ...
-includes: [testBigIntTypedArray.js]
-features: [BigInt, TypedArray]
----*/
-
-var copyWithin = TypedArray.prototype.copyWithin;
-
-assert.throws(TypeError, function() {
- copyWithin.call({}, 0, 0);
-}, "this is an Object");
-
-assert.throws(TypeError, function() {
- copyWithin.call([], 0, 0);
-}, "this is an Array");
-
-var ab = new ArrayBuffer(8);
-assert.throws(TypeError, function() {
- copyWithin.call(ab, 0, 0);
-}, "this is an ArrayBuffer instance");
-
-var dv = new DataView(new ArrayBuffer(8), 0, 1);
-assert.throws(TypeError, function() {
- copyWithin.call(dv, 0, 0);
-}, "this is a DataView instance");