mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision cd44958a002b1ad494168e0290554644de84526e
This commit is contained in:
parent
2ed23ce4c9
commit
4443426308
103 changed files with 1740 additions and 1138 deletions
|
@ -2,6 +2,7 @@
|
|||
<title>DedicatedWorker: import failure</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script> setup({allow_uncaught_exception: true}); </script>
|
||||
<script>
|
||||
|
||||
promise_test(async () => {
|
||||
|
|
|
@ -9,7 +9,10 @@ let worker;
|
|||
window.onmessage = e => {
|
||||
worker = new Worker(e.data, { type: 'module' });
|
||||
worker.onmessage = msg => window.opener.postMessage(msg.data, '*');
|
||||
worker.onerror = err => window.opener.postMessage(['ERROR'], '*');
|
||||
worker.onerror = err => {
|
||||
window.opener.postMessage(['ERROR'], '*');
|
||||
err.preventDefault();
|
||||
};
|
||||
};
|
||||
window.opener.postMessage('LOADED', '*');
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue