| <!DOCTYPE html> |
| <title>Tests that the PortalActivateEvent is dispatched when a portal is activated</title> |
| <script src="/resources/testharness.js"></script> |
| <script src="/resources/testharnessreport.js"></script> |
| <script> |
| async_test(function(t) { |
| var bc = new BroadcastChannel("test"); |
| bc.onmessage = t.step_func_done(function(e) { |
| assert_equals(e.data, "passed"); |
| bc.close(); |
| }); |
| window.open("resources/portal-activate-event-window.html"); |
| }, "Tests that the PortalActivateEvent is dispatched when a portal is activated."); |
| </script> |