summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset')
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/detached-buffer.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/invoked-as-accessor.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/invoked-as-func.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/length.js12
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/name.js12
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/prop-desc.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/resizable-array-buffer-auto.js2
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/resizable-array-buffer-fixed.js2
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/return-byteoffset.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/this-has-no-typedarrayname-internal.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/this-is-not-object.js1
11 files changed, 23 insertions, 12 deletions
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/detached-buffer.js b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/detached-buffer.js
index e831fd0232..2fcdf445a8 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/detached-buffer.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/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/byteOffset/invoked-as-accessor.js b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/invoked-as-accessor.js
index 7ebe5f7ff2..20894b2b5f 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/invoked-as-accessor.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/invoked-as-accessor.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/byteOffset/invoked-as-func.js b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/invoked-as-func.js
index e7ff71bfef..49ca72256a 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/invoked-as-func.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/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/byteOffset/length.js b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/length.js
index f8e16555cb..a539d8f4f7 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/length.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/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.
@@ -25,10 +26,11 @@ features: [TypedArray]
var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "byteOffset");
-assert.sameValue(desc.get.length, 0);
-
-verifyNotEnumerable(desc.get, "length");
-verifyNotWritable(desc.get, "length");
-verifyConfigurable(desc.get, "length");
+verifyProperty(desc.get, "length", {
+ value: 0,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/name.js b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/name.js
index 4a2e7d3ea3..7c3b3e2c87 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/name.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/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.
@@ -22,10 +23,11 @@ features: [TypedArray]
var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "byteOffset");
-assert.sameValue(desc.get.name, "get byteOffset");
-
-verifyNotEnumerable(desc.get, "name");
-verifyNotWritable(desc.get, "name");
-verifyConfigurable(desc.get, "name");
+verifyProperty(desc.get, "name", {
+ value: "get byteOffset",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/prop-desc.js b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/prop-desc.js
index 8d6f554f4a..efe5371932 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/prop-desc.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/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/byteOffset/resizable-array-buffer-auto.js b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/resizable-array-buffer-auto.js
index 7aa66e07e5..6a43427556 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/resizable-array-buffer-auto.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/resizable-array-buffer-auto.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/byteOffset/resizable-array-buffer-fixed.js b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/resizable-array-buffer-fixed.js
index 5bbfb4e5b7..c01adaf4c0 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/resizable-array-buffer-fixed.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/resizable-array-buffer-fixed.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/byteOffset/return-byteoffset.js b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/return-byteoffset.js
index 889aef45b5..de9ea26f85 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/return-byteoffset.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/return-byteoffset.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/byteOffset/this-has-no-typedarrayname-internal.js b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/this-has-no-typedarrayname-internal.js
index 4388d3d760..8fc44140ca 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/this-has-no-typedarrayname-internal.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/this-has-no-typedarrayname-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/byteOffset/this-is-not-object.js b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/this-is-not-object.js
index da5c78ed28..a2cd9b964e 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/this-is-not-object.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/byteOffset/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.
/*---