[email protected] | 1a193bb0 | 2011-01-17 12:21:55 | [diff] [blame] | 1 | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 | <html> |
| 3 | <head> |
tkent | c5e88f0 | 2017-02-06 22:47:31 | [diff] [blame] | 4 | <script src="../resources/js-test.js"></script> |
[email protected] | 1a193bb0 | 2011-01-17 12:21:55 | [diff] [blame] | 5 | </head> |
| 6 | <body> |
tkent | 98122ee | 2017-02-02 07:38:51 | [diff] [blame] | 7 | <script> |
| 8 | description("Tests the assertion that the GeolocationClient should not be updating<br>" + |
| 9 | "when the GeolocationController is destroyed.<br>" + |
| 10 | "See https://bugs.webkit.org/show_bug.cgi?id=52216"); |
| 11 | |
| 12 | if (!window.testRunner) |
| 13 | debug('This test can not run without testRunner'); |
| 14 | |
| 15 | testRunner.waitUntilDone(); |
| 16 | testRunner.setCanOpenWindows(); |
| 17 | testRunner.setCloseRemainingWindowsWhenComplete(true); |
| 18 | |
| 19 | var otherWindow; |
| 20 | |
| 21 | function gotPosition(p) |
| 22 | { |
| 23 | testPassed("Received Geoposition."); |
| 24 | otherWindow.close(); |
| 25 | window.setTimeout(waitForWindowToClose, 0); |
| 26 | } |
| 27 | |
| 28 | function waitForWindowToClose() |
| 29 | { |
| 30 | if (!otherWindow.closed) { |
| 31 | window.setTimeout(waitForWindowToClose, 0); |
| 32 | return; |
| 33 | } |
| 34 | testPassed("Success - no crash!"); |
| 35 | finishJSTest(); |
| 36 | } |
| 37 | |
| 38 | debug("Main page opening resources/window-close-popup.html"); |
| 39 | otherWindow = window.open("resources/window-close-popup.html"); |
| 40 | |
| 41 | window.jsTestIsAsync = true; |
| 42 | </script> |
[email protected] | 1a193bb0 | 2011-01-17 12:21:55 | [diff] [blame] | 43 | </body> |
| 44 | </html> |