Skip to content

Commit

Permalink
HTML: cleanup [[CanBlock]] tests
Browse files Browse the repository at this point in the history
(These do not require COOP/COEP treatment as they test SharedArrayBuffer on a single thread, but still seems nice to reduce clutter.)
  • Loading branch information
annevk authored Jul 10, 2019
1 parent 84af6c8 commit e4b8a06
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 69 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"use strict";
importScripts("/resources/testharness.js");
// META: global=!default,window,serviceworker

test(() => {
const sab = new SharedArrayBuffer(16);
Expand All @@ -9,5 +8,3 @@ test(() => {
Atomics.wait(ta, 0, 0, 10);
});
}, `[[CanBlock]] in a ${self.constructor.name}`);

done();
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
"use strict";
importScripts("/resources/testharness.js");
// META: global=!default,dedicatedworker,sharedworker

test(() => {
const sab = new SharedArrayBuffer(16);
const ta = new Int32Array(sab);

assert_equals(Atomics.wait(ta, 0, 0, 10), "timed-out");
}, `[[CanBlock]] in a ${self.constructor.name}`);

done();

0 comments on commit e4b8a06

Please sign in to comment.