blob: 867f8f141a1e898100d8e6f1ef0c7c52004c99c8 [file] [log] [blame]
<html>
<head>
<style>
blockquote {
margin: 0px;
padding-left: 20px;
border-left: 1px solid black;
}
</style>
</head>
<body>
<div id="description">This tests for a bug where copying a word in indented text and then pasting it into indented text would create an extraneous line break. You should see "hello world" below, all in one indented paragraph.</div>
<div id="edit" contentEditable="true"><blockquote id="blockquote" class="webkit-indent-blockquote">hd</blockquote></div>
<script>
if (window.testRunner)
window.testRunner.dumpAsText();
blockquote = document.getElementById("blockquote");
text = blockquote.firstChild;
window.getSelection().setPosition(text, 1);
document.execCommand("InsertHTML", false, "ello worl");
if (window.testRunner)
document.body.innerText = document.getElementById("description").innerText + "\n" + document.getElementById("edit").innerHTML;
</script>
</body>
</html>