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

Unified Diff: content/test/data/android/geolocation.html

Issue 1599113002: Fix org.chromium.chrome.browser.GeolocationTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « chrome/android/javatests/src/org/chromium/chrome/browser/GeolocationTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/android/geolocation.html
diff --git a/content/test/data/android/geolocation.html b/content/test/data/android/geolocation.html
index 729c339a4df51d9607c1a7e53fab64bd753d7dc8..a7315e289529d4e95c4b0f99bd555d8de9c33482 100644
--- a/content/test/data/android/geolocation.html
+++ b/content/test/data/android/geolocation.html
@@ -3,13 +3,23 @@
<head>
<title>Geolocation</title>
<script>
- var positionCount = 0;
- function gotPos(position) {
- positionCount++;
- }
- function initiate_watchPosition() {
- navigator.geolocation.watchPosition(gotPos, function() { }, { });
- }
+ var positionCount = 0;
+ function gotPos(position) {
+ positionCount++;
+ window.document.title = 'Count:' + positionCount;
+ }
+ function errorCallback(error){
+ window.document.title = 'deny';
+ console.log('navigator.getCurrentPosition error: ', error);
+ }
+ function initiate_getCurrentPosition() {
+ navigator.geolocation.getCurrentPosition(
+ gotPos, errorCallback, { });
+ }
+ function initiate_watchPosition() {
+ navigator.geolocation.watchPosition(
+ gotPos, errorCallback, { });
+ }
</script>
</head>
<body>
« no previous file with comments | « chrome/android/javatests/src/org/chromium/chrome/browser/GeolocationTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698