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

Side by Side Diff: third_party/webdriver/test_data/html5/geolocation.js

Issue 424363004: Update third_party/webdriver/pylib to r18456 and delete test_data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "python" -> "pylib" Created 6 years, 4 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
OLDNEW
(Empty)
1 function success(position) {
2 var message = document.getElementById("status");
3 message.innerHTML ="<img src='http://maps.google.com/maps/api/staticmap?center =" + position.coords.latitude + "," + position.coords.longitude + "&size=300x200 &maptype=roadmap&zoom=12&&markers=size:mid|color:red|" + position.coords.latitud e + "," + position.coords.longitude + "&sensor=false' />";
4 message.innerHTML += "<p>Longitude: " + position.coords.longitude + "</p>";
5 message.innerHTML += "<p>Latitude: " + position.coords.latitude + "</p>";
6 message.innerHTML += "<p>Altitude: " + position.coords.altitude + "</p>";
7 }
8
9 function error(msg) {
10 var message = document.getElementById("status");
11 message.innerHTML = "Failed to get geolocation.";
12 }
13
14 if (navigator.geolocation) {
15 navigator.geolocation.getCurrentPosition(success, error);
16 } else {
17 error('Geolocation is not supported.');
18 }
OLDNEW
« no previous file with comments | « third_party/webdriver/test_data/html5/database.js ('k') | third_party/webdriver/test_data/html5/green.jpg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698