mirror of
https://github.com/tc39/test262.git
synced 2025-07-26 23:44:27 +02:00
Atomics: remove non-sense test file
This commit is contained in:
parent
7f3a1c1be9
commit
695e1babd5
@ -1,27 +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.wake
|
|
||||||
description: >
|
|
||||||
Test Atomics.wait on arrays that allow atomic operations,
|
|
||||||
in an Agent that is allowed to wait. There is only the one Agent.
|
|
||||||
includes: [testAtomics.js]
|
|
||||||
features: [ArrayBuffer, arrow-function, Atomics, DataView, for-of, let, SharedArrayBuffer, TypedArray]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var sab = new SharedArrayBuffer(1024);
|
|
||||||
var view = new Int32Array(sab, 32, 20);
|
|
||||||
|
|
||||||
view[0] = 0;
|
|
||||||
assert.sameValue(Atomics.wake(view, 0, 1), 0, 'Atomics.wake(view, 0, 1) returns 0');
|
|
||||||
|
|
||||||
// In-bounds boundary cases for indexing
|
|
||||||
testWithAtomicsInBoundsIndices(function(IdxGen) {
|
|
||||||
let Idx = IdxGen(view);
|
|
||||||
view.fill(0);
|
|
||||||
// Atomics.store() computes an index from Idx in the same way as other
|
|
||||||
// Atomics operations, not quite like view[Idx].
|
|
||||||
Atomics.store(view, Idx, 37);
|
|
||||||
assert.sameValue(Atomics.wake(view, Idx, 1), 0, 'Atomics.wake(view, Idx, 1) returns 0');
|
|
||||||
});
|
|
Loading…
x
Reference in New Issue
Block a user