Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: LayoutTests/inspector/geolocation-emulation-tests.html

Issue 1346213002: Permission TestRunner: only use permissions-helper.js from http/tests/. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@testrunner-setpermission-removal
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/resources/permissions-helper.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/resources/permissions-helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698