mirror of https://github.com/tc39/test262.git
parent
e48bf299a6
commit
1c2bd105fb
|
@ -1,18 +0,0 @@
|
|||
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-atomics.add
|
||||
description: >
|
||||
Test Atomics.add on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [Atomics, SharedArrayBuffer, TypedArray]
|
||||
---*/
|
||||
|
||||
const buffer = new SharedArrayBuffer(1024);
|
||||
|
||||
testWithTypedArrayConstructors(function(TA) {
|
||||
assert.throws(TypeError, function() {
|
||||
Atomics.add(new TA(buffer), 0, 0);
|
||||
}, '`Atomics.add(new TA(buffer), 0, 0)` throws TypeError');
|
||||
}, floatArrayConstructors);
|
|
@ -1,18 +0,0 @@
|
|||
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-atomics.and
|
||||
description: >
|
||||
Test Atomics.and on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [Atomics, SharedArrayBuffer, TypedArray]
|
||||
---*/
|
||||
|
||||
const buffer = new SharedArrayBuffer(1024);
|
||||
|
||||
testWithTypedArrayConstructors(function(TA) {
|
||||
assert.throws(TypeError, function() {
|
||||
Atomics.and(new TA(buffer), 0, 0);
|
||||
}, '`Atomics.and(new TA(buffer), 0, 0)` throws TypeError');
|
||||
}, floatArrayConstructors);
|
|
@ -1,18 +0,0 @@
|
|||
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-atomics.compareexchange
|
||||
description: >
|
||||
Test Atomics.compareExchange on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [Atomics, SharedArrayBuffer, TypedArray]
|
||||
---*/
|
||||
|
||||
var buffer = new SharedArrayBuffer(1024);
|
||||
|
||||
testWithTypedArrayConstructors(function(TA) {
|
||||
assert.throws(TypeError, function() {
|
||||
Atomics.compareExchange(new TA(buffer), 0, 0, 0);
|
||||
}, '`Atomics.compareExchange(new TA(buffer), 0, 0, 0)` throws TypeError');
|
||||
}, floatArrayConstructors);
|
|
@ -1,18 +0,0 @@
|
|||
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-atomics.exchange
|
||||
description: >
|
||||
Test Atomics.exchange on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [Atomics, SharedArrayBuffer, TypedArray]
|
||||
---*/
|
||||
|
||||
var buffer = new SharedArrayBuffer(1024);
|
||||
|
||||
testWithTypedArrayConstructors(function(TA) {
|
||||
assert.throws(TypeError, function() {
|
||||
Atomics.exchange(new TA(buffer), 0, 0);
|
||||
}, '`Atomics.exchange(new TA(buffer), 0, 0)` throws TypeError');
|
||||
}, floatArrayConstructors);
|
|
@ -1,17 +0,0 @@
|
|||
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-atomics.load
|
||||
description: >
|
||||
Test Atomics.load on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [Atomics, SharedArrayBuffer, TypedArray]
|
||||
---*/
|
||||
|
||||
const buffer = new SharedArrayBuffer(1024);
|
||||
testWithTypedArrayConstructors(function(TA) {
|
||||
assert.throws(TypeError, function() {
|
||||
Atomics.load(new TA(buffer), 0);
|
||||
}, '`Atomics.load(new TA(buffer), 0)` throws TypeError');
|
||||
}, floatArrayConstructors);
|
|
@ -1,21 +0,0 @@
|
|||
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-atomics.notify
|
||||
description: >
|
||||
Test Atomics.notify on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [Atomics, SharedArrayBuffer, TypedArray]
|
||||
---*/
|
||||
|
||||
var buffer = new SharedArrayBuffer(1024);
|
||||
|
||||
testWithTypedArrayConstructors(function(TA) {
|
||||
assert.throws(TypeError, function() {
|
||||
Atomics.notify(new TA(buffer), 0, 0);
|
||||
}, '`Atomics.notify(new TA(buffer), 0, 0)` throws TypeError');
|
||||
}, floatArrayConstructors);
|
||||
|
||||
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-atomics.or
|
||||
description: >
|
||||
Test Atomics.or on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [Atomics, SharedArrayBuffer, TypedArray]
|
||||
---*/
|
||||
|
||||
var buffer = new SharedArrayBuffer(1024);
|
||||
|
||||
testWithTypedArrayConstructors(function(TA) {
|
||||
assert.throws(TypeError, function() {
|
||||
Atomics.or(new TA(buffer), 0, 0);
|
||||
}, '`Atomics.or(new TA(buffer), 0, 0)` throws TypeError');
|
||||
}, floatArrayConstructors);
|
||||
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-atomics.store
|
||||
description: >
|
||||
Test Atomics.store on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [Atomics, SharedArrayBuffer, TypedArray]
|
||||
---*/
|
||||
|
||||
var buffer = new SharedArrayBuffer(1024);
|
||||
|
||||
testWithTypedArrayConstructors(function(TA) {
|
||||
assert.throws(TypeError, function() {
|
||||
Atomics.store(new TA(buffer), 0, 0);
|
||||
}, '`Atomics.store(new TA(buffer), 0, 0)` throws TypeError');
|
||||
}, floatArrayConstructors);
|
||||
|
||||
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-atomics.sub
|
||||
description: >
|
||||
Test Atomics.sub on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [Atomics, SharedArrayBuffer, TypedArray]
|
||||
---*/
|
||||
|
||||
var buffer = new SharedArrayBuffer(1024);
|
||||
|
||||
testWithTypedArrayConstructors(function(TA) {
|
||||
assert.throws(TypeError, function() {
|
||||
Atomics.sub(new TA(buffer), 0, 0);
|
||||
}, '`Atomics.sub(new TA(buffer), 0, 0)` throws TypeError');
|
||||
}, floatArrayConstructors);
|
||||
|
||||
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-atomics.xor
|
||||
description: >
|
||||
Test Atomics.xor on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [Atomics, SharedArrayBuffer, TypedArray]
|
||||
---*/
|
||||
|
||||
var buffer = new SharedArrayBuffer(1024);
|
||||
|
||||
testWithTypedArrayConstructors(function(TA) {
|
||||
assert.throws(TypeError, function() {
|
||||
Atomics.xor(new TA(buffer), 0, 0);
|
||||
}, '`Atomics.xor(new TA(buffer), 0, 0)` throws TypeError');
|
||||
}, floatArrayConstructors);
|
Loading…
Reference in New Issue