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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/callback-to-deleted-context.js

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/script-tests/callback-to-deleted-context.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/callback-to-deleted-context.js b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/callback-to-deleted-context.js
index f83c867309311ce323108baa3f037477c4b62504..533b34a62b555ee9ea49bb6730614cc779b32333 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/callback-to-deleted-context.js
+++ b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/callback-to-deleted-context.js
@@ -12,7 +12,11 @@ function onSecondIframeLoaded() {
}
var iframe = document.createElement('iframe');
-iframe.src = 'resources/callback-to-deleted-context-inner1.html';
-document.body.appendChild(iframe);
+geolocationServiceMock.then(mock => {
+ mock.setGeolocationPermission(true);
+ mock.setGeolocationPosition(51.478, -0.166, 100);
+ iframe.src = 'resources/callback-to-deleted-context-inner1.html';
+ document.body.appendChild(iframe);
+});
window.jsTestIsAsync = true;

Powered by Google App Engine
This is Rietveld 408576698