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