mirror of
https://github.com/servo/servo.git
synced 2025-10-17 16:59:27 +01:00
Update web-platform-tests to revision b'02400d32d48521baa38663fe8601779994fcfb78'
This commit is contained in:
parent
bc8cea2495
commit
f0bb7a6f9c
483 changed files with 12767 additions and 2644 deletions
|
@ -0,0 +1,25 @@
|
|||
// META: global=window,dedicatedworker
|
||||
|
||||
promise_test(async () => {
|
||||
const sab = new SharedArrayBuffer(64);
|
||||
const ta = new Int32Array(sab);
|
||||
|
||||
const waitAsyncObj = Atomics.waitAsync(ta, 0, 0, 10);
|
||||
assert_equals(waitAsyncObj.async, true);
|
||||
const v = await waitAsyncObj.value;
|
||||
assert_equals(v, "timed-out");
|
||||
}, `Atomics.waitAsync timeout in a ${self.constructor.name}`);
|
||||
|
||||
promise_test(async () => {
|
||||
const sab = new SharedArrayBuffer(64);
|
||||
const ta = new Int32Array(sab);
|
||||
|
||||
const waitAsyncObj = Atomics.waitAsync(ta, 0, 0);
|
||||
assert_equals(waitAsyncObj.async, true);
|
||||
|
||||
const worker = new Worker("resources/notify-worker.js");
|
||||
worker.postMessage(sab);
|
||||
|
||||
const v = await waitAsyncObj.value;
|
||||
assert_equals(v, "ok");
|
||||
}, `Atomics.waitAsync notification in a ${self.constructor.name}`);
|
|
@ -0,0 +1,2 @@
|
|||
Cross-Origin-Embedder-Policy: require-corp
|
||||
Cross-Origin-Opener-Policy: same-origin
|
|
@ -0,0 +1,5 @@
|
|||
onmessage = (e) => {
|
||||
const sab = e.data;
|
||||
const ta = new Int32Array(sab);
|
||||
Atomics.notify(ta, 0);
|
||||
};
|
|
@ -0,0 +1 @@
|
|||
Cross-Origin-Embedder-Policy: require-corp
|
|
@ -0,0 +1,11 @@
|
|||
<!doctype html>
|
||||
<title>window.reportError() doesn't crash when window is detached</title>
|
||||
<link rel="help" href="https://crbug.com/1445375">
|
||||
<body>
|
||||
<script>
|
||||
let i = document.createElement("iframe");
|
||||
document.body.appendChild(i);
|
||||
let i_win = i.contentWindow;
|
||||
i.remove();
|
||||
i_win.reportError("an error");
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue