blob: 61b5150b4828d5e5fdbcc8bec1e97f515211e860 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<div class="explanation">
This is a layout test for <a href="rdar://problem/4370209">rdar://problem/4370209</a> "Reproducible crash when pasting over whitespace:pre text".
The text below is selected, copied, and pasted over itself. You'll see foo/nbar if successful.
</div>
<div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
<div id="test" class="editing">
<pre>foo
bar</pre>
</div>
</div>
<script src="../editing.js"></script>
<script>
function editingTest() {
selectAllCommand();
copyCommand();
pasteCommand();
}
runDumpAsTextEditingTest();
</script>
</body>
</html>