blob: 60ee5c902da70a5a1027b8f71528ac7599fa7f5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<!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>
|