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

Side by Side Diff: LayoutTests/fast/dom/Geolocation/resources/notimer-after-unload.js

Issue 2128029: Merge 59859 - 20100520 Marcus Bulach <bulach@chromium.org>... (Closed) Base URL: svn://chrome-svn/chrome/branches/WebKit/375/
Patch Set: Created 10 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/fast/dom/Geolocation/notimer-after-unload-expected.txt ('k') | WebCore/ChangeLog » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 description("Tests that no timers will trigger for navigator.geolocation object after onunload.");
2
3 if (window.layoutTestController) layoutTestController.setGeolocationPermission(t rue);
4
5 document.body.onload = function() {
6 location = "data:text/html,You should have seen one unload alert appear.<scr ipt>window.setTimeout('if (window.layoutTestController) layoutTestController.not ifyDone();', 100);</" + "script>";
7 }
8
9 document.body.onunload = function() {
10 navigator.geolocation.getCurrentPosition(
11 function(p) {alert('FAIL: Unexpected Geolocation success callback.');},
12 function(e) {alert('FAIL: Unexpected Geolocation error callback.' + e.co de + e.message);},
13 {timeout: 0, maximumAge:0}
14 );
15 alert("unload-called");
16 }
17
18 var isAsynchronous = true;
19 var successfullyParsed = true;
20
21 if (window.layoutTestController) layoutTestController.waitUntilDone();
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Geolocation/notimer-after-unload-expected.txt ('k') | WebCore/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698