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

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

Issue 679863002: Revert "Prepare blink to unify definitions of load completion" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
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 }
9 7
10 var req = new XMLHttpRequest(); 8 var req = new XMLHttpRequest();
11 req.open("GET", "resources/endlessxml.php"); 9 req.open("GET", "resources/endlessxml.php");
12 req.onerror = function () { 10 req.onerror = function () {
13 console.log("FAIL: Expected 'abort', got 'error'."); 11 console.log("FAIL: Expected 'abort', got 'error'.");
14 }; 12 };
15 req.onabort = function () { 13 req.onabort = function () {
16 console.log("PASS: Expected 'abort', got 'abort'."); 14 console.log("PASS: Expected 'abort', got 'abort'.");
17 }; 15 };
18 req.send(null); 16 req.send(null);
19 17
20 location = "resources/navigation-target.html"; 18 if (window.testRunner)
19 testRunner.queueLoad("resources/navigation-target.html");
21 </script> 20 </script>
22 </head> 21 </head>
23 <body> 22 <body>
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> 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>
25 </body> 24 </body>
26 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698