blob: a3ff23866863c175c68803cd3102672033a9e044 [file] [log] [blame]
<html>
<head>
<style>
.editing {
border: 2px solid red;
font-size: 24px;
}
.explanation {
border: 2px solid blue;
padding: 12px;
font-size: 24px;
margin-bottom: 24px;
}
.scenario { margin-bottom: 16px;}
.scenario:first-line { font-weight: bold; margin-bottom: 16px;}
.expected-results:first-line { font-weight: bold }
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
for (i = 0; i < 3; i++)
extendSelectionForwardByLineCommand();
copyCommand();
pasteCommand();
}
</script>
<title>Editing Test</title>
</head>
<body>
<div class="explanation">
<div class="scenario">
Tests:
<br>
Bug fix for <a href="rdar://problem/4039777">&lt;rdar://problem/4039777&gt;</a> Pasting particular snippet of HTML containing list items and a link creates too many list items
</div>
<div class="expected-results">
Expected Results:
<br>
Should match:
<BR>
<ul style="text-align:right;"><li>A</li></ul>
<div>
<ul>
<li>
<a href="">B</a>
<br>
C
</li>
</ul>
</div>
</div>
</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">
<ul style="text-align:right;"><li>A</li></ul>
<div>
<ul>
<li>
<a href="">B</a>
<br>
C
</li>
</ul>
</div>
</div>
</div>
<script>
runEditingTest();
</script>
</body>
</html>