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

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

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

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

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

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

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