chromium/third_party/blink/web_tests/editing/selection/modify_move/move_left_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', 'left', 'character'),
  '<div contenteditable dir="rtl"><span>a|bc</span>\u05D0\u05D1\u05D2def</div>',
  '11-0 rtl left character');

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

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

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

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

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

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

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

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

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

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

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