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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/interactive-state.cgi

Issue 1484743002: [XHR] Fix interactive-state.html layout test for the new ProgressEvent throttling algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed sleep to 1 sec Created 5 years 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 | « no previous file | third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/interactive-state.html » ('j') | 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 -wT 1 #!/usr/bin/perl -wT
2 2
3 use Time::HiRes;
4
3 # flush the buffers after each print 5 # flush the buffers after each print
4 select (STDOUT); 6 select (STDOUT);
5 $| = 1; 7 $| = 1;
6 8
7 print "Content-Type: text/html\n\n"; 9 print "Content-Type: text/html\n\n";
8 10
9 for ($count=1; $count<3000; $count++) { 11 sub sendChunk() {
10 print "&#x0020;&#x0020; &#x0020;&#x0020;&#x0020;&#x0020;&#x20;&#x0020;&#x002 0;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020; "; 12 print "&#x0020;&#x0020; &#x0020;&#x0020;&#x0020;&#x0020;&#x20;&#x0020;&#x002 0;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020; ";
11 print "&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x00 20;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020; "; 13 print "&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x00 20;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020; ";
12 print "&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020; &#x0020;&#x0 020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020; "; 14 print "&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020; &#x0020;&#x0 020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020; ";
13 print "&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x00 20;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020; "; 15 print "&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x00 20;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020; ";
14 print "&#x0020;&#x0020;&#x0020;&#x0020;&#x020;&#x0020;&#x0020;&#x0020;&#x002 0;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020; "; 16 print "&#x0020;&#x0020;&#x0020;&#x0020;&#x020;&#x0020;&#x0020;&#x0020;&#x002 0;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020; ";
15 print "&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x020;&#x002 0;&#x0020;&#x0020;&#x020;&#x0020;&#x0020;&#x0020;"; 17 print "&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x020;&#x002 0;&#x0020;&#x0020;&#x020;&#x0020;&#x0020;&#x0020;";
16 print "&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x20;&#x0020;&#x0020 ;&#x0020; &#x0020;&#x0020;&#x0020;&#x0020;&#x0020; "; 18 print "&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x20;&#x0020;&#x0020 ;&#x0020; &#x0020;&#x0020;&#x0020;&#x0020;&#x0020; ";
17 print "&#x0020;&#x0020;&#x0020; &#x20; &#x0020;&#x0020;&#x0020;&#x0020;&#x00 20;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020; "; 19 print "&#x0020;&#x0020;&#x0020; &#x20; &#x0020;&#x0020;&#x0020;&#x0020;&#x00 20;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020;&#x0020; ";
18 } 20 }
21
22 sendChunk();
23 # Delay for 1 s which should be long enough to exit the 50 ms slot of XHR's
24 # ProgressEvent throttle (very long considering slow builds).
25 Time::HiRes::sleep(1);
26 sendChunk();
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/interactive-state.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698