blob: f68b643bc234aff34815978fa4d99a196348d9b7 [file] [log] [blame]
<html>
<head>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
selectAllCommand();
copyCommand();
pasteCommand();
}
</script>
<title>Editing Test</title>
</head>
<body>
<div>
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>
runEditingTest();
</script>
</body>
</html>