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