blob: b9fcf4f0c428c95fe9cd69c89529fbeaf555a213 [file] [log] [blame]
<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
selection_test(
[
'<div contenteditable>',
'ab',
'<table contenteditable="false"><tbody><tr><td>',
'<div style="display:inline-block;">',
'<span>CD</span><span contenteditable="plaintext-only">e|f</span>',
'</div>',
'</td></tr></tbody></table>',
'gh',
'</div>',
],
selection => selection.modify('move', 'backward', 'lineboundary'),
[
'<div contenteditable>',
'ab|',
'<table contenteditable="false"><tbody><tr><td>',
'<div style="display:inline-block;">',
'<span>CD</span><span contenteditable="plaintext-only">ef</span>',
'</div>',
'</td></tr></tbody></table>',
'gh',
'</div>',
],
'Home key moves caret crossing over editing boundaries');
</script>