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

Unified 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, 5 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/webdriver/test_data/html5/geolocation.js
diff --git a/third_party/webdriver/test_data/html5/geolocation.js b/third_party/webdriver/test_data/html5/geolocation.js
deleted file mode 100644
index f07af148ed01667d33a492269326c508e18a9185..0000000000000000000000000000000000000000
--- a/third_party/webdriver/test_data/html5/geolocation.js
+++ /dev/null
@@ -1,18 +0,0 @@
-function success(position) {
- var message = document.getElementById("status");
- 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.latitude + "," + position.coords.longitude + "&sensor=false' />";
- message.innerHTML += "<p>Longitude: " + position.coords.longitude + "</p>";
- message.innerHTML += "<p>Latitude: " + position.coords.latitude + "</p>";
- message.innerHTML += "<p>Altitude: " + position.coords.altitude + "</p>";
-}
-
-function error(msg) {
- var message = document.getElementById("status");
- message.innerHTML = "Failed to get geolocation.";
-}
-
-if (navigator.geolocation) {
- navigator.geolocation.getCurrentPosition(success, error);
-} else {
- error('Geolocation is not supported.');
-}
« 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