chromium/third_party/blink/web_tests/editing/selection/modify_move/move_left_character_13_rtl.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="rtl">|abc\u05D0\u05D1\u05D2123\u05D3\u05D4\u05D5def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="rtl">a|bc\u05D0\u05D1\u05D2123\u05D3\u05D4\u05D5def</div>',
  '13-0 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">a|bc\u05D0\u05D1\u05D2123\u05D3\u05D4\u05D5def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="rtl">ab|c\u05D0\u05D1\u05D2123\u05D3\u05D4\u05D5def</div>',
  '13-1 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">ab|c\u05D0\u05D1\u05D2123\u05D3\u05D4\u05D5def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="rtl">abc|\u05D0\u05D1\u05D2123\u05D3\u05D4\u05D5def</div>',
  '13-2 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">abc|\u05D0\u05D1\u05D2123\u05D3\u05D4\u05D5def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="rtl">abc\u05D0|\u05D1\u05D2123\u05D3\u05D4\u05D5def</div>',
  '13-3 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">abc\u05D0|\u05D1\u05D2123\u05D3\u05D4\u05D5def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="rtl">abc\u05D0\u05D1|\u05D2123\u05D3\u05D4\u05D5def</div>',
  '13-4 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">abc\u05D0\u05D1|\u05D2123\u05D3\u05D4\u05D5def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D2|123\u05D3\u05D4\u05D5def</div>',
  '13-5 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D2|123\u05D3\u05D4\u05D5def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D21|23\u05D3\u05D4\u05D5def</div>',
  '13-6 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D21|23\u05D3\u05D4\u05D5def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D212|3\u05D3\u05D4\u05D5def</div>',
  '13-7 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D212|3\u05D3\u05D4\u05D5def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D2123|\u05D3\u05D4\u05D5def</div>',
  '13-8 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D2123|\u05D3\u05D4\u05D5def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D2123\u05D3|\u05D4\u05D5def</div>',
  '13-9 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D2123\u05D3|\u05D4\u05D5def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D2123\u05D3\u05D4|\u05D5def</div>',
  '13-10 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D2123\u05D3\u05D4|\u05D5def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D2123\u05D3\u05D4\u05D5|def</div>',
  '13-11 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D2123\u05D3\u05D4\u05D5|def</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D2123\u05D3\u05D4\u05D5d|ef</div>',
  '13-12 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D2123\u05D3\u05D4\u05D5d|ef</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D2123\u05D3\u05D4\u05D5de|f</div>',
  '13-13 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D2123\u05D3\u05D4\u05D5de|f</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D2123\u05D3\u05D4\u05D5def|</div>',
  '13-14 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D2123\u05D3\u05D4\u05D5def|</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="rtl">abc\u05D0\u05D1\u05D2123\u05D3\u05D4\u05D5def|</div>',
  '13-15 rtl left character');
</script>