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

Side by Side Diff: LayoutTests/http/tests/incremental/doc-write-before-end.pl

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 #!/usr/bin/perl -wT 1 #!/usr/bin/perl -wT
2 2
3 # Flush STDOUT after each print. 3 # Flush STDOUT after each print.
4 select (STDOUT); 4 select (STDOUT);
5 $| = 1; 5 $| = 1;
6 6
7 print "Content-Type: text/html; charset=utf-8\n"; 7 print "Content-Type: text/html; charset=utf-8\n";
8 print "Expires: Thu, 01 Dec 2003 16:00:00 GMT\n"; 8 print "Expires: Thu, 01 Dec 2003 16:00:00 GMT\n";
9 print "Cache-Control: no-store, no-cache, must-revalidate\n"; 9 print "Cache-Control: no-store, no-cache, must-revalidate\n";
10 print "Pragma: no-cache\n"; 10 print "Pragma: no-cache\n";
11 print "\n"; 11 print "\n";
12 12
13 print "\xef\xbb\xbf<!DOCTYPE html><body>"; 13 print "\xef\xbb\xbf<!DOCTYPE html><body>";
14 print "<script>if (window.testRunner) window.testRunner.dumpAsText();</script>"; 14 print "<script>if (window.testRunner) window.testRunner.dumpAsText();</script>";
15 print "<img src='404.gif' onerror='document.write(\"PASS\"); document.close()'>" ; 15 print "<img src='404.gif' onerror='document.write(\"PASS\");'>";
16 # Dump some spaces to bypass CFNetwork buffering. 16 # Dump some spaces to bypass CFNetwork buffering.
17 for ($count = 1; $count < 4000; $count++) { 17 for ($count = 1; $count < 4000; $count++) {
18 print " "; 18 print " ";
19 } 19 }
20 20
21 # Delay to force the second line of text to be decoded as a separate chunk. 21 # Delay to force the second line of text to be decoded as a separate chunk.
22 sleep 1; 22 sleep 1;
23 print "FAIL</body>"; 23 print "FAIL</body>";
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/fouc/scroll-left-while-loading.html ('k') | LayoutTests/http/tests/local/file-url-sent-as-referer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698