Skip to content
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>
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");
You can’t perform that action at this time.