blob: 5ea7c0b74e6766ebe747a2aaa034edf36f4f0761 [file] [log] [blame]
<body>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=30150">bug 30150</a> Crash when accessing clipboardData.types</p>
<p>PASS if didn't crash.</p>
<div contenteditable id=d>Test</div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
document.body.addEventListener("paste", function(e){ e.clipboardData.types }, true);
document.getElementById("d").focus();
document.execCommand("SelectAll");
document.execCommand("Cut");
document.execCommand("Paste");
</script>
</body>