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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/cached-position-iframe.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/cached-position-iframe.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/cached-position-iframe.js b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/cached-position-iframe.js
deleted file mode 100644
index 3a923f6b66747cf55e67e098e74bc33dd8b5968a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/cached-position-iframe.js
+++ /dev/null
@@ -1,26 +0,0 @@
-description('Tests that a cached position can be obtained in one frame after another frame has received a fresh position.');
-
-if (!window.testRunner || !window.internals)
- debug('This test can not run without testRunner or internals');
-
-internals.setGeolocationClientMock(document);
-internals.setGeolocationPosition(document, 51.478, -0.166, 100);
-internals.setGeolocationPermission(document, true);
-
-window.onmessage = function (messageEvent) {
- debug(messageEvent.data.message);
- success = messageEvent.data.success;
- shouldBeTrue('success');
- finishJSTest();
-}
-
-navigator.geolocation.getCurrentPosition(
- function() {
- // Kick off the iframe to request a cached position. The iframe
- // will post a message back on success / failure.
- iframe = document.createElement('iframe');
- iframe.src = 'resources/cached-position-iframe-inner.html';
- document.body.appendChild(iframe);
- });
-
-window.jsTestIsAsync = true;

Powered by Google App Engine
This is Rietveld 408576698