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/resources/slow-failure.cgi

Issue 1181973005: [XHR] Fix a XHR-stream test script. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « LayoutTests/http/tests/xmlhttprequest/resources/response-stream-orphaned-promise.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/perl 1 #!/usr/bin/perl
2 2
3 use IO::Socket; 3 use IO::Socket;
4 4
5 $| = 1; 5 $| = 1;
6 6
7 autoflush STDOUT 1; 7 autoflush STDOUT 1;
8 8
hiroshige 2015/06/18 08:49:28 Please add comments describing expected behavior (
yhirano 2015/06/18 11:18:07 Done.
9 print "Content-Type: text/html; charset=us-ascii\n"; 9 print "Content-Type: text/html; charset=us-ascii\n";
10 print "X-Content-Type-Options: nosniff\n";
hiroshige 2015/06/18 08:49:28 How "X-Content-Type-Options: nosniff" header works
yhirano 2015/06/18 11:18:07 I add this option just in case, because Chrome may
10 print "Transfer-encoding: chunked\n\n"; 11 print "Transfer-encoding: chunked\n\n";
11 12
13 print "5\nhello\n";
12 sleep 2; 14 sleep 2;
13 15
14 print "hoge\nfuga\n"; 16 print "hoge\nfuga\n";
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/xmlhttprequest/resources/response-stream-orphaned-promise.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698