chromium/third_party/blink/web_tests/editing/selection/modify_move/move_left_character_41_ltr.html

<!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 dir="ltr" style="white-space: pre;">|abc<!-- -->\n<!-- -->def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="white-space: pre;">|abc \n def</div>',
  '41-0 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" style="white-space: pre;">a|bc<!-- -->\n<!-- -->def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="white-space: pre;">|abc \n def</div>',
  '41-1 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" style="white-space: pre;">ab|c<!-- -->\n<!-- -->def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="white-space: pre;">a|bc \n def</div>',
  '41-2 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" style="white-space: pre;">abc|<!-- -->\n<!-- -->def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="white-space: pre;">ab|c \n def</div>',
  '41-3 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" style="white-space: pre;">abc<!-- -->|\n<!-- -->def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="white-space: pre;">ab|c \n def</div>',
  '41-4 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" style="white-space: pre;">abc<!-- -->\n|<!-- -->def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="white-space: pre;">abc| \n def</div>',
  '41-5 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" style="white-space: pre;">abc<!-- -->\n<!-- -->|def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="white-space: pre;">abc| \n def</div>',
  '41-6 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" style="white-space: pre;">abc<!-- -->\n<!-- -->d|ef</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="white-space: pre;">abc \n |def</div>',
  '41-7 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" style="white-space: pre;">abc<!-- -->\n<!-- -->de|f</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="white-space: pre;">abc \n d|ef</div>',
  '41-8 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" style="white-space: pre;">abc<!-- -->\n<!-- -->def|</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="white-space: pre;">abc \n de|f</div>',
  '41-9 ltr left character');
</script>