| # 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 |
| print "Refresh: 0;url=data:text/html,<body onload='if (window.layoutTestController) layoutTestController.notifyDone();'>You should have seen an alert.\r\n"; |
| print "Content-Type: text/html\r\n"; |
| if (window.layoutTestController) { |
| layoutTestController.dumpAsText(); |
| layoutTestController.waitUntilDone(); |
| <meta http-equiv="refresh" content="0;url=data:text/html,%3Cbody%20onload='if(window.layoutTestController)layoutTestController.notifyDone();'%3EYou%20should%20have%20seen%20an%20alert."> |
| for ($count=1; $count<20000; $count++) { |
| <body onload="alert('SUCCESS');"> |