Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Geolocation/window-close-crash.html

Issue 2671933003: Move Geolocation out from fast/dom. (Closed)
Patch Set: . Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698