summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/TypedArray/prototype/sort
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/TypedArray/prototype/sort')
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/arraylength-internal.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/comparefn-call-throws.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/comparefn-calls.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/comparefn-is-undefined.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/comparefn-nonfunction-call-throws.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/detached-buffer.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/invoked-as-func.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/invoked-as-method.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/length.js12
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/name.js12
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/not-a-constructor.js3
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/prop-desc.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/return-abrupt-from-this-out-of-bounds.js2
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/return-same-instance.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/sort-tonumber.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/sortcompare-with-no-tostring.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/sorted-values-nan.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/sorted-values.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/stability.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/this-is-not-object.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/sort/this-is-not-typedarray-instance.js1
21 files changed, 34 insertions, 12 deletions
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/arraylength-internal.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/arraylength-internal.js
index b11284fb67..bedc736b95 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/arraylength-internal.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/arraylength-internal.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/sort/comparefn-call-throws.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/comparefn-call-throws.js
index 4ec5160af3..abd5025428 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/comparefn-call-throws.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/comparefn-call-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/sort/comparefn-calls.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/comparefn-calls.js
index 53c60777d9..9d79cd1891 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/comparefn-calls.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/comparefn-calls.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/sort/comparefn-is-undefined.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/comparefn-is-undefined.js
index f63e734f2d..029528b6db 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/comparefn-is-undefined.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/comparefn-is-undefined.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.
/*---
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/comparefn-nonfunction-call-throws.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/comparefn-nonfunction-call-throws.js
index 8bbdd3bce0..cc87ace424 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/comparefn-nonfunction-call-throws.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/comparefn-nonfunction-call-throws.js
@@ -1,3 +1,4 @@
+// |reftest| shell-option(--enable-float16array)
// Copyright (C) 2017 Jordan Harband. 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/sort/detached-buffer.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/detached-buffer.js
index cb25eab0dd..2ff62a3bdf 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/detached-buffer.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/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/sort/invoked-as-func.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/invoked-as-func.js
index 582fe56c42..ca07ff6784 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/invoked-as-func.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/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/sort/invoked-as-method.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/invoked-as-method.js
index 50f84f46dd..7f13209cbd 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/invoked-as-method.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/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/sort/length.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/length.js
index bb8480eaa4..51b5c0b1dc 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/length.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/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.sort.length, 1);
-
-verifyNotEnumerable(TypedArray.prototype.sort, "length");
-verifyNotWritable(TypedArray.prototype.sort, "length");
-verifyConfigurable(TypedArray.prototype.sort, "length");
+verifyProperty(TypedArray.prototype.sort, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/name.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/name.js
index 347586ddce..c1d68121d9 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/name.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/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.sort.name, "sort");
-
-verifyNotEnumerable(TypedArray.prototype.sort, "name");
-verifyNotWritable(TypedArray.prototype.sort, "name");
-verifyConfigurable(TypedArray.prototype.sort, "name");
+verifyProperty(TypedArray.prototype.sort, "name", {
+ value: "sort",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/not-a-constructor.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/not-a-constructor.js
index 4814d4a7df..fb5196097a 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/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.sort();
-}, '`let u8 = new Uint8Array(1); new u8.sort()` throws TypeError');
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/prop-desc.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/prop-desc.js
index 8d0d2d273b..80c539ac16 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/prop-desc.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/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/sort/return-abrupt-from-this-out-of-bounds.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/return-abrupt-from-this-out-of-bounds.js
index acd949c90d..89615c6722 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/return-abrupt-from-this-out-of-bounds.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/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/sort/return-same-instance.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/return-same-instance.js
index ad1283c0f5..108d166c19 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/return-same-instance.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/return-same-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.
/*---
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/sort-tonumber.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/sort-tonumber.js
index dcc99bc87c..b24bfc96e4 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/sort-tonumber.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/sort-tonumber.js
@@ -1,3 +1,4 @@
+// |reftest| shell-option(--enable-float16array)
// Copyright (C) 2018 Mozilla Corporation. 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/sort/sortcompare-with-no-tostring.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/sortcompare-with-no-tostring.js
index 82c8d16ad2..53b60393cc 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/sortcompare-with-no-tostring.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/sortcompare-with-no-tostring.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/sort/sorted-values-nan.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/sorted-values-nan.js
index 2a6ff72aab..a74c18e592 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/sorted-values-nan.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/sorted-values-nan.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/sort/sorted-values.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/sorted-values.js
index 459c40a13d..4303d47897 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/sorted-values.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/sorted-values.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/sort/stability.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/stability.js
index 3a904f9f02..5c000d3953 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/stability.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/stability.js
@@ -1,3 +1,4 @@
+// |reftest| shell-option(--enable-float16array)
// Copyright (C) 2019 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/sort/this-is-not-object.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/this-is-not-object.js
index 0331551ca8..f0e7be7a9a 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/this-is-not-object.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/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/sort/this-is-not-typedarray-instance.js b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/this-is-not-typedarray-instance.js
index 8dfac62ce6..26c7513eca 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/sort/this-is-not-typedarray-instance.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/sort/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.
/*---