blob: 98dfe67defb823a76adb841baab5fb9ad7ffd0f1 [file] [log] [blame]
<html xmlns='http://www.w3.org/1999/xhtml'>
Test passes if it does not crash.
<form>
<input id="submit" type="submit" />
</form>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
textNode = document.createTextNode("x");
document.getElementById("submit").appendChild(textNode);
runTest = function() {
event = document.createEvent("MouseEvent");
event.initEvent("click", false, false);
textNode.dispatchEvent(event);
if (window.testRunner)
testRunner.notifyDone();
}
setTimeout(runTest, 0);
</script>
</html>