Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / navigation / resources / slow-resource.pl
1 #!/usr/bin/perl -wT
2
3 use strict;
4 use CGI;
5 use Time::HiRes qw(sleep);
6
7 my $cgi = new CGI;
8 my $delay = $cgi->param('delay');
9 $delay = 5000 unless $delay;
10
11 # flush the buffers after each print
12 select (STDOUT);
13 $| = 1;
14
15 print "Content-Type: text/plain\n";
16 print "Expires: Thu, 01 Dec 2003 16:00:00 GMT\n";
17 print "Cache-Control: no-store, no-cache, must-revalidate\n";
18 print "Pragma: no-cache\n";
19 print "\n";
20
21 print "Test page for back/forward list that takes awhile to\n";
22 sleep $delay / 1000;
23 print "Finish loading\n";
24