OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../fast/js/resources/js-test-pre.js"></script> |
5 <script src="resources/js-test-selection-shared.js"></script> | 5 <script src="resources/js-test-selection-shared.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <p>This tests collapsing directionless selection on text in a block with the opp
osite text direction. | 8 <p>This tests collapsing directionless selection on text in a block with the opp
osite text direction. |
9 To manually test, on Mac, select text below by mouse and use arrow keys (without
pressing shift) to collapse the selection. | 9 To manually test, on Mac, select text below by mouse and use arrow keys (without
pressing shift) to collapse the selection. |
10 The selection should collapse to the left if you pressed the left arrow key and
to the right if you pressed the right arrow key.</p> | 10 The selection should collapse to the left if you pressed the left arrow key and
to the right if you pressed the right arrow key.</p> |
(...skipping 28 matching lines...) Expand all Loading... |
39 expectedOffset = isLTR ? window.getSelection().getRangeAt(0).startOffset
: window.getSelection().getRangeAt(0).endOffset; | 39 expectedOffset = isLTR ? window.getSelection().getRangeAt(0).startOffset
: window.getSelection().getRangeAt(0).endOffset; |
40 window.getSelection().modify('move', 'right', 'character'); | 40 window.getSelection().modify('move', 'right', 'character'); |
41 assertSelectionAt(tests[i].firstChild, expectedOffset); | 41 assertSelectionAt(tests[i].firstChild, expectedOffset); |
42 } | 42 } |
43 | 43 |
44 document.getElementById('tests').style.display = 'none'; | 44 document.getElementById('tests').style.display = 'none'; |
45 } | 45 } |
46 | 46 |
47 | 47 |
48 </script> | 48 </script> |
49 <script src="../../fast/js/resources/js-test-post.js"></script> | |
50 </body> | 49 </body> |
51 </html> | 50 </html> |
OLD | NEW |