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

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 # This script outputs a broken transfer-encoded response. In order to deliver
4 # didReceiveResponse to the client (i.e. XHR), we send a small valid chunk
5 # first, wait a while and then send an invalid chunk.
6
3 use IO::Socket; 7 use IO::Socket;
4 8
5 $| = 1; 9 $| = 1;
6 10
7 autoflush STDOUT 1; 11 autoflush STDOUT 1;
8 12
9 print "Content-Type: text/html; charset=us-ascii\n"; 13 print "Content-Type: text/html; charset=us-ascii\n";
14 print "X-Content-Type-Options: nosniff\n";
10 print "Transfer-encoding: chunked\n\n"; 15 print "Transfer-encoding: chunked\n\n";
11 16
17 print "5\nhello\n";
12 sleep 2; 18 sleep 2;
13 19
14 print "hoge\nfuga\n"; 20 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