| <!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">|aaa <span>bbb אאא </span>ווש</div>', |
| selection => selection.modify('move', 'left', 'word'), |
| '<div contenteditable dir="ltr">|aaa <span>bbb אאא </span>ווש</div>', |
| '19-0 left word'); |
| |
| selection_test( |
| '<div contenteditable dir="ltr">a|aa <span>bbb אאא </span>ווש</div>', |
| selection => selection.modify('move', 'left', 'word'), |
| '<div contenteditable dir="ltr">|aaa <span>bbb אאא </span>ווש</div>', |
| '19-1 left word'); |
| |
| selection_test( |
| '<div contenteditable dir="ltr">aa|a <span>bbb אאא </span>ווש</div>', |
| selection => selection.modify('move', 'left', 'word'), |
| '<div contenteditable dir="ltr">|aaa <span>bbb אאא </span>ווש</div>', |
| '19-2 left word'); |
| |
| selection_test( |
| '<div contenteditable dir="ltr">aaa| <span>bbb אאא </span>ווש</div>', |
| selection => selection.modify('move', 'left', 'word'), |
| '<div contenteditable dir="ltr">|aaa <span>bbb אאא </span>ווש</div>', |
| '19-3 left word'); |
| |
| selection_test( |
| '<div contenteditable dir="ltr">aaa |<span>bbb אאא </span>ווש</div>', |
| selection => selection.modify('move', 'left', 'word'), |
| '<div contenteditable dir="ltr">|aaa <span>bbb אאא </span>ווש</div>', |
| '19-4 left word'); |
| |
| selection_test( |
| '<div contenteditable dir="ltr">aaa <span>|bbb אאא </span>ווש</div>', |
| selection => selection.modify('move', 'left', 'word'), |
| '<div contenteditable dir="ltr">|aaa <span>bbb אאא </span>ווש</div>', |
| '19-5 left word'); |
| |
| selection_test( |
| '<div contenteditable dir="ltr">aaa <span>b|bb אאא </span>ווש</div>', |
| selection => selection.modify('move', 'left', 'word'), |
| '<div contenteditable dir="ltr">aaa |<span>bbb אאא </span>ווש</div>', |
| '19-6 left word'); |
| |
| selection_test( |
| '<div contenteditable dir="ltr">aaa <span>bb|b אאא </span>ווש</div>', |
| selection => selection.modify('move', 'left', 'word'), |
| '<div contenteditable dir="ltr">aaa |<span>bbb אאא </span>ווש</div>', |
| '19-7 left word'); |
| |
| selection_test( |
| '<div contenteditable dir="ltr">aaa <span>bbb| אאא </span>ווש</div>', |
| selection => selection.modify('move', 'left', 'word'), |
| '<div contenteditable dir="ltr">aaa |<span>bbb אאא </span>ווש</div>', |
| '19-8 left word'); |
| |
| selection_test( |
| '<div contenteditable dir="ltr">aaa <span>bbb |אאא </span>ווש</div>', |
| selection => selection.modify('move', 'left', 'word'), |
| '<div contenteditable dir="ltr">aaa |<span>bbb אאא </span>ווש</div>', |
| '19-9 left word'); |
| |
| selection_test( |
| '<div contenteditable dir="ltr">aaa <span>bbb א|אא </span>ווש</div>', |
| selection => selection.modify('move', 'left', 'word'), |
| '<div contenteditable dir="ltr">aaa <span>bbb |\u05D0\u05D0\u05D0 </span>\u05D5\u05D5\u05E9</div>', |
| '19-10 left word'); |
| |
| selection_test( |
| '<div contenteditable dir="ltr">aaa <span>bbb אא|א </span>ווש</div>', |
| selection => selection.modify('move', 'left', 'word'), |
| '<div contenteditable dir="ltr">aaa <span>bbb |\u05D0\u05D0\u05D0 </span>\u05D5\u05D5\u05E9</div>', |
| '19-11 left word'); |
| |
| selection_test( |
| '<div contenteditable dir="ltr">aaa <span>bbb אאא| </span>ווש</div>', |
| selection => selection.modify('move', 'left', 'word'), |
| '<div contenteditable dir="ltr">aaa <span>bbb |אאא </span>ווש</div>', |
| '19-12 left word'); |
| |
| selection_test( |
| '<div contenteditable dir="ltr">aaa <span>bbb אאא |</span>ווש</div>', |
| selection => selection.modify('move', 'left', 'word'), |
| '<div contenteditable dir="ltr">aaa <span>bbb |אאא </span>ווש</div>', |
| '19-13 left word'); |
| |
| selection_test( |
| '<div contenteditable dir="ltr">aaa <span>bbb אאא </span>|ווש</div>', |
| selection => selection.modify('move', 'left', 'word'), |
| '<div contenteditable dir="ltr">aaa <span>bbb |אאא </span>ווש</div>', |
| '19-14 left word'); |
| |
| selection_test( |
| '<div contenteditable dir="ltr">aaa <span>bbb אאא </span>ו|וש</div>', |
| selection => selection.modify('move', 'left', 'word'), |
| '<div contenteditable dir="ltr">aaa <span>bbb \u05D0\u05D0\u05D0 |</span>\u05D5\u05D5\u05E9</div>', |
| '19-15 left word'); |
| |
| selection_test( |
| '<div contenteditable dir="ltr">aaa <span>bbb אאא </span>וו|ש</div>', |
| selection => selection.modify('move', 'left', 'word'), |
| '<div contenteditable dir="ltr">aaa <span>bbb \u05D0\u05D0\u05D0 |</span>\u05D5\u05D5\u05E9</div>', |
| '19-16 left word'); |
| |
| selection_test( |
| '<div contenteditable dir="ltr">aaa <span>bbb אאא </span>ווש|</div>', |
| selection => selection.modify('move', 'left', 'word'), |
| '<div contenteditable dir="ltr">aaa <span>bbb \u05D0\u05D0\u05D0 |</span>\u05D5\u05D5\u05E9</div>', |
| '19-17 left word'); |
| </script> |