| 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 src="../../../../resources/mojo-helpers.js"></script> | 4 <script src="../../../../resources/mojo-helpers.js"></script> |
| 5 <script src="geolocation-mock.js"></script> | 5 <script src="geolocation-mock.js"></script> |
| 6 <script> | 6 <script> |
| 7 function init() { | 7 function init() { |
| 8 if (!window.testRunner || !window.mojo) | |
| 9 debug('This test can not run without testRunner or mojo'); | |
| 10 | |
| 11 geolocationServiceMock.then(mock => { | 8 geolocationServiceMock.then(mock => { |
| 12 mock.setGeolocationPermission(false); | 9 mock.setGeolocationPermission(false); |
| 13 window.parent.onIframeReady() | 10 window.parent.onIframeReady() |
| 14 }); | 11 }); |
| 15 } | 12 } |
| 16 </script> | 13 </script> |
| 17 </head> | 14 </head> |
| 18 <body onload="init()"> | 15 <body onload="init()"> |
| 19 </body> | 16 </body> |
| 20 </html> | 17 </html> |
| OLD | NEW |