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