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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/remove-remote-context-in-error-callback-crash-inner.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/remove-remote-context-in-error-callback-crash-inner.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/remove-remote-context-in-error-callback-crash-inner.html b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/remove-remote-context-in-error-callback-crash-inner.html
index 73f52187a39c15cee6c6fa09f70b00c4630bca63..a7294ae47b1f50e9c43ebb215d18da7725391c46 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/remove-remote-context-in-error-callback-crash-inner.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/remove-remote-context-in-error-callback-crash-inner.html
@@ -1,14 +1,17 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
+ <script src="../../../../resources/mojo-helpers.js"></script>
+ <script src="geolocation-mock.js"></script>
<script>
function init() {
- if (!window.testRunner || !window.internals)
- debug('This test can not run without testRunner or internals');
+ if (!window.testRunner || !window.mojo)
+ debug('This test can not run without testRunner or mojo');
- internals.setGeolocationClientMock(document);
- internals.setGeolocationPermission(document, false);
- window.parent.onIframeReady()
+ geolocationServiceMock.then(mock => {
+ mock.setGeolocationPermission(false);
+ window.parent.onIframeReady()
+ });
}
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698