chromium/third_party/blink/web_tests/editing/selection/modify_move/move_right_character_11_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">|<span>abc</span>\u05D0\u05D1\u05D2def</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl">|<span>abc</span>\u05D0\u05D1\u05D2def</div>',
  '11-0 rtl right character');

selection_test(
  '<div contenteditable dir="rtl"><span>|abc</span>\u05D0\u05D1\u05D2def</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl"><span>|abc</span>\u05D0\u05D1\u05D2def</div>',
  '11-1 rtl right character');

selection_test(
  '<div contenteditable dir="rtl"><span>a|bc</span>\u05D0\u05D1\u05D2def</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl"><span>|abc</span>\u05D0\u05D1\u05D2def</div>',
  '11-2 rtl right character');

selection_test(
  '<div contenteditable dir="rtl"><span>ab|c</span>\u05D0\u05D1\u05D2def</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl"><span>a|bc</span>\u05D0\u05D1\u05D2def</div>',
  '11-3 rtl right character');

selection_test(
  '<div contenteditable dir="rtl"><span>abc|</span>\u05D0\u05D1\u05D2def</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl"><span>ab|c</span>\u05D0\u05D1\u05D2def</div>',
  '11-4 rtl right character');

selection_test(
  '<div contenteditable dir="rtl"><span>abc</span>|\u05D0\u05D1\u05D2def</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl"><span>ab|c</span>\u05D0\u05D1\u05D2def</div>',
  '11-5 rtl right character');

selection_test(
  '<div contenteditable dir="rtl"><span>abc</span>\u05D0|\u05D1\u05D2def</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl"><span>abc|</span>\u05D0\u05D1\u05D2def</div>',
  '11-6 rtl right character');

selection_test(
  '<div contenteditable dir="rtl"><span>abc</span>\u05D0\u05D1|\u05D2def</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl"><span>abc</span>\u05D0|\u05D1\u05D2def</div>',
  '11-7 rtl right character');

selection_test(
  '<div contenteditable dir="rtl"><span>abc</span>\u05D0\u05D1\u05D2|def</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl"><span>abc</span>\u05D0\u05D1|\u05D2def</div>',
  '11-8 rtl right character');

selection_test(
  '<div contenteditable dir="rtl"><span>abc</span>\u05D0\u05D1\u05D2d|ef</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl"><span>abc</span>\u05D0\u05D1\u05D2|def</div>',
  '11-9 rtl right character');

selection_test(
  '<div contenteditable dir="rtl"><span>abc</span>\u05D0\u05D1\u05D2de|f</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl"><span>abc</span>\u05D0\u05D1\u05D2d|ef</div>',
  '11-10 rtl right character');

selection_test(
  '<div contenteditable dir="rtl"><span>abc</span>\u05D0\u05D1\u05D2def|</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="rtl"><span>abc</span>\u05D0\u05D1\u05D2de|f</div>',
  '11-11 rtl right character');
</script>