mirror of
https://github.com/servo/servo.git
synced 2025-09-11 07:28:19 +01:00
Update web-platform-tests to revision e3cf1284464a4a3e46fd15e4138f8e32c6cecdd8
This commit is contained in:
parent
b20333a324
commit
c5c325d8bb
57 changed files with 1422 additions and 493 deletions
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
promise_test(async () => {
|
||||
var win = window.open();
|
||||
var portal = win.document.createElement("portal");
|
||||
portal.src = new URL("resources/simple-portal.html", location.href)
|
||||
|
||||
await new Promise((resolve, reject) => {
|
||||
var bc = new BroadcastChannel("simple-portal");
|
||||
bc.onmessage = () => {
|
||||
bc.close();
|
||||
resolve();
|
||||
}
|
||||
win.document.body.appendChild(portal);
|
||||
});
|
||||
|
||||
return portal.activate();
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue