OLD | NEW |
1 <html xmlns='http://www.w3.org/1999/xhtml'> | 1 <html xmlns='http://www.w3.org/1999/xhtml'> |
2 Test passes if it does not crash. | 2 Test passes if it does not crash. |
3 <form> | 3 <form> |
4 <input id="submit" type="submit" /> | 4 <input id="submit" type="submit" /> |
5 </form> | 5 </form> |
6 <script> | 6 <script> |
7 if (window.layoutTestController) { | 7 if (window.layoutTestController) { |
8 layoutTestController.dumpAsText(); | 8 layoutTestController.dumpAsText(); |
9 layoutTestController.waitUntilDone(); | 9 layoutTestController.waitUntilDone(); |
10 } | 10 } |
11 | 11 |
12 textNode = document.createTextNode("x"); | 12 textNode = document.createTextNode("x"); |
13 document.getElementById("submit").appendChild(textNode); | 13 document.getElementById("submit").appendChild(textNode); |
14 | 14 |
15 runTest = function() { | 15 runTest = function() { |
16 event = document.createEvent("MouseEvent"); | 16 event = document.createEvent("MouseEvent"); |
17 event.initEvent("click"); | 17 event.initEvent("click"); |
18 textNode.dispatchEvent(event); | 18 textNode.dispatchEvent(event); |
19 if (window.layoutTestController) | 19 if (window.layoutTestController) |
20 layoutTestController.notifyDone(); | 20 layoutTestController.notifyDone(); |
21 } | 21 } |
22 | 22 |
23 setTimeout(runTest, 0); | 23 setTimeout(runTest, 0); |
24 </script> | 24 </script> |
25 </html> | 25 </html> |
OLD | NEW |