| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script> | 4 <script> |
| 5 function makeGeolocationRequest() { | 5 function makeGeolocationRequest() { |
| 6 var parent = window.parent; | 6 var parent = window.parent; |
| 7 | 7 |
| 8 | 8 |
| 9 // Make request from remote frame, this frame will be gone by the time
the Geolocation | 9 // Make request from remote frame, this frame will be gone by the time
the Geolocation |
| 10 // object attempts to invoke the callback. | 10 // object attempts to invoke the callback. |
| 11 window.parent.navigator.geolocation.getCurrentPosition(function() { | 11 window.parent.navigator.geolocation.getCurrentPosition(function() { |
| 12 parent.testPassed('Success callback invoked'); | 12 parent.testPassed('Success callback invoked'); |
| 13 parent.finishJSTest(); | 13 parent.finishJSTest(); |
| 14 }, function() { | 14 }, function() { |
| 15 parent.testFailed('Error callback invoked unexpectedly'); | 15 parent.testFailed('Error callback invoked unexpectedly'); |
| 16 parent.finishJSTest(); | 16 parent.finishJSTest(); |
| 17 }); | 17 }); |
| 18 } | 18 } |
| 19 </script> | 19 </script> |
| 20 </head> | 20 </head> |
| 21 <body onload="window.parent.onFirstIframeLoaded()", onunload="makeGeolocationR
equest()"> | 21 <body onload="window.parent.onFirstIframeLoaded()", onunload="makeGeolocationR
equest()"> |
| 22 <p>This frame should be replaced before the test ends</p> | 22 <p>This frame should be replaced before the test ends</p> |
| 23 </body> | 23 </body> |
| 24 </html> | 24 </html> |
| OLD | NEW |