chromium/third_party/blink/web_tests/editing/selection/modify_move/move_right_word_visually_multi_space_34.html

<!doctype html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../../assert_selection.js"></script>
<script>
if (window.internals)
  internals.settings.setEditingBehavior('win');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">|abc def    hij opq</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">|abc def    hij opq</div>',
  '34-0 right word');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">a|bc def    hij opq</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">|abc def    hij opq</div>',
  '34-1 right word');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">ab|c def    hij opq</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">|abc def    hij opq</div>',
  '34-2 right word');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">abc| def    hij opq</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">|abc def    hij opq</div>',
  '34-3 right word');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">abc |def    hij opq</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">|abc def    hij opq</div>',
  '34-4 right word');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">abc d|ef    hij opq</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">abc |def    hij opq</div>',
  '34-5 right word');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">abc de|f    hij opq</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">abc |def    hij opq</div>',
  '34-6 right word');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">abc def|    hij opq</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">abc |def    hij opq</div>',
  '34-7 right word');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">abc def |   hij opq</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">abc |def    hij opq</div>',
  '34-8 right word');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">abc def  |  hij opq</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">abc |def    hij opq</div>',
  '34-9 right word');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">abc def   | hij opq</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">abc |def    hij opq</div>',
  '34-10 right word');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">abc def    |hij opq</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">abc |def    hij opq</div>',
  '34-11 right word');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">abc def    h|ij opq</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">abc def    |hij opq</div>',
  '34-12 right word');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">abc def    hi|j opq</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">abc def    |hij opq</div>',
  '34-13 right word');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">abc def    hij| opq</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">abc def    |hij opq</div>',
  '34-14 right word');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">abc def    hij |opq</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">abc def    |hij opq</div>',
  '34-15 right word');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">abc def    hij o|pq</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">abc def    hij |opq</div>',
  '34-16 right word');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">abc def    hij op|q</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">abc def    hij |opq</div>',
  '34-17 right word');

selection_test(
  '<div contenteditable dir="rtl" style="white-space:pre">abc def    hij opq|</div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="rtl" style="white-space:pre">abc def    hij |opq</div>',
  '34-18 right word');
</script>