From 695e1babd5b5ad30bbeebb9cee892b6b55285486 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Mon, 21 May 2018 14:35:23 -0400 Subject: [PATCH] Atomics: remove non-sense test file --- test/built-ins/Atomics/wake/good-views.js | 27 ----------------------- 1 file changed, 27 deletions(-) delete mode 100644 test/built-ins/Atomics/wake/good-views.js diff --git a/test/built-ins/Atomics/wake/good-views.js b/test/built-ins/Atomics/wake/good-views.js deleted file mode 100644 index 7fbc763a80..0000000000 --- a/test/built-ins/Atomics/wake/good-views.js +++ /dev/null @@ -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'); -});