mirror of
https://github.com/servo/servo.git
synced 2025-09-03 03:28:20 +01:00
Update web-platform-tests to revision 687b6cba3385c4c2ca85f44fe072961e651621b5
This commit is contained in:
parent
cd579f6746
commit
1a4444a557
45 changed files with 594 additions and 259 deletions
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<body>
|
||||
<script>
|
||||
var portal = document.createElement("portal");
|
||||
portal.src = "simple-portal.html";
|
||||
let waitForMessage = new Promise((resolve, reject) => {
|
||||
var bc_portal = new BroadcastChannel("simple-portal");
|
||||
bc_portal.onmessage = e => {
|
||||
bc_portal.close();
|
||||
portal.activate();
|
||||
var portal2 = document.createElement("portal");
|
||||
portal2.src = "simple-portal.html";
|
||||
document.body.appendChild(portal2);
|
||||
var bc2 = new BroadcastChannel("simple-portal");
|
||||
bc2.onmessage = e => {
|
||||
bc2.close();
|
||||
resolve("portal loaded");
|
||||
}
|
||||
}
|
||||
});
|
||||
document.body.appendChild(portal);
|
||||
waitForMessage.then(message => {
|
||||
var bc = new BroadcastChannel("portals-create-orphaned");
|
||||
bc.postMessage(message);
|
||||
bc.close();
|
||||
});
|
||||
</script>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue