2fd50d03958c3ee164d797f1008d28bd13172aa7
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / incremental / slow-utf8-html.pl
1 #!/usr/bin/perl -wT
2
3 # flush the buffers after each print
4 select (STDOUT);
5 $| = 1;
6
7 print "Content-Type: text/html\n";
8 print "Expires: Thu, 01 Dec 2003 16:00:00 GMT\n";
9 print "Cache-Control: no-store, no-cache, must-revalidate\n";
10 print "Pragma: no-cache\n";
11 print "\n";
12
13 print "\xef\xbb\xbf<body><p>Test for bug 10697: Errors in incremental decoding of UTF-8.</p>\n";
14 print "<p>Should be a blank page (except for this description).</p>\n";
15 print "<script>\n";
16 print "if (window.testRunner)\n";
17 print " testRunner.dumpAsText();\n";
18 print "</script>\n";
19
20 # U+2003 = UTF-8 E28083 = EM SPACE
21 print "\xe2";
22 for ($count=1; $count<4000; $count++) {
23     print "\x80\x83\xe2";
24 }
25 print "\x80";
26 for ($count=1; $count<4000; $count++) {
27     print "\x83\xe2\x80";
28 }
29 print "\x83";