blob: 60ee5c902da70a5a1027b8f71528ac7599fa7f5e [file] [log] [blame]
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<script>
async_test(t => {
assert_implements("HTMLPortalElement" in self);
let portal = document.createElement('portal');
portal.src = "resources/invalid.asis";
document.body.appendChild(portal);
t.add_cleanup(() => { document.body.removeChild(portal); });
t.step_timeout(async () => {
await promise_rejects_dom(t, 'InvalidStateError', portal.activate());
t.done();
}, 2000);
}, "A portal that is showing inline content for a network error cannot be activated");
</script>
</body>