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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/navigation-should-abort.html

Issue 561813003: Prepare blink to unify definitions of load completion (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add document.close() to scroll-left-while-loading.html Created 6 years, 2 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 if (window.testRunner) 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
8 }
7 9
8 var req = new XMLHttpRequest(); 10 var req = new XMLHttpRequest();
9 req.open("GET", "resources/endlessxml.php"); 11 req.open("GET", "resources/endlessxml.php");
10 req.onerror = function () { 12 req.onerror = function () {
11 console.log("FAIL: Expected 'abort', got 'error'."); 13 console.log("FAIL: Expected 'abort', got 'error'.");
12 }; 14 };
13 req.onabort = function () { 15 req.onabort = function () {
14 console.log("PASS: Expected 'abort', got 'abort'."); 16 console.log("PASS: Expected 'abort', got 'abort'.");
15 }; 17 };
16 req.send(null); 18 req.send(null);
17 19
18 if (window.testRunner) 20 location = "resources/navigation-target.html";
19 testRunner.queueLoad("resources/navigation-target.html");
20 </script> 21 </script>
21 </head> 22 </head>
22 <body> 23 <body>
23 <p>This test requires TestRunner. To execute it manually, open the console, and navigate to <a href="resources/navigation-target.html">resources/navigation- target.html</a>. You should see a "PASS" message in the console.</p> 24 <p>This test requires TestRunner. To execute it manually, open the console, and navigate to <a href="resources/navigation-target.html">resources/navigation- target.html</a>. You should see a "PASS" message in the console.</p>
24 </body> 25 </body>
25 </html> 26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698