Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / form-submission-create-crash.xhtml
blobc0d6b8da0d89f5591c92b132056fec5618867866
1 <html xmlns='http://www.w3.org/1999/xhtml'>
2 Test passes if it does not crash.
3 <form>
4 <input id="submit" type="submit" />
5 </form>
6 <script>
7 if (window.testRunner) {
8 testRunner.dumpAsText();
9 testRunner.waitUntilDone();
12 textNode = document.createTextNode("x");
13 document.getElementById("submit").appendChild(textNode);
15 runTest = function() {
16 event = document.createEvent("MouseEvent");
17 event.initEvent("click");
18 textNode.dispatchEvent(event);
19 if (window.testRunner)
20 testRunner.notifyDone();
23 setTimeout(runTest, 0);
24 </script>
25 </html>