Missing cursor/caret showing in search field on google.com
[WebKit-https.git] / LayoutTests / editing / selection / move-by-word-visually-null-box.html
1 <!DOCTYPE html>
2 <script src="resources/move-by-word-visually.js"></script>
3 <script src="../../resources/js-test-pre.js"></script>
4 <script>
5
6 onload = function() {
7     try {
8         runTest();
9
10         // Test NULL VisiblePosition.
11         var selection = getSelection();
12         selection.setPosition(null, 0);
13         selection.modify("move", "right", "-webkit-visual-word");
14         document.body.innerHTML = "Crash test passed";
15     } finally {
16     }
17 };
18
19 if (window.testRunner && window.internals) {
20     testRunner.dumpAsText();
21     internals.settings.setEditingBehavior('win');
22 }
23 </script>
24 <div id="console"></div>
25 <div id="testMoveByWord">
26 <output><div dir=ltr title="0|0" class="test_move_by_word">
27 <div class="test_move_by_word" dir=ltr contenteditable title="0|0"></div>
28 00<base dir=ltr class="test_move_by_word" title="3|3 1">
29 </div>