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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/callback-to-deleted-context-inner1.html

Issue 1948033003: Convert most geolocation layout tests to use a JS mock implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-disconnect
Patch Set: Created 4 years, 7 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
Index: third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/callback-to-deleted-context-inner1.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/callback-to-deleted-context-inner1.html b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/callback-to-deleted-context-inner1.html
index 81311680bfeaf1e21dfecffda46f10ac5dfc74a8..90929ca65e0afd67e2769a567731add3c61b3784 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/callback-to-deleted-context-inner1.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/callback-to-deleted-context-inner1.html
@@ -3,15 +3,9 @@
<head>
<script>
function makeGeolocationRequest() {
- if (!window.testRunner || !window.internals)
- debug('This test can not run without testRunner or internals');
-
- internals.setGeolocationClientMock(document);
- internals.setGeolocationPermission(document, true);
- internals.setGeolocationPosition(document, 51.478, -0.166, 100);
-
var parent = window.parent;
+
// Make request from remote frame, this frame will be gone by the time the Geolocation
// object attempts to invoke the callback.
window.parent.navigator.geolocation.getCurrentPosition(function() {

Powered by Google App Engine
This is Rietveld 408576698