summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/TypedArray/prototype/keys
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/TypedArray/prototype/keys')
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/keys/detached-buffer.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/keys/invoked-as-func.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/keys/invoked-as-method.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/keys/iter-prototype.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/keys/length.js12
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/keys/name.js12
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/keys/not-a-constructor.js3
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/keys/prop-desc.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/keys/return-abrupt-from-this-out-of-bounds.js2
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/keys/return-itor.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/keys/this-is-not-object.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/keys/this-is-not-typedarray-instance.js1
12 files changed, 25 insertions, 12 deletions
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/keys/detached-buffer.js b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/detached-buffer.js
index 3221123031..a34f87dbbb 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/keys/detached-buffer.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/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/keys/invoked-as-func.js b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/invoked-as-func.js
index 130d3c9220..51d4b6973b 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/keys/invoked-as-func.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/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/keys/invoked-as-method.js b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/invoked-as-method.js
index 15ac944e05..f196c54dd8 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/keys/invoked-as-method.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/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/keys/iter-prototype.js b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/iter-prototype.js
index 427367bb4e..12c3177602 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/keys/iter-prototype.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/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/keys/length.js b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/length.js
index 73abbf3fb9..ad16aab4d0 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/keys/length.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/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.keys.length, 0);
-
-verifyNotEnumerable(TypedArray.prototype.keys, "length");
-verifyNotWritable(TypedArray.prototype.keys, "length");
-verifyConfigurable(TypedArray.prototype.keys, "length");
+verifyProperty(TypedArray.prototype.keys, "length", {
+ value: 0,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/keys/name.js b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/name.js
index f0f097382f..3a281d9db9 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/keys/name.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/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.keys.name, "keys");
-
-verifyNotEnumerable(TypedArray.prototype.keys, "name");
-verifyNotWritable(TypedArray.prototype.keys, "name");
-verifyConfigurable(TypedArray.prototype.keys, "name");
+verifyProperty(TypedArray.prototype.keys, "name", {
+ value: "keys",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/keys/not-a-constructor.js b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/not-a-constructor.js
index a5475acf51..bd739ca6dc 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/keys/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/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.keys();
-}, '`let u8 = new Uint8Array(1); new u8.keys()` throws TypeError');
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/keys/prop-desc.js b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/prop-desc.js
index 8e2f483c11..b64107a7c2 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/keys/prop-desc.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/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/keys/return-abrupt-from-this-out-of-bounds.js b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/return-abrupt-from-this-out-of-bounds.js
index e0fc4129ce..eb46c02f35 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/keys/return-abrupt-from-this-out-of-bounds.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/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/keys/return-itor.js b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/return-itor.js
index 5f06a7de97..90a0fbf336 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/keys/return-itor.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/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/keys/this-is-not-object.js b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/this-is-not-object.js
index 57d767940d..71109097e5 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/keys/this-is-not-object.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/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/keys/this-is-not-typedarray-instance.js b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/this-is-not-typedarray-instance.js
index d2c1ecfea8..0027859d57 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/keys/this-is-not-typedarray-instance.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/keys/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.
/*---