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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/webfont/slow-loading.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/webfont/slow-ahem-loading.cgi
diff --git a/LayoutTests/http/tests/webfont/slow-ahem-loading.cgi b/LayoutTests/http/tests/webfont/slow-ahem-loading.cgi
index bfdcd2a206245d070f809bce8befe6e7df651bc3..a6f35d1c93737629a45e36b4ded3c7c9d2138e03 100755
--- a/LayoutTests/http/tests/webfont/slow-ahem-loading.cgi
+++ b/LayoutTests/http/tests/webfont/slow-ahem-loading.cgi
@@ -1,8 +1,14 @@
#!/usr/bin/perl -wT
+use CGI;
+use Time::HiRes;
+
+my $cgi = new CGI;
+my $delay = $cgi->param('delay');
+$delay = 1000 unless $delay;
print "Content-type: application/octet-stream\n";
print "Cache-control: no-cache, no-store\n\n";
-sleep(1);
+Time::HiRes::sleep($delay / 1000);
open FH, "<../../../resources/Ahem.ttf" or die;
while (<FH>) { print; }
close FH;
« 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