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

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

Issue 2671933003: Move Geolocation out from fast/dom. (Closed)
Patch Set: . Created 3 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script>
5 function makeGeolocationRequest() {
6 var parent = window.parent;
7
8
9 // Make request from remote frame, this frame will be gone by the time the Geolocation
10 // object attempts to invoke the callback.
11 window.parent.navigator.geolocation.getCurrentPosition(function() {
12 parent.testPassed('Success callback invoked');
13 parent.finishJSTest();
14 }, function() {
15 parent.testFailed('Error callback invoked unexpectedly');
16 parent.finishJSTest();
17 });
18 }
19 </script>
20 </head>
21 <body onload="window.parent.onFirstIframeLoaded()", onunload="makeGeolocationR equest()">
22 <p>This frame should be replaced before the test ends</p>
23 </body>
24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698