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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/callback-to-remote-context2.js

Issue 2667393002: Stop using script-tests in 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 description("Tests that when a Geolocation request is made from a remote frame, and the JavaScript call chain starts from that remote frame, callbacks are made as usual.");
2
3 function onIframeReady() {
4 // Make request from remote frame, with call chain starting here
5 window.setTimeout(function() {
6 iframe.contentWindow.navigator.geolocation.getCurrentPosition(function() {
7 testPassed('Success callback invoked');
8 finishJSTest();
9 }, function() {
10 testFailed('Error callback invoked unexpectedly');
11 finishJSTest();
12 });
13 }, 0);
14 }
15
16 var iframe = document.createElement('iframe');
17 iframe.src = 'resources/callback-to-remote-context-inner.html';
18 document.body.appendChild(iframe);
19
20 window.jsTestIsAsync = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698