OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../http/tests/inspector/inspector-test.js"></script> |
4 <script src="../resources/permissions-helper.js"></script> | 4 <script src="../http/tests/resources/permissions-helper.js"></script> |
5 <script> | 5 <script> |
6 | 6 |
7 function grantGeolocationPermission() { | 7 function grantGeolocationPermission() { |
8 PermissionsHelper.setPermission('geolocation', 'granted').then(function(p) { | 8 PermissionsHelper.setPermission('geolocation', 'granted').then(function(p) { |
9 console.log("Permission granted."); | 9 console.log("Permission granted."); |
10 }); | 10 }); |
11 } | 11 } |
12 | 12 |
13 function serializeGeolocationError(error) { | 13 function serializeGeolocationError(error) { |
14 var result = "Unknown error" | 14 var result = "Unknown error" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 ]); | 110 ]); |
111 } | 111 } |
112 </script> | 112 </script> |
113 </head> | 113 </head> |
114 <body onload="runTest()"> | 114 <body onload="runTest()"> |
115 <p> | 115 <p> |
116 Tests that geolocation emulation with latitude and longitude works as expected. | 116 Tests that geolocation emulation with latitude and longitude works as expected. |
117 </p> | 117 </p> |
118 </body> | 118 </body> |
119 </html> | 119 </html> |
OLD | NEW |