| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../../../resources/js-test-pre.js"></script> |
| description("Tests the assertion that the GeolocationClient should not be updating<br>" + |
| "when the GeolocationController is destroyed.<br>" + |
| "See https://bugs.webkit.org/show_bug.cgi?id=52216"); |
| testRunner.waitUntilDone(); |
| testFailed('This test can not be run without the testRunner'); |
| testPassed("Received Geoposition."); |
| window.setTimeout(waitForWindowToClose, 0); |
| function waitForWindowToClose() |
| if (!otherWindow.closed) { |
| window.setTimeout(waitForWindowToClose, 0); |
| testPassed("Success - no crash!"); |
| debug("Main page opening resources/window-close-popup.html"); |
| otherWindow = window.open("resources/window-close-popup.html"); |
| window.jsTestIsAsync = true; |
| <script src="../../../resources/js-test-post.js"></script> |