OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script> | 4 <script> |
5 if (window.layoutTestController) { | 5 if (window.layoutTestController) { |
6 layoutTestController.dumpAsText(); | 6 layoutTestController.dumpAsText(); |
7 layoutTestController.waitUntilDone(); | 7 layoutTestController.waitUntilDone(); |
8 } | 8 } |
9 | 9 |
10 function finish() { | 10 function finish() { |
11 if (window.layoutTestController) | 11 if (window.layoutTestController) |
12 layoutTestController.notifyDone(); | 12 layoutTestController.notifyDone(); |
13 } | 13 } |
14 | 14 |
15 function crash() { | 15 function crash() { |
16 document.body.innerHTML = "PASS. WebKit didn't crash."; | 16 document.body.innerHTML = "PASS. WebKit didn't crash."; |
17 setTimeout("finish()", 0); | 17 setTimeout("finish()", 0); |
18 } | 18 } |
19 </script> | 19 </script> |
20 <object data="a"> | 20 <object data="a"> |
21 <input autofocus="" onfocus="crash()"> | 21 <input autofocus="" onfocus="crash()"> |
22 </object> | 22 </object> |
23 </body> | 23 </body> |
24 </html> | 24 </html> |
OLD | NEW |