Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (9 sloc) 357 Bytes
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
promise_test(async t => {
let activatePromise = document.createElement('portal').activate();
await promise_rejects(t, 'InvalidStateError', activatePromise);
}, "A portal with nothing in it cannot be activated");
</script>
You can’t perform that action at this time.