blob: f5f96624b97ff600f6e34c0353ee258b76df9a6e [file] [log] [blame]
[email protected]1a193bb02011-01-17 12:21:551<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2<html>
3<head>
tkentc5e88f02017-02-06 22:47:314<script src="../resources/js-test.js"></script>
[email protected]1a193bb02011-01-17 12:21:555</head>
6<body>
tkent98122ee2017-02-02 07:38:517<script>
8description("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
12if (!window.testRunner)
13 debug('This test can not run without testRunner');
14
15testRunner.waitUntilDone();
16testRunner.setCanOpenWindows();
17testRunner.setCloseRemainingWindowsWhenComplete(true);
18
19var otherWindow;
20
21function gotPosition(p)
22{
23 testPassed("Received Geoposition.");
24 otherWindow.close();
25 window.setTimeout(waitForWindowToClose, 0);
26}
27
28function waitForWindowToClose()
29{
30 if (!otherWindow.closed) {
31 window.setTimeout(waitForWindowToClose, 0);
32 return;
33 }
34 testPassed("Success - no crash!");
35 finishJSTest();
36}
37
38debug("Main page opening resources/window-close-popup.html");
39otherWindow = window.open("resources/window-close-popup.html");
40
41window.jsTestIsAsync = true;
42</script>
[email protected]1a193bb02011-01-17 12:21:5543</body>
44</html>