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

Side by Side Diff: LayoutTests/http/tests/webfont/slow-ahem-loading.cgi

Issue 171823002: Make text visible when font loading takes longer than 3 seconds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/http/tests/webfont/slow-loading.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 use CGI;
3 use Time::HiRes;
4
5 my $cgi = new CGI;
6 my $delay = $cgi->param('delay');
7 $delay = 1000 unless $delay;
2 8
3 print "Content-type: application/octet-stream\n"; 9 print "Content-type: application/octet-stream\n";
4 print "Cache-control: no-cache, no-store\n\n"; 10 print "Cache-control: no-cache, no-store\n\n";
5 sleep(1); 11 Time::HiRes::sleep($delay / 1000);
6 open FH, "<../../../resources/Ahem.ttf" or die; 12 open FH, "<../../../resources/Ahem.ttf" or die;
7 while (<FH>) { print; } 13 while (<FH>) { print; }
8 close FH; 14 close FH;
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/webfont/slow-loading.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698