chromium/third_party/blink/web_tests/editing/selection/modify_move/move_right_word_visually_single_space_inline_element_1.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="ltr">|אאא <span>בב</span></div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="ltr">\u05D0\u05D0\u05D0 |<span>\u05D1\u05D1</span></div>',
  '1-0 right word');

selection_test(
  '<div contenteditable dir="ltr">א|אא <span>בב</span></div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="ltr">\u05D0\u05D0\u05D0 |<span>\u05D1\u05D1</span></div>',
  '1-1 right word');

selection_test(
  '<div contenteditable dir="ltr">אא|א <span>בב</span></div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="ltr">\u05D0\u05D0\u05D0 |<span>\u05D1\u05D1</span></div>',
  '1-2 right word');

selection_test(
  '<div contenteditable dir="ltr">אאא| <span>בב</span></div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="ltr">אאא |<span>בב</span></div>',
  '1-3 right word');

selection_test(
  '<div contenteditable dir="ltr">אאא |<span>בב</span></div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="ltr">\u05D0\u05D0\u05D0 <span>\u05D1\u05D1|</span></div>',
  '1-4 right word');

selection_test(
  '<div contenteditable dir="ltr">אאא <span>|בב</span></div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="ltr">\u05D0\u05D0\u05D0 <span>\u05D1\u05D1|</span></div>',
  '1-5 right word');

selection_test(
  '<div contenteditable dir="ltr">אאא <span>ב|ב</span></div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="ltr">\u05D0\u05D0\u05D0 <span>\u05D1\u05D1|</span></div>',
  '1-6 right word');

selection_test(
  '<div contenteditable dir="ltr">אאא <span>בב|</span></div>',
  selection => selection.modify('move', 'right', 'word'),
  '<div contenteditable dir="ltr">אאא <span>בב|</span></div>',
  '1-7 right word');
</script>