mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update web-platform-tests to revision ac12b3e9488edb436f063b11213e954ae62d5a5e
This commit is contained in:
parent
65370f17c9
commit
b56a3b8e69
111 changed files with 3122 additions and 68 deletions
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Test simple shared worker construction case.</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
promise_test(t => {
|
||||
let worker;
|
||||
|
||||
return new Promise(resolve => {
|
||||
worker = new SharedWorker('support/SharedWorker-common.js', 'name');
|
||||
worker.port.postMessage("ping");
|
||||
worker.port.onmessage = resolve;
|
||||
}).then(e => {
|
||||
assert_equals(e.data, "PASS: Received ping message");
|
||||
});
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue