зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
7a6aba5b76
Коммит
8fa98884a6
|
@ -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";
|
// META: global=!default,window,serviceworker
|
||||||
importScripts("/resources/testharness.js");
|
|
||||||
|
|
||||||
test(() => {
|
test(() => {
|
||||||
const sab = new SharedArrayBuffer(16);
|
const sab = new SharedArrayBuffer(16);
|
||||||
|
@ -9,5 +8,3 @@ test(() => {
|
||||||
Atomics.wait(ta, 0, 0, 10);
|
Atomics.wait(ta, 0, 0, 10);
|
||||||
});
|
});
|
||||||
}, `[[CanBlock]] in a ${self.constructor.name}`);
|
}, `[[CanBlock]] in a ${self.constructor.name}`);
|
||||||
|
|
||||||
done();
|
|
|
@ -1,5 +1,4 @@
|
||||||
"use strict";
|
// META: global=!default,dedicatedworker,sharedworker
|
||||||
importScripts("/resources/testharness.js");
|
|
||||||
|
|
||||||
test(() => {
|
test(() => {
|
||||||
const sab = new SharedArrayBuffer(16);
|
const sab = new SharedArrayBuffer(16);
|
||||||
|
@ -7,5 +6,3 @@ test(() => {
|
||||||
|
|
||||||
assert_equals(Atomics.wait(ta, 0, 0, 10), "timed-out");
|
assert_equals(Atomics.wait(ta, 0, 0, 10), "timed-out");
|
||||||
}, `[[CanBlock]] in a ${self.constructor.name}`);
|
}, `[[CanBlock]] in a ${self.constructor.name}`);
|
||||||
|
|
||||||
done();
|
|
Загрузка…
Ссылка в новой задаче