chromium/third_party/blink/web_tests/editing/selection/modify_move/move_right_character_09_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">|\u0661\u0662\u0663\u0627\u0628\u0629</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl">|\u0661\u0662\u0663\u0627\u0628\u0629</div>',
  '9-0 rtl right character');

selection_test(
  '<div contenteditable dir="rtl">\u0661|\u0662\u0663\u0627\u0628\u0629</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl">|\u0661\u0662\u0663\u0627\u0628\u0629</div>',
  '9-1 rtl right character');

selection_test(
  '<div contenteditable dir="rtl">\u0661\u0662|\u0663\u0627\u0628\u0629</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl">\u0661|\u0662\u0663\u0627\u0628\u0629</div>',
  '9-2 rtl right character');

selection_test(
  '<div contenteditable dir="rtl">\u0661\u0662\u0663|\u0627\u0628\u0629</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl">\u0661\u0662|\u0663\u0627\u0628\u0629</div>',
  '9-3 rtl right character');

selection_test(
  '<div contenteditable dir="rtl">\u0661\u0662\u0663\u0627|\u0628\u0629</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl">\u0661\u0662\u0663|\u0627\u0628\u0629</div>',
  '9-4 rtl right character');

selection_test(
  '<div contenteditable dir="rtl">\u0661\u0662\u0663\u0627\u0628|\u0629</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl">\u0661\u0662\u0663\u0627|\u0628\u0629</div>',
  '9-5 rtl right character');

selection_test(
  '<div contenteditable dir="rtl">\u0661\u0662\u0663\u0627\u0628\u0629|</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl">\u0661\u0662\u0663\u0627\u0628|\u0629</div>',
  '9-6 rtl right character');
</script>