<!DOCTYPE html> | |
<body> | |
<script> | |
// This test passes if it does not crash. | |
// This does surprise the test runner by closing the main web contents. | |
var portal = document.createElement("portal"); | |
portal.src = '/external/wpt/portals/resources/simple-portal.html'; | |
document.body.appendChild(portal); | |
portal.onload = () => portal.activate(); | |
</script> | |
</body> |