2 <script src=
"/js-test-resources/js-test.js"></script>
4 description("Navigate while an EventSource reconnect timer is waiting, then have the reconnect timer trigger before the page unloads.");
6 if (window
.testRunner
) {
7 testRunner
.waitUntilDone();
8 testRunner
.dumpAsText();
11 var navigateWasCalled
= false;
14 if (navigateWasCalled
)
16 navigateWasCalled
= true;
17 window
.location
= "resources/wait-then-notify-done.php";
20 var es
= new EventSource("resources/reconnect.php");
21 es
.onerror = function() {
22 setTimeout(navigate
, 0);