| OLD | NEW |
| (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(); |
| OLD | NEW |