chromium/third_party/blink/web_tests/editing/selection/modify_move/move_right_character_01_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</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl">|abc</div>',
  '1-0 rtl right character');

selection_test(
  '<div contenteditable dir="rtl">a|bc</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl">|abc</div>',
  '1-1 rtl right character');

selection_test(
  '<div contenteditable dir="rtl">ab|c</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl">a|bc</div>',
  '1-2 rtl right character');

selection_test(
  '<div contenteditable dir="rtl">abc|</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl">ab|c</div>',
  '1-3 rtl right character');
</script>