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> |