summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/TypedArray/prototype/find
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/TypedArray/prototype/find')
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/callbackfn-resize.js2
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/detached-buffer.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/get-length-ignores-length-prop.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/invoked-as-func.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/invoked-as-method.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/length.js12
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/name.js12
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/not-a-constructor.js3
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-call-changes-value.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-call-parameters.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-call-this-non-strict.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-call-this-strict-strict.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-is-not-callable-throws.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-may-detach-buffer.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-not-called-on-empty-array.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/prop-desc.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/return-abrupt-from-predicate-call.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/return-abrupt-from-this-out-of-bounds.js2
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/this-is-not-object.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/find/this-is-not-typedarray-instance.js1
22 files changed, 35 insertions, 13 deletions
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/find/callbackfn-resize.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/callbackfn-resize.js
index faf3e09ace..8aed7fb8db 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/callbackfn-resize.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/callbackfn-resize.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/find/detached-buffer.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/detached-buffer.js
index 5de4a56041..f5039a14fe 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/detached-buffer.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/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/find/get-length-ignores-length-prop.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/get-length-ignores-length-prop.js
index ff41a27af9..5afd88bb6a 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/get-length-ignores-length-prop.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/get-length-ignores-length-prop.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/find/invoked-as-func.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/invoked-as-func.js
index e63cc49e07..1cb40629d8 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/invoked-as-func.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/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/find/invoked-as-method.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/invoked-as-method.js
index a4d8b598ba..472f26ba99 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/invoked-as-method.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/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/find/length.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/length.js
index 1583fe26d2..dc9eaeb1c1 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/length.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/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.find.length, 1);
-
-verifyNotEnumerable(TypedArray.prototype.find, "length");
-verifyNotWritable(TypedArray.prototype.find, "length");
-verifyConfigurable(TypedArray.prototype.find, "length");
+verifyProperty(TypedArray.prototype.find, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/find/name.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/name.js
index 1d1f09f6b8..e9e781cc0e 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/name.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/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.find.name, "find");
-
-verifyNotEnumerable(TypedArray.prototype.find, "name");
-verifyNotWritable(TypedArray.prototype.find, "name");
-verifyConfigurable(TypedArray.prototype.find, "name");
+verifyProperty(TypedArray.prototype.find, "name", {
+ value: "find",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/find/not-a-constructor.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/not-a-constructor.js
index c7453c01f2..222f8ee1e4 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/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.find(() => {});
-}, '`let u8 = new Uint8Array(1); new u8.find(() => {})` throws TypeError');
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-call-changes-value.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-call-changes-value.js
index 7dcaccf39b..8fe7135dbb 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-call-changes-value.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-call-changes-value.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/find/predicate-call-parameters.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-call-parameters.js
index 3df875dc37..4b9b7c6181 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-call-parameters.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-call-parameters.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/find/predicate-call-this-non-strict.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-call-this-non-strict.js
index b96f0ee394..f0855b64a4 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-call-this-non-strict.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-call-this-non-strict.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/find/predicate-call-this-strict-strict.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-call-this-strict-strict.js
index 207b73208c..23f3c2222e 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-call-this-strict-strict.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-call-this-strict-strict.js
@@ -1,3 +1,4 @@
+// |reftest| shell-option(--enable-float16array)
'use strict';
// 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/find/predicate-is-not-callable-throws.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-is-not-callable-throws.js
index 40f7c959dd..e1cef73142 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-is-not-callable-throws.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-is-not-callable-throws.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/find/predicate-may-detach-buffer.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-may-detach-buffer.js
index ca16ed882d..646c5b49fb 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-may-detach-buffer.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-may-detach-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/find/predicate-not-called-on-empty-array.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-not-called-on-empty-array.js
index 7ea189e4b1..35ff0b381e 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-not-called-on-empty-array.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/predicate-not-called-on-empty-array.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/find/prop-desc.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/prop-desc.js
index ed0168a1cd..26844b760f 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/prop-desc.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/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/find/return-abrupt-from-predicate-call.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/return-abrupt-from-predicate-call.js
index 2215239c21..ac2232d5a3 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/return-abrupt-from-predicate-call.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/return-abrupt-from-predicate-call.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/find/return-abrupt-from-this-out-of-bounds.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/return-abrupt-from-this-out-of-bounds.js
index 3ec89c8902..d9f728cfa1 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/return-abrupt-from-this-out-of-bounds.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/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/find/return-found-value-predicate-result-is-true.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js
index f5cfd69ff7..6701a42d00 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.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/find/return-undefined-if-predicate-returns-false-value.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js
index bbfa0928e9..c00e18b93c 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.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/find/this-is-not-object.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/this-is-not-object.js
index 9a6479ee49..5df0c8a1b2 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/this-is-not-object.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/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/find/this-is-not-typedarray-instance.js b/js/src/tests/test262/built-ins/TypedArray/prototype/find/this-is-not-typedarray-instance.js
index cdec6e01ad..5cf1abef6f 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/find/this-is-not-typedarray-instance.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/find/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.
/*---