blob: 1f2ccb2f6096f4314d9b2a79b3043e50a7558df3 [file] [log] [blame]
#!/usr/bin/perl
# http://trac.webkit.org/projects/webkit/changeset/7800
# rdar://problem/3829452 REGRESSION (156-157): onload handler doesn't run on page with meta refresh of 0 duration (new Apple start page)
# flush the buffers after each print
select (STDOUT);
$| = 1;
print "Refresh: 0;url=data:text/plain,You should have seen an alert.\r\n";
print "Content-Type: text/html\r\n";
print "\r\n";
print << "EOF";
<html>
<head>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
</script>
<meta http-equiv="refresh" content="0;url=data:text/plain,You should have seen an alert.">
</head>
EOF
for ($count=1; $count<20000; $count++) {
print " \n";
}
print << "EOF";
<body onload="if (window.layoutTestController) document.write('<p>SUCCESS</p>'); else alert('SUCCESS');">
</body>
</html>
EOF