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

Side by Side Diff: LayoutTests/security/block-test-no-port.html

Issue 673603002: Reland: Make the HTMLDocumentParser yield more aggressively (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased 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 <html> 1 <html>
2 <script> 2 <script>
3 var baseURL = "255.255.255.255"; 3 var baseURL = "255.255.255.255";
4 var currentPort = 0; 4 var currentPort = 0;
5 5
6 if (window.testRunner) { 6 if (window.testRunner) {
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 testRunner.dumpResourceLoadCallbacks(); 8 testRunner.dumpResourceLoadCallbacks();
9 } 9 }
10 10
11 function finishTesting() { 11 function finishTesting() {
12 if (window.testRunner) { 12 if (window.testRunner) {
13 testRunner.dumpAsText(); 13 testRunner.dumpAsText();
14 setTimeout("testRunner.notifyDone()", 0); 14 setTimeout("testRunner.notifyDone()", 0);
15 } 15 }
16 } 16 }
17
18 onload = function() {
19 document.querySelector("#testIMG").src = "http://255.255.255.255/test.jp g";
20 }
17 </script> 21 </script>
18 <body> 22 <body>
19 <p>This test attempts to change the src of an IMG tag to a blocked IP with no po rt to confirm that WebKit returns the correct error for it - blocked instead of cannot find. Due to the nature of this test, the results can only be processed a utomatically via DumpRenderTree. In addition, on some systems the results may de pend on the behavior of the proxy. 23 <p>This test attempts to change the src of an IMG tag to a blocked IP with no po rt to confirm that WebKit returns the correct error for it - blocked instead of cannot find. Due to the nature of this test, the results can only be processed a utomatically via DumpRenderTree. In addition, on some systems the results may de pend on the behavior of the proxy.
20 </p> 24 </p>
21 <img id="testIMG" src="http://255.255.255.255/test.jpg" onError="finishTesting() ;"></img> 25 <img id="testIMG" onError="finishTesting();"></img>
22 </body> 26 </body>
23 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698