chromium/third_party/blink/web_tests/editing/selection/modify_move/move_left_word_visually_single_space_one_element_4.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">|ששש נננ בבב גגג קקק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">ששש |נננ בבב גגג קקק</div>',
  '4-0 left word');

selection_test(
  '<div contenteditable dir="rtl">ש|שש נננ בבב גגג קקק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">ששש |נננ בבב גגג קקק</div>',
  '4-1 left word');

selection_test(
  '<div contenteditable dir="rtl">שש|ש נננ בבב גגג קקק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">ששש |נננ בבב גגג קקק</div>',
  '4-2 left word');

selection_test(
  '<div contenteditable dir="rtl">ששש| נננ בבב גגג קקק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">\u05E9\u05E9\u05E9 |\u05E0\u05E0\u05E0 \u05D1\u05D1\u05D1 \u05D2\u05D2\u05D2 \u05E7\u05E7\u05E7</div>',
  '4-3 left word');

selection_test(
  '<div contenteditable dir="rtl">ששש |נננ בבב גגג קקק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">ששש נננ |בבב גגג קקק</div>',
  '4-4 left word');

selection_test(
  '<div contenteditable dir="rtl">ששש נ|ננ בבב גגג קקק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">ששש נננ |בבב גגג קקק</div>',
  '4-5 left word');

selection_test(
  '<div contenteditable dir="rtl">ששש ננ|נ בבב גגג קקק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">ששש נננ |בבב גגג קקק</div>',
  '4-6 left word');

selection_test(
  '<div contenteditable dir="rtl">ששש נננ| בבב גגג קקק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">\u05E9\u05E9\u05E9 \u05E0\u05E0\u05E0 |\u05D1\u05D1\u05D1 \u05D2\u05D2\u05D2 \u05E7\u05E7\u05E7</div>',
  '4-7 left word');

selection_test(
  '<div contenteditable dir="rtl">ששש נננ |בבב גגג קקק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">ששש נננ בבב |גגג קקק</div>',
  '4-8 left word');

selection_test(
  '<div contenteditable dir="rtl">ששש נננ ב|בב גגג קקק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">ששש נננ בבב |גגג קקק</div>',
  '4-9 left word');

selection_test(
  '<div contenteditable dir="rtl">ששש נננ בב|ב גגג קקק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">ששש נננ בבב |גגג קקק</div>',
  '4-10 left word');

selection_test(
  '<div contenteditable dir="rtl">ששש נננ בבב| גגג קקק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">\u05E9\u05E9\u05E9 \u05E0\u05E0\u05E0 \u05D1\u05D1\u05D1 |\u05D2\u05D2\u05D2 \u05E7\u05E7\u05E7</div>',
  '4-11 left word');

selection_test(
  '<div contenteditable dir="rtl">ששש נננ בבב |גגג קקק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">ששש נננ בבב גגג |קקק</div>',
  '4-12 left word');

selection_test(
  '<div contenteditable dir="rtl">ששש נננ בבב ג|גג קקק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">ששש נננ בבב גגג |קקק</div>',
  '4-13 left word');

selection_test(
  '<div contenteditable dir="rtl">ששש נננ בבב גג|ג קקק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">ששש נננ בבב גגג |קקק</div>',
  '4-14 left word');

selection_test(
  '<div contenteditable dir="rtl">ששש נננ בבב גגג| קקק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">\u05E9\u05E9\u05E9 \u05E0\u05E0\u05E0 \u05D1\u05D1\u05D1 \u05D2\u05D2\u05D2 |\u05E7\u05E7\u05E7</div>',
  '4-15 left word');

selection_test(
  '<div contenteditable dir="rtl">ששש נננ בבב גגג |קקק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">ששש נננ בבב גגג קקק|</div>',
  '4-16 left word');

selection_test(
  '<div contenteditable dir="rtl">ששש נננ בבב גגג ק|קק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">ששש נננ בבב גגג קקק|</div>',
  '4-17 left word');

selection_test(
  '<div contenteditable dir="rtl">ששש נננ בבב גגג קק|ק</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">ששש נננ בבב גגג קקק|</div>',
  '4-18 left word');

selection_test(
  '<div contenteditable dir="rtl">ששש נננ בבב גגג קקק|</div>',
  selection => selection.modify('move', 'left', 'word'),
  '<div contenteditable dir="rtl">ששש נננ בבב גגג קקק|</div>',
  '4-19 left word');
</script>