<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>
