blob: 44a53db70cf329d0c7dac2b8783e1952b23abc25 [file] [log] [blame]
<html>
<body>
<p>This tests crash when copying a text without a common ancestor block. To manually test, copy "hello" below and WebKit should not crash. On DRT, you should see PASS below.</p>
<span id="test" contenteditable>hello</span>
<script type="text/javascript">
if (window.testRunner)
window.testRunner.dumpAsText();
var test = document.getElementById('test');
document.getSelection().selectAllChildren(test);
document.execCommand('copy');
test.innerHTML = 'PASS';
</script>
</body>
</html>