summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/TypedArray/prototype/buffer
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/TypedArray/prototype/buffer')
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/buffer/detached-buffer.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/buffer/invoked-as-accessor.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/buffer/invoked-as-func.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/buffer/length.js12
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/buffer/name.js12
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/buffer/prop-desc.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/buffer/return-buffer.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/buffer/this-has-no-typedarrayname-internal.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/buffer/this-inherits-typedarray.js1
-rw-r--r--js/src/tests/test262/built-ins/TypedArray/prototype/buffer/this-is-not-object.js1
10 files changed, 22 insertions, 10 deletions
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/detached-buffer.js b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/detached-buffer.js
index 37d07fc49b..2d3da6c56d 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/detached-buffer.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/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/buffer/invoked-as-accessor.js b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/invoked-as-accessor.js
index d1ce4b348a..4d02a18818 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/invoked-as-accessor.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/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/buffer/invoked-as-func.js b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/invoked-as-func.js
index 4b47043775..14d8be3c48 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/invoked-as-func.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/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/buffer/length.js b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/length.js
index 5d0450e8f0..a343b2d947 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/length.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/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, "buffer");
-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/buffer/name.js b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/name.js
index f0464af9dc..af4c7cc517 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/name.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/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, "buffer");
-assert.sameValue(desc.get.name, "get buffer");
-
-verifyNotEnumerable(desc.get, "name");
-verifyNotWritable(desc.get, "name");
-verifyConfigurable(desc.get, "name");
+verifyProperty(desc.get, "name", {
+ value: "get buffer",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/prop-desc.js b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/prop-desc.js
index 70f7c8973f..3d1d6b63ad 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/prop-desc.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/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/buffer/return-buffer.js b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/return-buffer.js
index aa17d649bf..c9ff2122a9 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/return-buffer.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/return-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/buffer/this-has-no-typedarrayname-internal.js b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/this-has-no-typedarrayname-internal.js
index 69844e2da1..4f57e51995 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/this-has-no-typedarrayname-internal.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/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/buffer/this-inherits-typedarray.js b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/this-inherits-typedarray.js
index 27d44fee16..82b823a8db 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/this-inherits-typedarray.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/this-inherits-typedarray.js
@@ -1,3 +1,4 @@
+// |reftest| shell-option(--enable-float16array)
// Copyright (C) 2020 Google. 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/buffer/this-is-not-object.js b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/this-is-not-object.js
index 6f23eb7253..670fcbba4f 100644
--- a/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/this-is-not-object.js
+++ b/js/src/tests/test262/built-ins/TypedArray/prototype/buffer/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.
/*---