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

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

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

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

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

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

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

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

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

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

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

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