blob: fdb568eb61d22c387507f559cb1c51dc47c2f83a [file] [log] [blame]
<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
// This places the caret before the 'T' in 'Two' and Deletes. 'One' and 'Two'
// should be merged but the blocks containing 'Three' and 'Four' should remain
// untouched.
selection_test(
[
'<div contenteditable>',
'<div style="border: 3px solid red;">One</div>',
'<div style="border: 3px solid green;">',
'|Two',
'<div style="border: 3px solid black;">Three</div>',
'Four',
'</div>',
'</div>',
],
'Delete',
[
'<div contenteditable>',
'<div style="border: 3px solid red;">One|Two</div>',
'<div style="border: 3px solid green;">',
'<div style="border: 3px solid black;">Three</div>',
'Four',
'</div>',
'</div>',
]);
</script>