Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (23 sloc) 1002 Bytes
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
test(() => {
// Even though UA-generated portalactivate events are different, the
// properties supplied should be used.
const e = new PortalActivateEvent("eventtype", { bubbles: true, cancelable: true });
assert_equals(e.type, "eventtype");
}, "It should be possible to construct a PortalActivateEvent with a dictionary");
test(() => {
const data = {};
const e = new PortalActivateEvent("portalactivate", { data });
}, "A PortalActivateEvent should expose exactly the data object supplied in the original realm");
test(() => {
const e = new PortalActivateEvent("portalactivate");
assert_throws("InvalidStateError", () => e.adoptPredecessor());
}, "Invoking adoptPredecessor on a synthetic PortalActivateEvent should throw");
You can’t perform that action at this time.