chromium/third_party/blink/web_tests/editing/selection/modify_move/move_left_character_15_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">|abc\u05D0\u05D1\u05D2123def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">|abc\u05D0\u05D1\u05D2123def</div>',
  '15-0 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">a|bc\u05D0\u05D1\u05D2123def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">|abc\u05D0\u05D1\u05D2123def</div>',
  '15-1 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">ab|c\u05D0\u05D1\u05D2123def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">a|bc\u05D0\u05D1\u05D2123def</div>',
  '15-2 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">abc|\u05D0\u05D1\u05D2123def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">ab|c\u05D0\u05D1\u05D2123def</div>',
  '15-3 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">abc\u05D0|\u05D1\u05D2123def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">abc|\u05D0\u05D1\u05D2123def</div>',
  '15-4 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">abc\u05D0\u05D1|\u05D2123def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">abc\u05D0|\u05D1\u05D2123def</div>',
  '15-5 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">abc\u05D0\u05D1\u05D2|123def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">abc\u05D0\u05D1|\u05D2123def</div>',
  '15-6 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">abc\u05D0\u05D1\u05D21|23def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">abc\u05D0\u05D1\u05D2|123def</div>',
  '15-7 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">abc\u05D0\u05D1\u05D212|3def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">abc\u05D0\u05D1\u05D21|23def</div>',
  '15-8 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">abc\u05D0\u05D1\u05D2123|def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">abc\u05D0\u05D1\u05D212|3def</div>',
  '15-9 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">abc\u05D0\u05D1\u05D2123d|ef</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">abc\u05D0\u05D1\u05D2123|def</div>',
  '15-10 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">abc\u05D0\u05D1\u05D2123de|f</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">abc\u05D0\u05D1\u05D2123d|ef</div>',
  '15-11 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">abc\u05D0\u05D1\u05D2123def|</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">abc\u05D0\u05D1\u05D2123de|f</div>',
  '15-12 ltr left character');
</script>