summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/TypedArray/prototype/entries
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/TypedArray/prototype/entries')
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/entries/detached-buffer.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/entries/invoked-as-func.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/entries/invoked-as-method.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/entries/iter-prototype.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/entries/length.js12
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/entries/name.js12
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/entries/not-a-constructor.js3
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/entries/prop-desc.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/entries/return-abrupt-from-this-out-of-bounds.js2
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/entries/return-itor.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/entries/this-is-not-object.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/entries/this-is-not-typedarray-instance.js1
12 files changed, 25 insertions, 12 deletions
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/detached-buffer.js b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/detached-buffer.js
index 4a644f910c..b3e18e6f6f 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/detached-buffer.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/detached-buffer.js
@@ -1,3 +1,4 @@
+// |reftest| shell-option(--enable-float16array)
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/invoked-as-func.js b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/invoked-as-func.js
index 1e5894ad29..6f3526bd98 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/invoked-as-func.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/invoked-as-func.js
@@ -1,3 +1,4 @@
+// |reftest| shell-option(--enable-float16array)
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/invoked-as-method.js b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/invoked-as-method.js
index 17ce58a45c..9fb1f3de90 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/invoked-as-method.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/invoked-as-method.js
@@ -1,3 +1,4 @@
+// |reftest| shell-option(--enable-float16array)
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/iter-prototype.js b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/iter-prototype.js
index 7637d66454..89f60b422f 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/iter-prototype.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/iter-prototype.js
@@ -1,3 +1,4 @@
+// |reftest| shell-option(--enable-float16array)
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/length.js b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/length.js
index f7c54bd2a0..0d7d3e87c7 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/length.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/length.js
@@ -1,3 +1,4 @@
+// |reftest| shell-option(--enable-float16array)
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
@@ -23,10 +24,11 @@ includes: [propertyHelper.js, testTypedArray.js]
features: [TypedArray]
---*/
-assert.sameValue(TypedArray.prototype.entries.length, 0);
-
-verifyNotEnumerable(TypedArray.prototype.entries, "length");
-verifyNotWritable(TypedArray.prototype.entries, "length");
-verifyConfigurable(TypedArray.prototype.entries, "length");
+verifyProperty(TypedArray.prototype.entries, "length", {
+ value: 0,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/name.js b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/name.js
index 4947bc59fa..2e84afb33a 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/name.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/name.js
@@ -1,3 +1,4 @@
+// |reftest| shell-option(--enable-float16array)
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
@@ -20,10 +21,11 @@ includes: [propertyHelper.js, testTypedArray.js]
features: [TypedArray]
---*/
-assert.sameValue(TypedArray.prototype.entries.name, "entries");
-
-verifyNotEnumerable(TypedArray.prototype.entries, "name");
-verifyNotWritable(TypedArray.prototype.entries, "name");
-verifyConfigurable(TypedArray.prototype.entries, "name");
+verifyProperty(TypedArray.prototype.entries, "name", {
+ value: "entries",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/not-a-constructor.js b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/not-a-constructor.js
index 8b28d47a0f..c7b6d4c120 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/not-a-constructor.js
@@ -1,3 +1,4 @@
+// |reftest| shell-option(--enable-float16array)
// Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
@@ -29,7 +30,7 @@ assert.sameValue(
assert.throws(TypeError, () => {
let u8 = new Uint8Array(1); new u8.entries();
-}, '`let u8 = new Uint8Array(1); new u8.entries()` throws TypeError');
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/prop-desc.js b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/prop-desc.js
index ce4a744117..352e2ebf53 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/prop-desc.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/prop-desc.js
@@ -1,3 +1,4 @@
+// |reftest| shell-option(--enable-float16array)
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/return-abrupt-from-this-out-of-bounds.js b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/return-abrupt-from-this-out-of-bounds.js
index 7b4f90f25a..ab788c1ac8 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/return-abrupt-from-this-out-of-bounds.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/return-abrupt-from-this-out-of-bounds.js
@@ -1,4 +1,4 @@
-// |reftest| shell-option(--enable-arraybuffer-resizable) skip-if(!ArrayBuffer.prototype.resize||!xulRuntime.shell) -- resizable-arraybuffer is not enabled unconditionally, requires shell-options
+// |reftest| shell-option(--enable-arraybuffer-resizable) shell-option(--enable-float16array) skip-if(!ArrayBuffer.prototype.resize||!xulRuntime.shell) -- resizable-arraybuffer is not enabled unconditionally, requires shell-options
// Copyright (C) 2021 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/return-itor.js b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/return-itor.js
index 16923a967c..e1bb6478f2 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/return-itor.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/return-itor.js
@@ -1,3 +1,4 @@
+// |reftest| shell-option(--enable-float16array)
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/this-is-not-object.js b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/this-is-not-object.js
index 58afdee779..8943ba9f63 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/this-is-not-object.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/this-is-not-object.js
@@ -1,3 +1,4 @@
+// |reftest| shell-option(--enable-float16array)
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/this-is-not-typedarray-instance.js b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/this-is-not-typedarray-instance.js
index f0574cd6b2..5d3ba24265 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/entries/this-is-not-typedarray-instance.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/entries/this-is-not-typedarray-instance.js
@@ -1,3 +1,4 @@
+// |reftest| shell-option(--enable-float16array)
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---