OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <div id="sample" contentEditable></div> |
| 5 <script> |
| 6 test(function() { |
| 7 var sample = document.getElementById('sample'); |
| 8 sample.appendChild(document.createTextNode('A text for creating line wrap '.
repeat(50))); |
| 9 var selection = window.getSelection(); |
| 10 selection.collapse(sample.firstChild, 0); |
| 11 // Make selection as caret with TextAffinity::Upstream |
| 12 selection.modify('move', 'forward', 'lineBoundary') |
| 13 // Call |VisibleSelection::setWithoutValidation()| via |
| 14 // |FrameSelection::nodeWillBeRemoved()|. |
| 15 sample.remove(); |
| 16 }, 'setWithoutValidation with upstream caret'); |
| 17 </script> |
OLD | NEW |