Update web-platform-tests to revision 687b6cba3385c4c2ca85f44fe072961e651621b5

This commit is contained in:
WPT Sync Bot 2019-04-08 21:47:49 -04:00
parent cd579f6746
commit 1a4444a557
45 changed files with 594 additions and 259 deletions

View file

@ -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>