3 # flush the buffers after each print
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";
13 print "\xef\xbb\xbf<body><p>Bug 21381: Incremental parsing of html causes bogus line numbers in some cases</p>\n";
14 print "<p>This tests that the line numbers associated with a script element are correct, even when parsing is ";
15 print "interrupted mid way through the script element</p>\n";
16 print "<pre id=log></pre>\n";
18 print "if (window.layoutTestController)\n";
19 print " layoutTestController.dumpAsText();\n";
20 for ($count=1; $count<4000; $count++) {
23 print "try { unknownFunction(); } catch(e) { \n";
24 print "if (e.line != 4006)\n";
25 print " document.getElementById('log').innerText = 'FAIL: Got ' + e.line + ' expected 4006';\n";
27 print " document.getElementById('log').innerText = 'PASS: Got ' + e.line;\n";