Bug 1565151 [wpt PR 17688] - HTML: cleanup [[CanBlock]] tests, a=testonly

Automatic update from web-platform-tests
HTML: cleanup [[CanBlock]] tests

(These do not require COOP/COEP treatment as they test SharedArrayBuffer on a single thread, but still seems nice to reduce clutter.)
--

wpt-commits: e4b8a06127ec937a5a57f6f96470aabb6f8d4629
wpt-pr: 17688
This commit is contained in:
Anne van Kesteren 2019-07-22 10:22:32 +00:00 коммит произвёл James Graham
Родитель 7a6aba5b76
Коммит 8fa98884a6
6 изменённых файлов: 2 добавлений и 69 удалений

Просмотреть файл

@ -1,13 +0,0 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>[[CanBlock]] in a dedicated worker agent</title>
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dedicated-worker-agent">
<link rel="help" href="https://tc39.github.io/ecma262/#sec-agentcansuspend">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
"use strict";
fetch_tests_from_worker(new Worker("worker-that-requires-success.js"));
</script>

Просмотреть файл

@ -1,14 +0,0 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>[[CanBlock]] in a service worker agent</title>
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#service-worker-agent">
<link rel="help" href="https://tc39.github.io/ecma262/#sec-agentcansuspend">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/service-workers/service-worker/resources/test-helpers.sub.js"></script>
<script>
"use strict";
service_worker_test("worker-that-requires-failure.js", "Service worker test setup");
</script>

Просмотреть файл

@ -1,13 +0,0 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>[[CanBlock]] in a shared worker agent</title>
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#shared-worker-agent">
<link rel="help" href="https://tc39.github.io/ecma262/#sec-agentcansuspend">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
"use strict";
fetch_tests_from_worker(new SharedWorker("worker-that-requires-success.js"));
</script>

Просмотреть файл

@ -1,21 +0,0 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>[[CanBlock]] in a similar-origin window agent</title>
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#similar-origin-window-agent">
<link rel="help" href="https://tc39.github.io/ecma262/#sec-agentcansuspend">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
"use strict";
const sab = new SharedArrayBuffer(16);
const ta = new Int32Array(sab);
assert_throws(new TypeError(), () => {
Atomics.wait(ta, 0, 0, 10);
}, "Atomics.wait must throw in a window context");
done();
</script>

Просмотреть файл

@ -1,5 +1,4 @@
"use strict";
importScripts("/resources/testharness.js");
// META: global=!default,window,serviceworker
test(() => {
const sab = new SharedArrayBuffer(16);
@ -9,5 +8,3 @@ test(() => {
Atomics.wait(ta, 0, 0, 10);
});
}, `[[CanBlock]] in a ${self.constructor.name}`);
done();

Просмотреть файл

@ -1,5 +1,4 @@
"use strict";
importScripts("/resources/testharness.js");
// META: global=!default,dedicatedworker,sharedworker
test(() => {
const sab = new SharedArrayBuffer(16);
@ -7,5 +6,3 @@ test(() => {
assert_equals(Atomics.wait(ta, 0, 0, 10), "timed-out");
}, `[[CanBlock]] in a ${self.constructor.name}`);
done();