Changeset 92223 in webkit
- Timestamp:
- Aug 2, 2011 1:38:04 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r92222 r92223 1 2011-08-02 Van Lam <vanlam@google.com> 2 3 --webkit-visual-word: ctrl-arrow is not able to reach the boundary of line 4 https://bugs.webkit.org/show_bug.cgi?id=61346 5 6 Reviewed by Ryosuke Niwa. 7 8 Updated test cases to check for visual word movement to the end-of-line 9 position. 10 11 * editing/selection/move-by-word-visually-multi-line-expected.txt: 12 * editing/selection/move-by-word-visually-multi-line.html: 13 * editing/selection/move-by-word-visually-multi-space-expected.txt: 14 * editing/selection/move-by-word-visually-multi-space.html: 15 * editing/selection/move-by-word-visually-single-space-inline-element-expected.txt: 16 * editing/selection/move-by-word-visually-single-space-inline-element.html: 17 * editing/selection/move-by-word-visually-single-space-one-element-expected.txt: 18 * editing/selection/move-by-word-visually-single-space-one-element.html: 19 1 20 2011-08-02 Zhenyao Mo <zmo@google.com> 2 21 -
trunk/LayoutTests/editing/selection/move-by-word-visually-multi-line-expected.txt
r91864 r92223 3 3 Test 1, LTR: 4 4 Move right by one word 5 "abc def ghi jkl mn "[0, 4, 8, 12, 16 ], "opq rst uvw xyz"[0, 4, 8, 12]5 "abc def ghi jkl mn "[0, 4, 8, 12, 16, 19], "opq rst uvw xyz"[0, 4, 8, 12, 15] 6 6 Move left by one word 7 7 "opq rst uvw xyz"[15, 12, 8, 4, 0], "abc def ghi jkl mn "[16, 12, 8, 4, 0] 8 8 Test 2, LTR: 9 9 Move right by one word 10 "abc def ghi jkl mn "[0, 4, 8, 12, 16 ], "opq rst uvw xyz"[0, 4, 8, 12]10 "abc def ghi jkl mn "[0, 4, 8, 12, 16, 18], "opq rst uvw xyz"[0, 4, 8, 12, 15] 11 11 Move left by one word 12 12 "opq rst uvw xyz"[15, 12, 8, 4, 0], "abc def ghi jkl mn "[16, 12, 8, 4, 0] 13 13 Test 3, LTR: 14 14 Move right by one word 15 "AAA AAA AAA AAA "[0, 3, 8, 11 ], "AAA AAA AAA AAA"[0, 3, 8, 11]15 "AAA AAA AAA AAA "[0, 3, 8, 11, 16], "AAA AAA AAA AAA"[0, 3, 8, 11, 15] 16 16 Move left by one word 17 17 "AAA AAA AAA AAA"[15, 11, 8, 3, 0], "AAA AAA AAA AAA "[11, 8, 3, 0] 18 18 Test 4, LTR: 19 19 Move right by one word 20 "AAA AAA AAA AAA "[0, 3, 8, 11 ], "AAA AAA AAA AAA"[0, 3, 8, 11]20 "AAA AAA AAA AAA "[0, 3, 8, 11, 16], "AAA AAA AAA AAA"[0, 3, 8, 11, 15] 21 21 Move left by one word 22 22 "AAA AAA AAA AAA"[15, 11, 8, 3, 0], "AAA AAA AAA AAA "[11, 8, 3, 0] 23 23 Test 5, LTR: 24 24 Move right by one word 25 " abc def AAA AAA hij AAA AAA uvw xyz "[1, 5, 9, 12, 17, 21, 25, 29, 33 ], "AAA kj AAA mn opq AAA AAA"[0, 4, 7, 11, 14, 18, 22, 25]25 " abc def AAA AAA hij AAA AAA uvw xyz "[1, 5, 9, 12, 17, 21, 25, 29, 33, 37], "AAA kj AAA mn opq AAA AAA"[0, 4, 7, 11, 14, 18, 22, 25] 26 26 Move left by one word 27 27 "AAA kj AAA mn opq AAA AAA"[25, 22, 18, 14, 11, 7, 4, 0], " abc def AAA AAA hij AAA AAA uvw xyz "[33, 29, 25, 21, 17, 12, 9, 5, 1] 28 28 Test 6, LTR: 29 29 Move right by one word 30 " abc def AAA AAA hij AAA AAA uvw xyz "[1, 5, 9, 12, 17, 21, 25, 29, 33 ], "AAA kj AAA mn opq AAA AAA"[0, 4, 7, 11, 14, 18, 22, 25]30 " abc def AAA AAA hij AAA AAA uvw xyz "[1, 5, 9, 12, 17, 21, 25, 29, 33, 36], "AAA kj AAA mn opq AAA AAA"[0, 4, 7, 11, 14, 18, 22, 25] 31 31 Move left by one word 32 32 "AAA kj AAA mn opq AAA AAA"[25, 22, 18, 14, 11, 7, 4, 0], " abc def AAA AAA hij AAA AAA uvw xyz "[33, 29, 25, 21, 17, 12, 9, 5, 1] 33 33 Test 7, RTL: 34 34 Move left by one word 35 "abc def ghi jkl mn "[0, 3, 8, 11, 16 ], "opq rst uvw xyz"[0, 3, 8, 11]35 "abc def ghi jkl mn "[0, 3, 8, 11, 16, 19], "opq rst uvw xyz"[0, 3, 8, 11, 15] 36 36 Move right by one word 37 37 "opq rst uvw xyz"[15, 11, 8, 3, 0], "abc def ghi jkl mn "[16, 11, 8, 3, 0] 38 38 Test 8, RTL: 39 39 Move left by one word 40 "abc def ghi jkl mn "[0, 3, 8, 11, 16, 18], "opq rst uvw xyz"[0, 3, 8, 11 ]40 "abc def ghi jkl mn "[0, 3, 8, 11, 16, 18], "opq rst uvw xyz"[0, 3, 8, 11, 15] 41 41 Move right by one word 42 42 "opq rst uvw xyz"[15, 11, 8, 3, 0], "abc def ghi jkl mn "[18, 16, 11, 8, 3, 0] 43 43 Test 9, RTL: 44 44 Move left by one word 45 "AAA AAA AAA AAA "[0, 4, 8, 12 ], "AAA AAA AAA AAA"[0, 4, 8, 12]45 "AAA AAA AAA AAA "[0, 4, 8, 12, 16], "AAA AAA AAA AAA"[0, 4, 8, 12, 15] 46 46 Move right by one word 47 47 "AAA AAA AAA AAA"[15, 12, 8, 4, 0], "AAA AAA AAA AAA "[12, 8, 4, 0] 48 48 Test 10, RTL: 49 49 Move left by one word 50 "AAA AAA AAA AAA "[0, 4, 8, 12 ], "AAA AAA AAA AAA"[0, 4, 8, 12]50 "AAA AAA AAA AAA "[0, 4, 8, 12, 16], "AAA AAA AAA AAA"[0, 4, 8, 12, 15] 51 51 Move right by one word 52 52 "AAA AAA AAA AAA"[15, 12, 8, 4, 0], "AAA AAA AAA AAA "[12, 8, 4, 0] 53 53 Test 11, RTL: 54 54 Move left by one word 55 " abc def AAA AAA hij AAA AAA uvw xyz "[1, 4, 9, 13, 17, 21, 25, 29, 33 ], "AAA kj AAA mn opq AAA AAA"[0, 4, 7, 11, 14, 18, 22]55 " abc def AAA AAA hij AAA AAA uvw xyz "[1, 4, 9, 13, 17, 21, 25, 29, 33, 37], "AAA kj AAA mn opq AAA AAA"[0, 4, 7, 11, 14, 18, 22, 25] 56 56 Move right by one word 57 57 "AAA kj AAA mn opq AAA AAA"[25, 22, 18, 14, 11, 7, 4, 0], " abc def AAA AAA hij AAA AAA uvw xyz "[33, 29, 25, 21, 17, 13, 9, 4, 1] 58 58 Test 12, RTL: 59 59 Move left by one word 60 " abc def AAA AAA hij AAA AAA uvw xyz "[1, 4, 9, 13, 17, 21, 25, 29, 33, 36], "AAA kj AAA mn opq AAA AAA"[0, 4, 7, 11, 14, 18, 22 ]60 " abc def AAA AAA hij AAA AAA uvw xyz "[1, 4, 9, 13, 17, 21, 25, 29, 33, 36], "AAA kj AAA mn opq AAA AAA"[0, 4, 7, 11, 14, 18, 22, 25] 61 61 Move right by one word 62 62 "AAA kj AAA mn opq AAA AAA"[25, 22, 18, 14, 11, 7, 4, 0], " abc def AAA AAA hij AAA AAA uvw xyz "[36, 33, 29, 25, 21, 17, 13, 9, 4, 1] -
trunk/LayoutTests/editing/selection/move-by-word-visually-multi-line.html
r91864 r92223 38 38 <!-- test multi-line --> 39 39 <div><span class="fix_width" id="span_size">אאא אאא</span></div> 40 <div contenteditable dir=ltr id="ml_1" class="test_move_by_word fix_width" title="[ml_1, 0][ml_1, 4][ml_1, 8][ml_1, 12][ml_1, 16][ml_1, 0, 5][ml_1, 4, 5][ml_1, 8, 5][ml_1, 12, 5]|[ml_1, 15, 5][ml_1, 12, 5][ml_1, 8, 5][ml_1, 4, 5][ml_1, 0, 5][ml_1, 16][ml_1, 12][ml_1, 8][ml_1, 4][ml_1, 0]">abc def ghi jkl mn <br/><br/><br/>opq rst uvw xyz</div>40 <div contenteditable dir=ltr id="ml_1" class="test_move_by_word fix_width" title="[ml_1, 0][ml_1, 4][ml_1, 8][ml_1, 12][ml_1, 16][ml_1, 19][ml_1, 0, 5][ml_1, 4, 5][ml_1, 8, 5][ml_1, 12, 5][ml_1, 15, 5]|[ml_1, 15, 5][ml_1, 12, 5][ml_1, 8, 5][ml_1, 4, 5][ml_1, 0, 5][ml_1, 16][ml_1, 12][ml_1, 8][ml_1, 4][ml_1, 0]">abc def ghi jkl mn <br/><br/><br/>opq rst uvw xyz</div> 41 41 42 <div contenteditable dir=ltr id="ml_2" class="test_move_by_word fix_width" title="[ml_2, 0][ml_2, 4][ml_2, 8][ml_2, 12][ml_2, 16][ml_2, 0, 5][ml_2, 4, 5][ml_2, 8, 5][ml_2, 12, 5]|[ml_2, 15, 5][ml_2, 12, 5][ml_2, 8, 5][ml_2, 4, 5][ml_2, 0, 5][ml_2, 16][ml_2, 12][ml_2, 8][ml_2, 4][ml_2, 0]">abc def ghi jkl mn <div><br/></div><div><br/></div><div><br/></div>opq rst uvw xyz</div>42 <div contenteditable dir=ltr id="ml_2" class="test_move_by_word fix_width" title="[ml_2, 0][ml_2, 4][ml_2, 8][ml_2, 12][ml_2, 16][ml_2, 18][ml_2, 0, 5][ml_2, 4, 5][ml_2, 8, 5][ml_2, 12, 5][ml_2, 15, 5]|[ml_2, 15, 5][ml_2, 12, 5][ml_2, 8, 5][ml_2, 4, 5][ml_2, 0, 5][ml_2, 16][ml_2, 12][ml_2, 8][ml_2, 4][ml_2, 0]">abc def ghi jkl mn <div><br/></div><div><br/></div><div><br/></div>opq rst uvw xyz</div> 43 43 44 <div contenteditable dir=ltr id="ml_3" class="test_move_by_word fix_width" title="[ml_3, 0][ml_3, 3][ml_3, 8][ml_3, 11]][ml_3, 0, 5][ml_3, 3, 5][ml_3, 8, 5][ml_3, 11, 5]|[ml_3, 15, 5][ml_3, 11, 5][ml_3, 8, 5][ml_3, 3, 5][ml_3, 0, 5][ml_3, 11][ml_3, 8][ml_3, 3][ml_3, 0]">אאא אאא אאא אאא <br/><br/><br/>אאא אאא אאא אאא</div>44 <div contenteditable dir=ltr id="ml_3" class="test_move_by_word fix_width" title="[ml_3, 0][ml_3, 3][ml_3, 8][ml_3, 11]][ml_3, 16][ml_3, 0, 5][ml_3, 3, 5][ml_3, 8, 5][ml_3, 11, 5][ml_3, 15, 5]|[ml_3, 15, 5][ml_3, 11, 5][ml_3, 8, 5][ml_3, 3, 5][ml_3, 0, 5][ml_3, 11][ml_3, 8][ml_3, 3][ml_3, 0]">אאא אאא אאא אאא <br/><br/><br/>אאא אאא אאא אאא</div> 45 45 46 <div contenteditable dir=ltr id="ml_4" class="test_move_by_word fix_width" title="[ml_4, 0][ml_4, 3][ml_4, 8][ml_4, 11][ml_4, 0, 5][ml_4, 3, 5][ml_4, 8, 5][ml_4, 11, 5]|[ml_4, 15, 5][ml_4, 11, 5][ml_4, 8, 5][ml_4, 3, 5][ml_4, 0, 5][ml_4, 11][ml_4, 8][ml_4, 3][ml_4, 0]">אאא אאא אאא אאא <div><br/></div><div><br/></div><div><br/></div>אאא אאא אאא אאא</div>46 <div contenteditable dir=ltr id="ml_4" class="test_move_by_word fix_width" title="[ml_4, 0][ml_4, 3][ml_4, 8][ml_4, 11][ml_4, 16][ml_4, 0, 5][ml_4, 3, 5][ml_4, 8, 5][ml_4, 11, 5][ml_4, 15, 5]|[ml_4, 15, 5][ml_4, 11, 5][ml_4, 8, 5][ml_4, 3, 5][ml_4, 0, 5][ml_4, 11][ml_4, 8][ml_4, 3][ml_4, 0]">אאא אאא אאא אאא <div><br/></div><div><br/></div><div><br/></div>אאא אאא אאא אאא</div> 47 47 48 <div contenteditable dir=ltr id="ml_5" class="test_move_by_word fix_width" title="[ml_5, 1][ml_5, 5][ml_5, 9][ml_5, 12][ml_5, 17][ml_5, 21][ml_5, 25][ml_5, 29][ml_5, 33][ml_5, 0, 5][ml_5, 4, 5][ml_5, 7, 5][ml_5, 11, 5][ml_5, 14, 5][ml_5, 18, 5][ml_5, 22, 5][ml_5, 25, 5]|[ml_5, 25, 5][ml_5, 22, 5][ml_5, 18, 5][ml_5, 14, 5][ml_5, 11, 5][ml_5, 7, 5][ml_5, 4, 5][ml_5, 0, 5][ml_5, 33][ml_5, 29][ml_5, 25][ml_5, 21][ml_5, 17][ml_5, 12][ml_5, 9][ml_5, 5][ml_5, 1]"> abc def אאא אאא hij אאא אאא uvw xyz <br/><br/><br/>אאא kj אאא mn opq אאא אאא</div>48 <div contenteditable dir=ltr id="ml_5" class="test_move_by_word fix_width" title="[ml_5, 1][ml_5, 5][ml_5, 9][ml_5, 12][ml_5, 17][ml_5, 21][ml_5, 25][ml_5, 29][ml_5, 33][ml_5, 37][ml_5, 0, 5][ml_5, 4, 5][ml_5, 7, 5][ml_5, 11, 5][ml_5, 14, 5][ml_5, 18, 5][ml_5, 22, 5][ml_5, 25, 5]|[ml_5, 25, 5][ml_5, 22, 5][ml_5, 18, 5][ml_5, 14, 5][ml_5, 11, 5][ml_5, 7, 5][ml_5, 4, 5][ml_5, 0, 5][ml_5, 33][ml_5, 29][ml_5, 25][ml_5, 21][ml_5, 17][ml_5, 12][ml_5, 9][ml_5, 5][ml_5, 1]"> abc def אאא אאא hij אאא אאא uvw xyz <br/><br/><br/>אאא kj אאא mn opq אאא אאא</div> 49 49 50 <div contenteditable dir=ltr id="ml_6" class="test_move_by_word fix_width" title="[ml_6, 1][ml_6, 5][ml_6, 9][ml_6, 12][ml_6, 17][ml_6, 21][ml_6, 25][ml_6, 29][ml_6, 33][ml_6, 0, 5][ml_6, 4, 5][ml_6, 7, 5][ml_6, 11, 5][ml_6, 14, 5][ml_6, 18, 5][ml_6, 22, 5][ml_6, 25, 5]|[ml_6, 25, 5][ml_6, 22, 5][ml_6, 18, 5][ml_6, 14, 5][ml_6, 11, 5][ml_6, 7, 5][ml_6, 4, 5][ml_6, 0, 5][ml_6, 33][ml_6, 29][ml_6, 25][ml_6, 21][ml_6, 17][ml_6, 12][ml_6, 9][ml_6, 5][ml_6, 1]"> abc def אאא אאא hij אאא אאא uvw xyz <div><br/></div><div><br/></div><div><br/></div>אאא kj אאא mn opq אאא אאא</div>50 <div contenteditable dir=ltr id="ml_6" class="test_move_by_word fix_width" title="[ml_6, 1][ml_6, 5][ml_6, 9][ml_6, 12][ml_6, 17][ml_6, 21][ml_6, 25][ml_6, 29][ml_6, 33][ml_6, 36][ml_6, 0, 5][ml_6, 4, 5][ml_6, 7, 5][ml_6, 11, 5][ml_6, 14, 5][ml_6, 18, 5][ml_6, 22, 5][ml_6, 25, 5]|[ml_6, 25, 5][ml_6, 22, 5][ml_6, 18, 5][ml_6, 14, 5][ml_6, 11, 5][ml_6, 7, 5][ml_6, 4, 5][ml_6, 0, 5][ml_6, 33][ml_6, 29][ml_6, 25][ml_6, 21][ml_6, 17][ml_6, 12][ml_6, 9][ml_6, 5][ml_6, 1]"> abc def אאא אאא hij אאא אאא uvw xyz <div><br/></div><div><br/></div><div><br/></div>אאא kj אאא mn opq אאא אאא</div> 51 51 52 52 53 <div contenteditable dir=rtl id="ml_7" class="test_move_by_word fix_width" title="[ml_7, 15, 5][ml_7, 11, 5][ml_7, 8, 5][ml_7, 3, 5][ml_7, 0, 5][ml_7, 16][ml_7, 11][ml_7, 8][ml_7, 3][ml_7, 0]|[ml_7, 0][ml_7, 3][ml_7, 8][ml_7, 11][ml_7, 16][ml_7, 0, 5][ml_7, 3, 5][ml_7, 8, 5][ml_7, 11, 5]">abc def ghi jkl mn <br/><br/><br/>opq rst uvw xyz</div>53 <div contenteditable dir=rtl id="ml_7" class="test_move_by_word fix_width" title="[ml_7, 15, 5][ml_7, 11, 5][ml_7, 8, 5][ml_7, 3, 5][ml_7, 0, 5][ml_7, 16][ml_7, 11][ml_7, 8][ml_7, 3][ml_7, 0]|[ml_7, 0][ml_7, 3][ml_7, 8][ml_7, 11][ml_7, 16][ml_7, 19][ml_7, 0, 5][ml_7, 3, 5][ml_7, 8, 5][ml_7, 11, 5][ml_7, 15, 5]">abc def ghi jkl mn <br/><br/><br/>opq rst uvw xyz</div> 54 54 55 <div contenteditable dir=rtl id="ml_8" class="test_move_by_word fix_width" title="[ml_8, 15, 5][ml_8, 11, 5][ml_8, 8, 5][ml_8, 3, 5][ml_8, 0, 5][ml_8, 18][ml_8, 16][ml_8, 11][ml_8, 8][ml_8, 3][ml_8, 0]|[ml_8, 0][ml_8, 3][ml_8, 8][ml_8, 11][ml_8, 16][ml_8, 18][ml_8, 0, 5][ml_8, 3, 5][ml_8, 8, 5][ml_8, 11, 5] ">abc def ghi jkl mn <div><br/></div><div><br/></div><div><br/></div>opq rst uvw xyz</div>55 <div contenteditable dir=rtl id="ml_8" class="test_move_by_word fix_width" title="[ml_8, 15, 5][ml_8, 11, 5][ml_8, 8, 5][ml_8, 3, 5][ml_8, 0, 5][ml_8, 18][ml_8, 16][ml_8, 11][ml_8, 8][ml_8, 3][ml_8, 0]|[ml_8, 0][ml_8, 3][ml_8, 8][ml_8, 11][ml_8, 16][ml_8, 18][ml_8, 0, 5][ml_8, 3, 5][ml_8, 8, 5][ml_8, 11, 5][ml_8, 15, 5]">abc def ghi jkl mn <div><br/></div><div><br/></div><div><br/></div>opq rst uvw xyz</div> 56 56 57 <div contenteditable dir=rtl id="ml_9" class="test_move_by_word fix_width" title="[ml_9, 15, 5][ml_9, 12, 5][ml_9, 8, 5][ml_9, 4, 5][ml_9, 0, 5][ml_9, 12][ml_9, 8][ml_9, 4][ml_9, 0]|[ml_9, 0][ml_9, 4][ml_9, 8][ml_9, 12][ml_9, 0, 5][ml_9, 4, 5][ml_9, 8, 5][ml_9, 12, 5]">אאא אאא אאא אאא <br/><br/><br/>אאא אאא אאא אאא</div>57 <div contenteditable dir=rtl id="ml_9" class="test_move_by_word fix_width" title="[ml_9, 15, 5][ml_9, 12, 5][ml_9, 8, 5][ml_9, 4, 5][ml_9, 0, 5][ml_9, 12][ml_9, 8][ml_9, 4][ml_9, 0]|[ml_9, 0][ml_9, 4][ml_9, 8][ml_9, 12][ml_9, 16][ml_9, 0, 5][ml_9, 4, 5][ml_9, 8, 5][ml_9, 12, 5][ml_9, 15, 5]">אאא אאא אאא אאא <br/><br/><br/>אאא אאא אאא אאא</div> 58 58 59 <div contenteditable dir=rtl id="ml_10" class="test_move_by_word fix_width" title="[ml_10, 15, 5][ml_10, 12, 5][ml_10, 8, 5][ml_10, 4, 5][ml_10, 0, 5][ml_10, 12][ml_10, 8][ml_10, 4][ml_10, 0]|[ml_10, 0][ml_10, 4][ml_10, 8][ml_10, 12][ml_10, 0, 5][ml_10, 4, 5][ml_10, 8, 5][ml_10, 12, 5]">אאא אאא אאא אאא <div><br/></div><div><br/></div><div><br/></div>אאא אאא אאא אאא</div>59 <div contenteditable dir=rtl id="ml_10" class="test_move_by_word fix_width" title="[ml_10, 15, 5][ml_10, 12, 5][ml_10, 8, 5][ml_10, 4, 5][ml_10, 0, 5][ml_10, 12][ml_10, 8][ml_10, 4][ml_10, 0]|[ml_10, 0][ml_10, 4][ml_10, 8][ml_10, 12][ml_10, 16][ml_10, 0, 5][ml_10, 4, 5][ml_10, 8, 5][ml_10, 12, 5][ml_10, 15, 5]">אאא אאא אאא אאא <div><br/></div><div><br/></div><div><br/></div>אאא אאא אאא אאא</div> 60 60 61 61 <div contenteditable dir=rtl id="ml_11" class="test_move_by_word fix_width" title=" 62 [ml_11, 25, 5][ml_11, 22, 5][ml_11, 18, 5][ml_11, 14, 5][ml_11, 11, 5][ml_11, 7, 5][ml_11, 4, 5][ml_11, 0, 5][ml_11, 33][ml_11, 29][ml_11, 25][ml_11, 21][ml_11, 17][ml_11, 13][ml_11, 9][ml_11, 4][ml_11, 1]|[ml_11, 1][ml_11, 4][ml_11, 9][ml_11, 13][ml_11, 17][ml_11, 21][ml_11, 25][ml_11, 29][ml_11, 33][ml_11, 0, 5][ml_11, 4, 5][ml_11, 7, 5][ml_11, 11, 5][ml_11, 14, 5][ml_11, 18, 5][ml_11, 22, 5]62 [ml_11, 25, 5][ml_11, 22, 5][ml_11, 18, 5][ml_11, 14, 5][ml_11, 11, 5][ml_11, 7, 5][ml_11, 4, 5][ml_11, 0, 5][ml_11, 33][ml_11, 29][ml_11, 25][ml_11, 21][ml_11, 17][ml_11, 13][ml_11, 9][ml_11, 4][ml_11, 1]|[ml_11, 1][ml_11, 4][ml_11, 9][ml_11, 13][ml_11, 17][ml_11, 21][ml_11, 25][ml_11, 29][ml_11, 33][ml_11, 37][ml_11, 0, 5][ml_11, 4, 5][ml_11, 7, 5][ml_11, 11, 5][ml_11, 14, 5][ml_11, 18, 5][ml_11, 22, 5][ml_11, 25, 5] 63 63 "> abc def אאא אאא hij אאא אאא uvw xyz <br/><br/><br/>אאא kj אאא mn opq אאא אאא</div> 64 64 65 65 <div contenteditable dir=rtl id="ml_12" class="test_move_by_word fix_width" title=" 66 [ml_12, 25, 5][ml_12, 22, 5][ml_12, 18, 5][ml_12, 14, 5][ml_12, 11, 5][ml_12, 7, 5][ml_12, 4, 5][ml_12, 0, 5][ml_12, 36][ml_12, 33][ml_12, 29][ml_12, 25][ml_12, 21][ml_12, 17][ml_12, 13][ml_12, 9][ml_12, 4][ml_12, 1]|[ml_12, 1][ml_12, 4][ml_12, 9][ml_12, 13][ml_12, 17][ml_12, 21][ml_12, 25][ml_12, 29][ml_12, 33][ml_12, 36][ml_12, 0, 5][ml_12, 4, 5][ml_12, 7, 5][ml_12, 11, 5][ml_12, 14, 5][ml_12, 18, 5][ml_12, 22, 5] 66 [ml_12, 25, 5][ml_12, 22, 5][ml_12, 18, 5][ml_12, 14, 5][ml_12, 11, 5][ml_12, 7, 5][ml_12, 4, 5][ml_12, 0, 5][ml_12, 36][ml_12, 33][ml_12, 29][ml_12, 25][ml_12, 21][ml_12, 17][ml_12, 13][ml_12, 9][ml_12, 4][ml_12, 1]|[ml_12, 1][ml_12, 4][ml_12, 9][ml_12, 13][ml_12, 17][ml_12, 21][ml_12, 25][ml_12, 29][ml_12, 33][ml_12, 36][ml_12, 0, 5][ml_12, 4, 5][ml_12, 7, 5][ml_12, 11, 5][ml_12, 14, 5][ml_12, 18, 5][ml_12, 22, 5][ml_12, 25, 5] 67 67 "> abc def אאא אאא hij אאא אאא uvw xyz <div><br/></div><div><br/></div><div><br/></div>אאא kj אאא mn opq אאא אאא</div> 68 68 -
trunk/LayoutTests/editing/selection/move-by-word-visually-multi-space-expected.txt
r91864 r92223 3 3 Test 1, LTR: 4 4 Move right by one word 5 "abc def hij opq"[0, 4, 8, 15 ]5 "abc def hij opq"[0, 4, 8, 15, 18] 6 6 Move left by one word 7 7 "abc def hij opq"[18, 15, 8, 4, 0] 8 8 Test 2, LTR: 9 9 Move right by one word 10 " abc def hij opq "[4, 8, 15, 22 ]10 " abc def hij opq "[4, 8, 15, 22, 28] 11 11 Move left by one word 12 12 " abc def hij opq "[28, 22, 15, 8, 4] 13 13 Test 3, LTR: 14 14 Move right by one word 15 " abc ABW def "[4, 8, 15 ]15 " abc ABW def "[4, 8, 15, 21] 16 16 Move left by one word 17 17 " abc ABW def "[21, 15, 8, 4] 18 18 Test 4, LTR: 19 19 Move right by one word 20 " abc def ABW DDU hij opq "[4, 8, 15, 21, 29, 36 ]20 " abc def ABW DDU hij opq "[4, 8, 15, 21, 29, 36, 42] 21 21 Move left by one word 22 22 " abc def ABW DDU hij opq "[42, 36, 29, 21, 15, 8, 4] 23 23 Test 5, LTR: 24 24 Move right by one word 25 " abc def hij ABW DSU EJH opq rst uvw "[4, 8, 15, 22, 35, 28, 43, 50, 57 ]25 " abc def hij ABW DSU EJH opq rst uvw "[4, 8, 15, 22, 35, 28, 43, 50, 57, 63] 26 26 Move left by one word 27 27 " abc def hij ABW DSU EJH opq rst uvw "[63, 57, 50, 43, 28, 35, 22, 15, 8, 4] 28 28 Test 6, LTR: 29 29 Move right by one word 30 " ABW DSU HJH FUX "[4, 21, 14, 7 ]30 " ABW DSU HJH FUX "[4, 21, 14, 7, 28] 31 31 Move left by one word 32 32 " ABW DSU HJH FUX "[28, 7, 14, 21, 4] 33 33 Test 7, LTR: 34 34 Move right by one word 35 " ABW abc DSU "[4, 8, 15, 21] FAIL expected: [4, 8, 15] 36 " ABW abc DSU "[15, 21] FAIL expected to stay in the same position 37 " ABW abc DSU "[20, 21] FAIL expected to stay in the same position 38 " ABW abc DSU "[19, 21] FAIL expected to stay in the same position 35 " ABW abc DSU "[4, 8, 15, 21] 39 36 Move left by one word 40 37 " ABW abc DSU "[21, 15, 8, 4] 41 38 Test 8, LTR: 42 39 Move right by one word 43 " ABW DSU abc def HJH FUX "[4, 7, 15, 22, 28, 33 ]40 " ABW DSU abc def HJH FUX "[4, 7, 15, 22, 28, 33, 40] 44 41 Move left by one word 45 42 " ABW DSU abc def HJH FUX "[40, 33, 28, 22, 15, 7, 4] 46 43 Test 9, LTR: 47 44 Move right by one word 48 " ABW DSU HJH abc def jih FUX FUX YR[ "[4, 14, 7, 22, 29, 35, 41, 51, 46 ]45 " ABW DSU HJH abc def jih FUX FUX YR[ "[4, 14, 7, 22, 29, 35, 41, 51, 46, 58] 49 46 Move left by one word 50 47 " ABW DSU HJH abc def jih FUX FUX YR[ "[58, 46, 51, 41, 35, 29, 22, 7, 14, 4] 51 48 Test 10, LTR: 52 49 Move right by one word 53 "ABW DSU EJH FUX"[0, 14, 7, 3 ]50 "ABW DSU EJH FUX"[0, 14, 7, 3, 18] 54 51 Move left by one word 55 52 "ABW DSU EJH FUX"[18, 3, 7, 14, 0] 56 53 Test 11, LTR: 57 54 Move right by one word 58 "ABW DSU EJH abc def hij"[0, 7, 3, 12, 19, 23 ]55 "ABW DSU EJH abc def hij"[0, 7, 3, 12, 19, 23, 26] 59 56 Move left by one word 60 57 "ABW DSU EJH abc def hij"[26, 23, 19, 12, 3, 7, 0] 61 58 Test 12, LTR: 62 59 Move right by one word 63 "abc def hij ABW DSU EJH opq rst uvw"[0, 4, 8, 12, 22, 18, 27, 34, 38 ]60 "abc def hij ABW DSU EJH opq rst uvw"[0, 4, 8, 12, 22, 18, 27, 34, 38, 41] 64 61 Move left by one word 65 62 "abc def hij ABW DSU EJH opq rst uvw"[41, 38, 34, 27, 18, 22, 12, 8, 4, 0] 66 63 Test 13, RTL: 67 64 Move left by one word 68 "abc def hij opq"[0, 14, 7, 3 ]65 "abc def hij opq"[0, 14, 7, 3, 18] 69 66 Move right by one word 70 67 "abc def hij opq"[18, 3, 7, 14, 0] 71 68 Test 14, RTL: 72 69 Move left by one word 73 " abc def hij opq "[4, 21, 14, 7 ]70 " abc def hij opq "[4, 21, 14, 7, 28] 74 71 Move right by one word 75 72 " abc def hij opq "[28, 7, 14, 21, 4] 76 73 Test 15, RTL: 77 74 Move left by one word 78 " abc ABW def "[4, 8, 15, 21] FAIL expected: [4, 8, 15] 79 " abc ABW def "[15, 21] FAIL expected to stay in the same position 80 " abc ABW def "[20, 21] FAIL expected to stay in the same position 81 " abc ABW def "[19, 21] FAIL expected to stay in the same position 75 " abc ABW def "[4, 8, 15, 21] 82 76 Move right by one word 83 77 " abc ABW def "[21, 15, 8, 4] 84 78 Test 16, RTL: 85 79 Move left by one word 86 " abc def ABW DDU hij opq "[4, 7, 15, 22, 29, 35 ]80 " abc def ABW DDU hij opq "[4, 7, 15, 22, 29, 35, 42] 87 81 Move right by one word 88 82 " abc def ABW DDU hij opq "[42, 35, 29, 22, 15, 7, 4] 89 83 Test 17, RTL: 90 84 Move left by one word 91 " abc def hij ABW DSU EJH opq rst uvw "[4, 14, 7, 22, 29, 36, 43, 56, 49 ]85 " abc def hij ABW DSU EJH opq rst uvw "[4, 14, 7, 22, 29, 36, 43, 56, 49, 63] 92 86 Move right by one word 93 87 " abc def hij ABW DSU EJH opq rst uvw "[63, 49, 56, 43, 36, 29, 22, 7, 14, 4] 94 88 Test 18, RTL: 95 89 Move left by one word 96 " ABW DSU HJH FUX "[4, 8, 15, 22 ]90 " ABW DSU HJH FUX "[4, 8, 15, 22, 28] 97 91 Move right by one word 98 92 " ABW DSU HJH FUX "[28, 22, 15, 8, 4] 99 93 Test 19, RTL: 100 94 Move left by one word 101 " ABW abc DSU "[4, 8, 15 ]95 " ABW abc DSU "[4, 8, 15, 21] 102 96 Move right by one word 103 97 " ABW abc DSU "[21, 15, 8, 4] 104 98 Test 20, RTL: 105 99 Move left by one word 106 " ABW DSU abc def HJH FUX "[4, 8, 15, 21, 28, 34 ]100 " ABW DSU abc def HJH FUX "[4, 8, 15, 21, 28, 34, 40] 107 101 Move right by one word 108 102 " ABW DSU abc def HJH FUX "[40, 34, 28, 21, 15, 8, 4] 109 103 Test 21, RTL: 110 104 Move left by one word 111 " ABW DSU HJH abc def jih FUX FUX YR[ "[4, 8, 15, 22, 34, 28, 41, 47, 52 ]105 " ABW DSU HJH abc def jih FUX FUX YR[ "[4, 8, 15, 22, 34, 28, 41, 47, 52, 58] 112 106 Move right by one word 113 107 " ABW DSU HJH abc def jih FUX FUX YR[ "[58, 52, 47, 41, 28, 34, 22, 15, 8, 4] 114 108 Test 22, LTR: 115 109 Move right by one word 116 "abc def hij opq"[0, 4, 11, 15 ]110 "abc def hij opq"[0, 4, 11, 15, 18] 117 111 Move left by one word 118 112 "abc def hij opq"[18, 15, 11, 4, 0] 119 113 Test 23, LTR: 120 114 Move right by one word 121 " abc def hij opq "[0, 4, 11, 18, 25 ]115 " abc def hij opq "[0, 4, 11, 18, 25, 32] 122 116 Move left by one word 123 117 " abc def hij opq "[32, 25, 18, 11, 4, 0] 124 118 Test 24, LTR: 125 119 Move right by one word 126 " abc ABW def "[0, 4, 11, 18 ]120 " abc ABW def "[0, 4, 11, 18, 25] 127 121 Move left by one word 128 122 " abc ABW def "[25, 18, 11, 4, 0] 129 123 Test 25, LTR: 130 124 Move right by one word 131 " abc def ABW DDU hij opq "[0, 4, 11, 18, 21, 32, 39 ]125 " abc def ABW DDU hij opq "[0, 4, 11, 18, 21, 32, 39, 46] 132 126 Move left by one word 133 127 " abc def ABW DDU hij opq "[46, 39, 32, 21, 18, 11, 4, 0] 134 128 Test 26, LTR: 135 129 Move right by one word 136 " abc def hij ABW DSU EJH opq rst uvw "[0, 4, 11, 18, 25, 35, 28, 46, 53, 60 ]130 " abc def hij ABW DSU EJH opq rst uvw "[0, 4, 11, 18, 25, 35, 28, 46, 53, 60, 67] 137 131 Move left by one word 138 132 " abc def hij ABW DSU EJH opq rst uvw "[67, 60, 53, 46, 28, 35, 25, 18, 11, 4, 0] 139 133 Test 27, LTR: 140 134 Move right by one word 141 " ABW DSU HJH FUX "[0, 4, 21, 14, 7 ]135 " ABW DSU HJH FUX "[0, 4, 21, 14, 7, 32] 142 136 Move left by one word 143 137 " ABW DSU HJH FUX "[32, 7, 14, 21, 4, 0] 144 138 Test 28, LTR: 145 139 Move right by one word 146 " ABW abc DSU "[0, 4, 11, 18 ]140 " ABW abc DSU "[0, 4, 11, 18, 26] 147 141 Move left by one word 148 142 " ABW abc DSU "[26, 18, 11, 4, 0] 149 143 Test 29, LTR: 150 144 Move right by one word 151 " ABW DSU abc def HJH FUX "[0, 4, 7, 18, 24, 30, 33 ]145 " ABW DSU abc def HJH FUX "[0, 4, 7, 18, 24, 30, 33, 44] 152 146 Move left by one word 153 147 " ABW DSU abc def HJH FUX "[44, 33, 30, 24, 18, 7, 4, 0] 154 148 Test 30, LTR: 155 149 Move right by one word 156 " ABW DSU HJH abc def jih FUX FUX YR[ "[0, 4, 14, 7, 25, 31, 37, 43, 51, 46 ]150 " ABW DSU HJH abc def jih FUX FUX YR[ "[0, 4, 14, 7, 25, 31, 37, 43, 51, 46, 63] 157 151 Move left by one word 158 152 " ABW DSU HJH abc def jih FUX FUX YR[ "[63, 46, 51, 43, 37, 31, 25, 7, 14, 4, 0] 159 153 Test 31, LTR: 160 154 Move right by one word 161 "ABW DSU EJH FUX"[0, 14, 7, 3 ]155 "ABW DSU EJH FUX"[0, 14, 7, 3, 18] 162 156 Move left by one word 163 157 "ABW DSU EJH FUX"[18, 3, 7, 14, 0] 164 158 Test 32, LTR: 165 159 Move right by one word 166 "ABW DSU EJH abc def hij"[0, 7, 3, 15, 19, 23 ]160 "ABW DSU EJH abc def hij"[0, 7, 3, 15, 19, 23, 26] 167 161 Move left by one word 168 162 "ABW DSU EJH abc def hij"[26, 23, 19, 15, 3, 7, 0] 169 163 Test 33, LTR: 170 164 Move right by one word 171 "abc def hij ABW DSU EJH opq rst uvw"[0, 4, 8, 15, 22, 18, 30, 34, 38 ]165 "abc def hij ABW DSU EJH opq rst uvw"[0, 4, 8, 15, 22, 18, 30, 34, 38, 41] 172 166 Move left by one word 173 167 "abc def hij ABW DSU EJH opq rst uvw"[41, 38, 34, 30, 18, 22, 15, 8, 4, 0] 174 168 Test 34, RTL: 175 169 Move left by one word 176 "abc def hij opq"[0, 14, 7, 3 ]170 "abc def hij opq"[0, 14, 7, 3, 18] 177 171 Move right by one word 178 172 "abc def hij opq"[18, 3, 7, 14, 0] 179 173 Test 35, RTL: 180 174 Move left by one word 181 " abc def hij opq "[0, 4, 21, 14, 7 ]175 " abc def hij opq "[0, 4, 21, 14, 7, 32] 182 176 Move right by one word 183 177 " abc def hij opq "[32, 7, 14, 21, 4, 0] 184 178 Test 36, RTL: 185 179 Move left by one word 186 " abc ABW def "[0, 4, 11, 18 ]180 " abc ABW def "[0, 4, 11, 18, 25] 187 181 Move right by one word 188 182 " abc ABW def "[25, 18, 11, 4, 0] 189 183 Test 37, RTL: 190 184 Move left by one word 191 " abc def ABW DDU hij opq "[0, 4, 7, 18, 25, 32, 35 ]185 " abc def ABW DDU hij opq "[0, 4, 7, 18, 25, 32, 35, 46] 192 186 Move right by one word 193 187 " abc def ABW DDU hij opq "[46, 35, 32, 25, 18, 7, 4, 0] 194 188 Test 38, RTL: 195 189 Move left by one word 196 " abc def hij ABW DSU EJH opq rst uvw "[0, 4, 14, 7, 25, 32, 39, 46, 56, 49 ]190 " abc def hij ABW DSU EJH opq rst uvw "[0, 4, 14, 7, 25, 32, 39, 46, 56, 49, 67] 197 191 Move right by one word 198 192 " abc def hij ABW DSU EJH opq rst uvw "[67, 49, 56, 46, 39, 32, 25, 7, 14, 4, 0] 199 193 Test 39, RTL: 200 194 Move left by one word 201 " ABW DSU HJH FUX "[0, 4, 11, 18, 25 ]195 " ABW DSU HJH FUX "[0, 4, 11, 18, 25, 32] 202 196 Move right by one word 203 197 " ABW DSU HJH FUX "[32, 25, 18, 11, 4, 0] 204 198 Test 40, RTL: 205 199 Move left by one word 206 " ABW abc DSU "[0, 4, 11, 18 ]200 " ABW abc DSU "[0, 4, 11, 18, 26] 207 201 Move right by one word 208 202 " ABW abc DSU "[26, 18, 11, 4, 0] 209 203 Test 41, RTL: 210 204 Move left by one word 211 " ABW DSU abc def HJH FUX "[0, 4, 11, 18, 21, 30, 37 ]205 " ABW DSU abc def HJH FUX "[0, 4, 11, 18, 21, 30, 37, 44] 212 206 Move right by one word 213 207 " ABW DSU abc def HJH FUX "[44, 37, 30, 21, 18, 11, 4, 0] 214 208 Test 42, RTL: 215 209 Move left by one word 216 " ABW DSU HJH abc def jih FUX FUX YR[ "[0, 4, 11, 18, 25, 34, 28, 43, 48, 55 ]210 " ABW DSU HJH abc def jih FUX FUX YR[ "[0, 4, 11, 18, 25, 34, 28, 43, 48, 55, 63] 217 211 Move right by one word 218 212 " ABW DSU HJH abc def jih FUX FUX YR[ "[63, 55, 48, 43, 28, 34, 25, 18, 11, 4, 0] 219 213 Test 43, LTR: 220 214 Move right by one word 221 "䤫䡱暘倎厘 疂崝烵 abc def"[0, 1, 2, 3, 4, 9, 10, 11, 17, 21 ]215 "䤫䡱暘倎厘 疂崝烵 abc def"[0, 1, 2, 3, 4, 9, 10, 11, 17, 21, 24] 222 216 Move left by one word 223 217 "䤫䡱暘倎厘 疂崝烵 abc def"[24, 21, 17, 11, 10, 9, 4, 3, 2, 1, 0] -
trunk/LayoutTests/editing/selection/move-by-word-visually-multi-space.html
r91864 r92223 37 37 38 38 <!-- test multispaces --> 39 <div dir=ltr class="test_move_by_word" title="0 4 8 15 |18 15 8 4 0" contenteditable>abc def hij opq</div>40 <div dir=ltr class="test_move_by_word" title="4 8 15 22 |28 22 15 8 4" contenteditable> abc def hij opq </div>41 <div dir=ltr class="test_move_by_word" title="4 8 15 |21 15 8 4" contenteditable> abc אבצ def </div>42 <div dir=ltr class="test_move_by_word" title="4 8 15 21 29 36 |42 36 29 21 15 8 4" contenteditable> abc def אבצ דדפ hij opq </div>43 <div dir=ltr class="test_move_by_word" title="4 8 15 22 35 28 43 50 57 |63 57 50 43 28 35 22 15 8 4" contenteditable> abc def hij אבצ דעפ היח opq rst uvw </div>44 <div dir=ltr class="test_move_by_word" title="4 21 14 7 |28 7 14 21 4" contenteditable> אבצ דעפ חיח ופק </div>45 <div dir=ltr class="test_move_by_word" title="4 8 15 |21 15 8 4" contenteditable> אבצ abc דעפ </div>46 <div dir=ltr class="test_move_by_word" title="4 7 15 22 28 33 |40 33 28 22 15 7 4" contenteditable> אבצ דעפ abc def חיח ופק </div>47 <div dir=ltr class="test_move_by_word" title="4 14 7 22 29 35 41 51 46 |58 46 51 41 35 29 22 7 14 4" contenteditable> אבצ דעפ חיח abc def jih ופק ופק רסת </div>39 <div dir=ltr class="test_move_by_word" title="0 4 8 15 18|18 15 8 4 0" contenteditable>abc def hij opq</div> 40 <div dir=ltr class="test_move_by_word" title="4 8 15 22 28|28 22 15 8 4" contenteditable> abc def hij opq </div> 41 <div dir=ltr class="test_move_by_word" title="4 8 15 21|21 15 8 4" contenteditable> abc אבצ def </div> 42 <div dir=ltr class="test_move_by_word" title="4 8 15 21 29 36 42|42 36 29 21 15 8 4" contenteditable> abc def אבצ דדפ hij opq </div> 43 <div dir=ltr class="test_move_by_word" title="4 8 15 22 35 28 43 50 57 63|63 57 50 43 28 35 22 15 8 4" contenteditable> abc def hij אבצ דעפ היח opq rst uvw </div> 44 <div dir=ltr class="test_move_by_word" title="4 21 14 7 28|28 7 14 21 4" contenteditable> אבצ דעפ חיח ופק </div> 45 <div dir=ltr class="test_move_by_word" title="4 8 15 21|21 15 8 4" contenteditable> אבצ abc דעפ </div> 46 <div dir=ltr class="test_move_by_word" title="4 7 15 22 28 33 40|40 33 28 22 15 7 4" contenteditable> אבצ דעפ abc def חיח ופק </div> 47 <div dir=ltr class="test_move_by_word" title="4 14 7 22 29 35 41 51 46 58|58 46 51 41 35 29 22 7 14 4" contenteditable> אבצ דעפ חיח abc def jih ופק ופק רסת </div> 48 48 49 <div dir=ltr class="test_move_by_word" title="0 14 7 3 |18 3 7 14 0" contenteditable>אבצ דעפ היח ופק</div>50 <div dir=ltr class="test_move_by_word" title="0 7 3 12 19 23 |26 23 19 12 3 7 0" contenteditable>אבצ דעפ היח abc def hij</div>51 <div dir=ltr class="test_move_by_word" title="0 4 8 12 22 18 27 34 38 |41 38 34 27 18 22 12 8 4 0" contenteditable>abc def hij אבצ דעפ היח opq rst uvw</div>49 <div dir=ltr class="test_move_by_word" title="0 14 7 3 18|18 3 7 14 0" contenteditable>אבצ דעפ היח ופק</div> 50 <div dir=ltr class="test_move_by_word" title="0 7 3 12 19 23 26|26 23 19 12 3 7 0" contenteditable>אבצ דעפ היח abc def hij</div> 51 <div dir=ltr class="test_move_by_word" title="0 4 8 12 22 18 27 34 38 41|41 38 34 27 18 22 12 8 4 0" contenteditable>abc def hij אבצ דעפ היח opq rst uvw</div> 52 52 53 <div dir=rtl class="test_move_by_word" title="18 3 7 14 0|0 14 7 3 " contenteditable>abc def hij opq</div>54 <div dir=rtl class="test_move_by_word" title="28 7 14 21 4|4 21 14 7 " contenteditable> abc def hij opq </div>55 <div dir=rtl class="test_move_by_word" title="21 15 8 4|4 8 15 " contenteditable> abc אבצ def </div>56 <div dir=rtl class="test_move_by_word" title="42 35 29 22 15 7 4|4 7 15 22 29 35 " contenteditable> abc def אבצ דדפ hij opq </div>57 <div dir=rtl class="test_move_by_word" title="63 49 56 43 36 29 22 7 14 4|4 14 7 22 29 36 43 56 49 " contenteditable> abc def hij אבצ דעפ היח opq rst uvw </div>58 <div dir=rtl class="test_move_by_word" title="28 22 15 8 4|4 8 15 22 " contenteditable> אבצ דעפ חיח ופק </div>59 <div dir=rtl class="test_move_by_word" title="21 15 8 4|4 8 15 " contenteditable> אבצ abc דעפ </div>60 <div dir=rtl class="test_move_by_word" title="40 34 28 21 15 8 4|4 8 15 21 28 34 " contenteditable> אבצ דעפ abc def חיח ופק </div>61 <div dir=rtl class="test_move_by_word" title="58 52 47 41 28 34 22 15 8 4|4 8 15 22 34 28 41 47 52 " contenteditable> אבצ דעפ חיח abc def jih ופק ופק רסת </div>53 <div dir=rtl class="test_move_by_word" title="18 3 7 14 0|0 14 7 3 18" contenteditable>abc def hij opq</div> 54 <div dir=rtl class="test_move_by_word" title="28 7 14 21 4|4 21 14 7 28" contenteditable> abc def hij opq </div> 55 <div dir=rtl class="test_move_by_word" title="21 15 8 4|4 8 15 21" contenteditable> abc אבצ def </div> 56 <div dir=rtl class="test_move_by_word" title="42 35 29 22 15 7 4|4 7 15 22 29 35 42" contenteditable> abc def אבצ דדפ hij opq </div> 57 <div dir=rtl class="test_move_by_word" title="63 49 56 43 36 29 22 7 14 4|4 14 7 22 29 36 43 56 49 63" contenteditable> abc def hij אבצ דעפ היח opq rst uvw </div> 58 <div dir=rtl class="test_move_by_word" title="28 22 15 8 4|4 8 15 22 28" contenteditable> אבצ דעפ חיח ופק </div> 59 <div dir=rtl class="test_move_by_word" title="21 15 8 4|4 8 15 21" contenteditable> אבצ abc דעפ </div> 60 <div dir=rtl class="test_move_by_word" title="40 34 28 21 15 8 4|4 8 15 21 28 34 40" contenteditable> אבצ דעפ abc def חיח ופק </div> 61 <div dir=rtl class="test_move_by_word" title="58 52 47 41 28 34 22 15 8 4|4 8 15 22 34 28 41 47 52 58" contenteditable> אבצ דעפ חיח abc def jih ופק ופק רסת </div> 62 62 63 63 <!-- multispaces while preserving spaces --> 64 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 11 15 |18 15 11 4 0" contenteditable>abc def hij opq</div>65 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 11 18 25 |32 25 18 11 4 0" contenteditable> abc def hij opq </div>66 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 11 18 |25 18 11 4 0" contenteditable> abc אבצ def </div>67 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 11 18 21 32 39 |46 39 32 21 18 11 4 0" contenteditable> abc def אבצ דדפ hij opq </div>68 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 11 18 25 35 28 46 53 60 |67 60 53 46 28 35 25 18 11 4 0" contenteditable> abc def hij אבצ דעפ היח opq rst uvw </div>69 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 21 14 7 |32 7 14 21 4 0" contenteditable> אבצ דעפ חיח ופק </div>70 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 11 18 |26 18 11 4 0" contenteditable> אבצ abc דעפ </div>71 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 7 18 24 30 33 |44 33 30 24 18 7 4 0" contenteditable> אבצ דעפ abc def חיח ופק </div>72 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 14 7 25 31 37 43 51 46 |63 46 51 43 37 31 25 7 14 4 0" contenteditable> אבצ דעפ חיח abc def jih ופק ופק רסת </div>64 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 11 15 18|18 15 11 4 0" contenteditable>abc def hij opq</div> 65 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 11 18 25 32|32 25 18 11 4 0" contenteditable> abc def hij opq </div> 66 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 11 18 25|25 18 11 4 0" contenteditable> abc אבצ def </div> 67 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 11 18 21 32 39 46|46 39 32 21 18 11 4 0" contenteditable> abc def אבצ דדפ hij opq </div> 68 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 11 18 25 35 28 46 53 60 67|67 60 53 46 28 35 25 18 11 4 0" contenteditable> abc def hij אבצ דעפ היח opq rst uvw </div> 69 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 21 14 7 32|32 7 14 21 4 0" contenteditable> אבצ דעפ חיח ופק </div> 70 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 11 18 26|26 18 11 4 0" contenteditable> אבצ abc דעפ </div> 71 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 7 18 24 30 33 44|44 33 30 24 18 7 4 0" contenteditable> אבצ דעפ abc def חיח ופק </div> 72 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 14 7 25 31 37 43 51 46 63|63 46 51 43 37 31 25 7 14 4 0" contenteditable> אבצ דעפ חיח abc def jih ופק ופק רסת </div> 73 73 74 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 14 7 3 |18 3 7 14 0" contenteditable>אבצ דעפ היח ופק</div>75 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 7 3 15 19 23 |26 23 19 15 3 7 0" contenteditable>אבצ דעפ היח abc def hij</div>76 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 8 15 22 18 30 34 38 |41 38 34 30 18 22 15 8 4 0" contenteditable>abc def hij אבצ דעפ היח opq rst uvw</div>74 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 14 7 3 18|18 3 7 14 0" contenteditable>אבצ דעפ היח ופק</div> 75 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 7 3 15 19 23 26|26 23 19 15 3 7 0" contenteditable>אבצ דעפ היח abc def hij</div> 76 <div style="white-space:pre" dir=ltr class="test_move_by_word" title="0 4 8 15 22 18 30 34 38 41|41 38 34 30 18 22 15 8 4 0" contenteditable>abc def hij אבצ דעפ היח opq rst uvw</div> 77 77 78 <div style="white-space:pre" dir=rtl class="test_move_by_word" title="18 3 7 14 0|0 14 7 3 " contenteditable>abc def hij opq</div>79 <div style="white-space:pre" dir=rtl class="test_move_by_word" title="32 7 14 21 4 0|0 4 21 14 7 " contenteditable> abc def hij opq </div>80 <div style="white-space:pre" dir=rtl class="test_move_by_word" title="25 18 11 4 0|0 4 11 18 " contenteditable> abc אבצ def </div>81 <div style="white-space:pre" dir=rtl class="test_move_by_word" title="46 35 32 25 18 7 4 0|0 4 7 18 25 32 35 " contenteditable> abc def אבצ דדפ hij opq </div>82 <div style="white-space:pre" dir=rtl class="test_move_by_word" title="67 49 56 46 39 32 25 7 14 4 0|0 4 14 7 25 32 39 46 56 49 " contenteditable> abc def hij אבצ דעפ היח opq rst uvw </div>83 <div style="white-space:pre" dir=rtl class="test_move_by_word" title="32 25 18 11 4 0|0 4 11 18 25 " contenteditable> אבצ דעפ חיח ופק </div>84 <div style="white-space:pre" dir=rtl class="test_move_by_word" title="26 18 11 4 0|0 4 11 18 " contenteditable> אבצ abc דעפ </div>85 <div style="white-space:pre" dir=rtl class="test_move_by_word" title="44 37 30 21 18 11 4 0|0 4 11 18 21 30 37 " contenteditable> אבצ דעפ abc def חיח ופק </div>86 <div style="white-space:pre" dir=rtl class="test_move_by_word" title="63 55 48 43 28 34 25 18 11 4 0|0 4 11 18 25 34 28 43 48 55 " contenteditable> אבצ דעפ חיח abc def jih ופק ופק רסת </div>78 <div style="white-space:pre" dir=rtl class="test_move_by_word" title="18 3 7 14 0|0 14 7 3 18" contenteditable>abc def hij opq</div> 79 <div style="white-space:pre" dir=rtl class="test_move_by_word" title="32 7 14 21 4 0|0 4 21 14 7 32" contenteditable> abc def hij opq </div> 80 <div style="white-space:pre" dir=rtl class="test_move_by_word" title="25 18 11 4 0|0 4 11 18 25" contenteditable> abc אבצ def </div> 81 <div style="white-space:pre" dir=rtl class="test_move_by_word" title="46 35 32 25 18 7 4 0|0 4 7 18 25 32 35 46" contenteditable> abc def אבצ דדפ hij opq </div> 82 <div style="white-space:pre" dir=rtl class="test_move_by_word" title="67 49 56 46 39 32 25 7 14 4 0|0 4 14 7 25 32 39 46 56 49 67" contenteditable> abc def hij אבצ דעפ היח opq rst uvw </div> 83 <div style="white-space:pre" dir=rtl class="test_move_by_word" title="32 25 18 11 4 0|0 4 11 18 25 32" contenteditable> אבצ דעפ חיח ופק </div> 84 <div style="white-space:pre" dir=rtl class="test_move_by_word" title="26 18 11 4 0|0 4 11 18 26" contenteditable> אבצ abc דעפ </div> 85 <div style="white-space:pre" dir=rtl class="test_move_by_word" title="44 37 30 21 18 11 4 0|0 4 11 18 21 30 37 44" contenteditable> אבצ דעפ abc def חיח ופק </div> 86 <div style="white-space:pre" dir=rtl class="test_move_by_word" title="63 55 48 43 28 34 25 18 11 4 0|0 4 11 18 25 34 28 43 48 55 63" contenteditable> אבצ דעפ חיח abc def jih ופק ופק רסת </div> 87 87 88 88 <!-- test words not separated by spaces --> 89 <div style="white-space:pre" contenteditable dir=ltr class="test_move_by_word" title="0 1 2 3 4 9 10 11 17 21 |24 21 17 11 10 9 4 3 2 1 0">人一氧喝大 笑抬的 abc def</div>89 <div style="white-space:pre" contenteditable dir=ltr class="test_move_by_word" title="0 1 2 3 4 9 10 11 17 21 24|24 21 17 11 10 9 4 3 2 1 0">人一氧喝大 笑抬的 abc def</div> 90 90 91 91 </div> -
trunk/LayoutTests/editing/selection/move-by-word-visually-single-space-inline-element-expected.txt
r91864 r92223 3 3 Test 1, LTR: 4 4 Move right by one word 5 "AAA "[0, 3] 5 "AAA "[0, 3], "BB"[2] 6 6 Move left by one word 7 7 "BB"[2], "AAA "[3, 0] 8 8 Test 2, RTL: 9 9 Move left by one word 10 "AAA "[0, 4] 10 "AAA "[0, 4], "BB"[2] 11 11 Move right by one word 12 12 "BB"[2], "AAA "[4, 0] 13 13 Test 3, LTR: 14 14 Move right by one word 15 "abc def "[0, 4, 8], "hij opq"[4], " rst uvw"[1, 5 ]15 "abc def "[0, 4, 8], "hij opq"[4], " rst uvw"[1, 5, 8] 16 16 Move left by one word 17 17 " rst uvw"[8, 5, 1], "hij opq"[4], "abc def "[8, 4, 0] 18 18 Test 4, RTL: 19 19 Move left by one word 20 "abc def "[0], " rst uvw"[4], "hij opq"[3], "abc def "[7, 3] FAIL expected: ["abc def "[ 0, ]" rst uvw"[ 4, ]"hij opq"[ 7, 3, ]"abc def "[ 7, 3]20 "abc def "[0], " rst uvw"[4], "hij opq"[3], "abc def "[7, 3], " rst uvw"[8] FAIL expected: ["abc def "[ 0, ]" rst uvw"[ 4, ]"hij opq"[ 7, 3, ]"abc def "[ 7, 3, ]" rst uvw"[ 8] 21 21 " rst uvw"[4], "hij opq"[3] FAIL expected "hij opq"[ 7] 22 22 " rst uvw"[3], "hij opq"[3] FAIL expected "hij opq"[ 7] … … 31 31 Test 5, RTL: 32 32 Move left by one word 33 "abc def "[0], " rst uvw"[4], "hij opq"[3], "abc def "[7, 3] FAIL expected: ["abc def "[ 0, ]" rst uvw"[ 4, ]"hij opq"[ 7, 3, ]"abc def "[ 7, 3]33 "abc def "[0], " rst uvw"[4], "hij opq"[3], "abc def "[7, 3], " rst uvw"[8] FAIL expected: ["abc def "[ 0, ]" rst uvw"[ 4, ]"hij opq"[ 7, 3, ]"abc def "[ 7, 3, ]" rst uvw"[ 8] 34 34 " rst uvw"[4], "hij opq"[3] FAIL expected "hij opq"[ 7] 35 35 " rst uvw"[3], "hij opq"[3] FAIL expected "hij opq"[ 7] … … 44 44 Test 6, LTR: 45 45 Move right by one word 46 "abc def "[0, 4, 8], "hij opq"[4], " rst uvw"[1, 5 ]46 "abc def "[0, 4, 8], "hij opq"[4], " rst uvw"[1, 5, 8] 47 47 Move left by one word 48 48 " rst uvw"[8, 5, 1], "hij opq"[4], "abc def "[8, 4, 0] 49 49 Test 7, RTL: 50 50 Move left by one word 51 "ABD DSU "[0, 4, 8], "EJH FUX"[4], "FFZ LIG"[4 ]51 "ABD DSU "[0, 4, 8], "EJH FUX"[4], "FFZ LIG"[4, 7] 52 52 Move right by one word 53 53 "FFZ LIG"[7, 4], "EJH FUX"[4], "ABD DSU "[8, 4, 0] 54 54 Test 8, LTR: 55 55 Move right by one word 56 "ABD DSU "[0], "FFZ LIG"[3], "EJH FUX"[3], "ABD DSU "[7, 3] 56 "ABD DSU "[0], "FFZ LIG"[3], "EJH FUX"[3], "ABD DSU "[7, 3], "FFZ LIG"[7] 57 57 Move left by one word 58 58 "FFZ LIG"[7], "ABD DSU "[3, 7], "EJH FUX"[3], "FFZ LIG"[3], "ABD DSU "[0] 59 59 Test 9, RTL: 60 60 Move left by one word 61 "ABD DSU "[0, 4, 8], "EJH FUX"[4], "FFZ LIG"[4 ]61 "ABD DSU "[0, 4, 8], "EJH FUX"[4], "FFZ LIG"[4, 7] 62 62 Move right by one word 63 63 "FFZ LIG"[7, 4], "EJH FUX"[4], "ABD DSU "[8, 4, 0] 64 64 Test 10, LTR: 65 65 Move right by one word 66 "ABD DSU "[0], "FFZ LIG"[3], "EJH FUX"[3], "ABD DSU "[7, 3] 66 "ABD DSU "[0], "FFZ LIG"[3], "EJH FUX"[3], "ABD DSU "[7, 3], "FFZ LIG"[7] 67 67 Move left by one word 68 68 "FFZ LIG"[7], "ABD DSU "[3, 7], "EJH FUX"[3], "FFZ LIG"[3], "ABD DSU "[0] 69 69 Test 11, RTL: 70 70 Move left by one word 71 "ABD DSU "[0, 4, 8], "abc def"[3], "FFZ LIG"[4 ]71 "ABD DSU "[0, 4, 8], "abc def"[3], "FFZ LIG"[4, 7] 72 72 Move right by one word 73 73 "FFZ LIG"[7, 4], "abc def"[3], "ABD DSU "[8, 4, 0] 74 74 Test 12, LTR: 75 75 Move right by one word 76 "ABD DSU "[0], "FFZ LIG"[3], "ABD DSU "[8], "abc def"[4], "ABD DSU "[7, 3] 76 "ABD DSU "[0], "FFZ LIG"[3], "ABD DSU "[8], "abc def"[4], "ABD DSU "[7, 3], "FFZ LIG"[7] 77 77 Move left by one word 78 78 "FFZ LIG"[7], "ABD DSU "[3, 7], "abc def"[4], "ABD DSU "[8], "FFZ LIG"[3] FAIL expected: ["FFZ LIG"[ 7, ]"ABD DSU "[ 3, 7, ]"abc def"[ 4, ]"ABD DSU "[ 8, ]"FFZ LIG"[ 3, ]"ABD DSU "[ 0] … … 83 83 Test 13, RTL: 84 84 Move left by one word 85 "ABD DSU "[0, 4, 8], "abc def"[3], "FFZ LIG"[4 ]85 "ABD DSU "[0, 4, 8], "abc def"[3], "FFZ LIG"[4, 7] 86 86 Move right by one word 87 87 "FFZ LIG"[7, 4], "abc def"[3], "ABD DSU "[8, 4, 0] 88 88 Test 14, LTR: 89 89 Move right by one word 90 "ABD DSU "[0, 3, 8], "abc def"[4], "FFZ LIG"[3 ]90 "ABD DSU "[0, 3, 8], "abc def"[4], "FFZ LIG"[3, 7] 91 91 Move left by one word 92 92 "FFZ LIG"[7, 3], "abc def"[4], "ABD DSU "[8, 3, 0] 93 93 Test 15, RTL: 94 94 Move left by one word 95 "ABD opq DSU "[0, 4, 8, 12], "abc AAA def"[8, 4, 3], "FFZ rst LIG"[4, 8 ] FAIL expected: ["ABD opq DSU "[ 0, 4, 8, 12, ]"abc AAA def"[ 4, 3, ]"FFZ rst LIG"[ 4, 8]95 "ABD opq DSU "[0, 4, 8, 12], "abc AAA def"[8, 4, 3], "FFZ rst LIG"[4, 8, 11] FAIL expected: ["ABD opq DSU "[ 0, 4, 8, 12, ]"abc AAA def"[ 4, 3, ]"FFZ rst LIG"[ 4, 8, 11] 96 96 "ABD opq DSU "[12], "abc AAA def"[8] FAIL expected "abc AAA def"[ 4] 97 97 "abc AAA def"[10, 8] FAIL expected "abc AAA def"[ 4] … … 121 121 Test 17, RTL: 122 122 Move left by one word 123 "ABD opq DSU "[0, 4, 8, 12], "abc AAA def"[4, 8], "FFZ rst LIG"[4, 8 ]123 "ABD opq DSU "[0, 4, 8, 12], "abc AAA def"[4, 8], "FFZ rst LIG"[4, 8, 11] 124 124 Move right by one word 125 125 "FFZ rst LIG"[11, 8, 4], "abc AAA def"[8, 4], "ABD opq DSU "[12, 8, 4, 0] … … 131 131 Test 19, LTR: 132 132 Move right by one word 133 "aaa "[0, 4], "bbb AAA "[4, 7] 133 "aaa "[0, 4], "bbb AAA "[4, 7], "FFZ"[3] 134 134 Move left by one word 135 135 "FFZ"[3], "bbb AAA "[7, 4], "aaa "[4, 0] 136 136 Test 20, RTL: 137 137 Move left by one word 138 "ABD opq rst DSU "[0, 4, 7, 12, 16], "abc uvw AAA def lmn"[12, 8, 7, 3], "ABW hij xyz FXX"[4, 7, 12 ] FAIL expected: ["ABD opq rst DSU "[ 0, 4, 7, 12, 16, ]"abc uvw AAA def lmn"[ 15, 8, 7, 3, ]"ABW hij xyz FXX"[ 4, 7, 12]138 "ABD opq rst DSU "[0, 4, 7, 12, 16], "abc uvw AAA def lmn"[12, 8, 7, 3], "ABW hij xyz FXX"[4, 7, 12, 15] FAIL expected: ["ABD opq rst DSU "[ 0, 4, 7, 12, 16, ]"abc uvw AAA def lmn"[ 15, 8, 7, 3, ]"ABW hij xyz FXX"[ 4, 7, 12, 15] 139 139 "ABD opq rst DSU "[16], "abc uvw AAA def lmn"[12] FAIL expected "abc uvw AAA def lmn"[ 15] 140 140 "abc uvw AAA def lmn"[18, 12] FAIL expected "abc uvw AAA def lmn"[ 15] -
trunk/LayoutTests/editing/selection/move-by-word-visually-single-space-inline-element.html
r91864 r92223 36 36 --> 37 37 <!-- Inline element --> 38 <div dir=ltr id="d_1" class="test_move_by_word" title="[d_1, 0][d_1, 3] |[s_1, 2][d_1, 3][d_1,0]" contenteditable>אאא <span id="s_1">בב</span></div>39 <div dir=rtl id="d_2" class="test_move_by_word" title="[s_2, 2][d_2, 4][d_2, 0]|[d_2, 0][d_2, 4] " contenteditable>אאא <span id="s_2">בב</span></div>38 <div dir=ltr id="d_1" class="test_move_by_word" title="[d_1, 0][d_1, 3][s_1, 2]|[s_1, 2][d_1, 3][d_1,0]" contenteditable>אאא <span id="s_1">בב</span></div> 39 <div dir=rtl id="d_2" class="test_move_by_word" title="[s_2, 2][d_2, 4][d_2, 0]|[d_2, 0][d_2, 4][s_2, 2]" contenteditable>אאא <span id="s_2">בב</span></div> 40 40 41 41 <!-- pure English in inline element with same or different directionality from its parent --> 42 <div dir=ltr id="d_3" class="test_move_by_word" title="[d_3, 0][d_3, 4][d_3, 8][s_3, 4][d_3, 1, 3][d_3, 5, 3] |[d_3, 8, 3][d_3, 5, 3][d_3, 1, 3][s_3, 4][d_3, 8][d_3, 4][d_3, 0]" contenteditable>abc def <span id="s_3">hij opq</span> rst uvw</div>42 <div dir=ltr id="d_3" class="test_move_by_word" title="[d_3, 0][d_3, 4][d_3, 8][s_3, 4][d_3, 1, 3][d_3, 5, 3][d_3, 8, 3]|[d_3, 8, 3][d_3, 5, 3][d_3, 1, 3][s_3, 4][d_3, 8][d_3, 4][d_3, 0]" contenteditable>abc def <span id="s_3">hij opq</span> rst uvw</div> 43 43 44 44 <!-- FAILED --> 45 <div dir=rtl id="d_4" class="test_move_by_word" title="[d_4, 8, 3][d_4, 3, 1][d_4, 7, 1][s_4, 3, 1][s_4, 7, 1][d_4, 4, 3][d_4, 0, 1]|[d_4, 0, 1][d_4, 4, 3][s_4, 7, 1][s_4, 3, 1][d_4, 7, 1][d_4, 3, 1] " contenteditable>abc def <span id="s_4">hij opq</span> rst uvw</div>45 <div dir=rtl id="d_4" class="test_move_by_word" title="[d_4, 8, 3][d_4, 3, 1][d_4, 7, 1][s_4, 3, 1][s_4, 7, 1][d_4, 4, 3][d_4, 0, 1]|[d_4, 0, 1][d_4, 4, 3][s_4, 7, 1][s_4, 3, 1][d_4, 7, 1][d_4, 3, 1][d_4, 8, 3]" contenteditable>abc def <span id="s_4">hij opq</span> rst uvw</div> 46 46 47 47 <!-- FAILED. The render result is the same as d_4. --> 48 <div id="d_5" dir=rtl class="test_move_by_word" title="[d_5, 8, 3][d_5, 3, 1][d_5, 7, 1][s_5, 3, 1][s_5, 7, 1][d_5, 4, 3][d_5, 0, 1]|[d_5, 0, 1][d_5, 4, 3][s_5, 7, 1][s_5, 3, 1][d_5, 7, 1][d_5, 3, 1] "contenteditable>abc def <span dir=ltr id="s_5">hij opq</span> rst uvw</div>48 <div id="d_5" dir=rtl class="test_move_by_word" title="[d_5, 8, 3][d_5, 3, 1][d_5, 7, 1][s_5, 3, 1][s_5, 7, 1][d_5, 4, 3][d_5, 0, 1]|[d_5, 0, 1][d_5, 4, 3][s_5, 7, 1][s_5, 3, 1][d_5, 7, 1][d_5, 3, 1][d_5, 8, 3]"contenteditable>abc def <span dir=ltr id="s_5">hij opq</span> rst uvw</div> 49 49 50 <div id="d_6" dir=ltr class="test_move_by_word" title="[d_6, 0, 1][d_6, 4, 1][d_6, 8, 1][s_6, 4, 1][d_6, 1, 3][d_6, 5, 3] |[d_6, 8, 3][d_6, 5, 3][d_6, 1, 3][s_6, 4, 1][d_6, 8, 1][d_6, 4, 1][d_6, 0, 1]" contenteditable>abc def <span dir=rtl id="s_6">hij opq</span> rst uvw</div>50 <div id="d_6" dir=ltr class="test_move_by_word" title="[d_6, 0, 1][d_6, 4, 1][d_6, 8, 1][s_6, 4, 1][d_6, 1, 3][d_6, 5, 3][d_6, 8, 3]|[d_6, 8, 3][d_6, 5, 3][d_6, 1, 3][s_6, 4, 1][d_6, 8, 1][d_6, 4, 1][d_6, 0, 1]" contenteditable>abc def <span dir=rtl id="s_6">hij opq</span> rst uvw</div> 51 51 52 52 <!-- pure Hebrew in inline element with same or different directionality from its parent --> 53 53 54 <div id="d_7" dir=rtl class="test_move_by_word" title="[d_7, 7, 3][d_7, 4, 3][s_7, 4, 1][d_7, 8, 1][d_7, 4, 1][d_7, 0, 1]|[d_7, 0, 1][d_7, 4, 1][d_7, 8, 1][s_7, 4, 1][d_7, 4, 3] " contenteditable>אבד דעפ <span dir=ltr id="s_7">היח ופק</span>ווש כטז</div>54 <div id="d_7" dir=rtl class="test_move_by_word" title="[d_7, 7, 3][d_7, 4, 3][s_7, 4, 1][d_7, 8, 1][d_7, 4, 1][d_7, 0, 1]|[d_7, 0, 1][d_7, 4, 1][d_7, 8, 1][s_7, 4, 1][d_7, 4, 3][d_7, 7, 3]" contenteditable>אבד דעפ <span dir=ltr id="s_7">היח ופק</span>ווש כטז</div> 55 55 56 <div id="d_8" dir=ltr class="test_move_by_word" title="[d_8, 0, 1][d_8, 3, 3][s_8, 3, 1][d_8, 7, 1][d_8, 3, 1] |[d_8, 7, 3][d_8, 3, 1][d_8, 7, 1][s_8, 3, 1][d_8, 3, 3][d_8, 0, 1]" contenteditable>אבד דעפ <span dir=rtl id="s_8">היח ופק</span>ווש כטז</div>56 <div id="d_8" dir=ltr class="test_move_by_word" title="[d_8, 0, 1][d_8, 3, 3][s_8, 3, 1][d_8, 7, 1][d_8, 3, 1][d_8, 7, 3]|[d_8, 7, 3][d_8, 3, 1][d_8, 7, 1][s_8, 3, 1][d_8, 3, 3][d_8, 0, 1]" contenteditable>אבד דעפ <span dir=rtl id="s_8">היח ופק</span>ווש כטז</div> 57 57 58 <div id="d_9" dir=rtl class="test_move_by_word" title="[d_9, 7, 3][d_9, 4, 3][s_9, 4, 1][d_9, 8, 1][d_9, 4, 1][d_9, 0, 1]|[d_9, 0, 1][d_9, 4, 1][d_9, 8, 1][s_9, 4, 1][d_9, 4, 3] " contenteditable>אבד דעפ <span id="s_9">היח ופק</span>ווש כטז</div>58 <div id="d_9" dir=rtl class="test_move_by_word" title="[d_9, 7, 3][d_9, 4, 3][s_9, 4, 1][d_9, 8, 1][d_9, 4, 1][d_9, 0, 1]|[d_9, 0, 1][d_9, 4, 1][d_9, 8, 1][s_9, 4, 1][d_9, 4, 3][d_9, 7, 3]" contenteditable>אבד דעפ <span id="s_9">היח ופק</span>ווש כטז</div> 59 59 60 <div id="d_10" dir=ltr class="test_move_by_word" title="[d_10, 0, 1][d_10, 3, 3][s_10, 3, 1][d_10, 7, 1][d_10, 3, 1] |[d_10, 7, 3][d_10, 3, 1][d_10, 7, 1][s_10, 3, 1][d_10, 3, 3][d_10, 0, 1]" contenteditable>אבד דעפ <span id="s_10">היח ופק</span>ווש כטז</div>60 <div id="d_10" dir=ltr class="test_move_by_word" title="[d_10, 0, 1][d_10, 3, 3][s_10, 3, 1][d_10, 7, 1][d_10, 3, 1][d_10, 7, 3]|[d_10, 7, 3][d_10, 3, 1][d_10, 7, 1][s_10, 3, 1][d_10, 3, 3][d_10, 0, 1]" contenteditable>אבד דעפ <span id="s_10">היח ופק</span>ווש כטז</div> 61 61 62 62 <!-- bidi in inline element with same or different directionality from its parent --> 63 <div id="d_11" dir=rtl class="test_move_by_word" title="[d_11, 7, 3][d_11, 4, 3][s_11, 3, 1][d_11, 8, 1][d_11, 4, 1][d_11, 0, 1]|[d_11, 0, 1][d_11, 4, 1][d_11, 8, 1][s_11, 3, 1][d_11, 4, 3] " contenteditable>אבד דעפ <span dir=ltr id="s_11">abc def</span>ווש כטז</div>63 <div id="d_11" dir=rtl class="test_move_by_word" title="[d_11, 7, 3][d_11, 4, 3][s_11, 3, 1][d_11, 8, 1][d_11, 4, 1][d_11, 0, 1]|[d_11, 0, 1][d_11, 4, 1][d_11, 8, 1][s_11, 3, 1][d_11, 4, 3][d_11, 7, 3]" contenteditable>אבד דעפ <span dir=ltr id="s_11">abc def</span>ווש כטז</div> 64 64 65 65 <!-- FAIL --> 66 <div id="d_12" dir=ltr class="test_move_by_word" title="[d_12, 0, 1][d_12, 3, 3][d_12, 8, 1][s_12, 4, 1][d_12, 7, 1][d_12, 3, 1] |[d_12, 7, 3][d_12, 3, 1][d_12, 7, 1][s_12, 4, 1][d_12, 8, 1][d_12, 3, 3][d_12, 0]" contenteditable>אבד דעפ <span dir=rtl id="s_12">abc def</span>ווש כטז</div>66 <div id="d_12" dir=ltr class="test_move_by_word" title="[d_12, 0, 1][d_12, 3, 3][d_12, 8, 1][s_12, 4, 1][d_12, 7, 1][d_12, 3, 1][d_12, 7, 3]|[d_12, 7, 3][d_12, 3, 1][d_12, 7, 1][s_12, 4, 1][d_12, 8, 1][d_12, 3, 3][d_12, 0]" contenteditable>אבד דעפ <span dir=rtl id="s_12">abc def</span>ווש כטז</div> 67 67 68 <div id="d_13" dir=rtl class="test_move_by_word" title="[d_13, 7, 3][d_13, 4, 3][s_13, 3, 1][d_13, 8, 1][d_13, 4, 1][d_13, 0, 1]|[d_13, 0, 1][d_13, 4, 1][d_13, 8, 1][s_13, 3, 1][d_13, 4, 3] " contenteditable>אבד דעפ <span id="s_13">abc def</span>ווש כטז</div>68 <div id="d_13" dir=rtl class="test_move_by_word" title="[d_13, 7, 3][d_13, 4, 3][s_13, 3, 1][d_13, 8, 1][d_13, 4, 1][d_13, 0, 1]|[d_13, 0, 1][d_13, 4, 1][d_13, 8, 1][s_13, 3, 1][d_13, 4, 3][d_13, 7, 3]" contenteditable>אבד דעפ <span id="s_13">abc def</span>ווש כטז</div> 69 69 70 <div id="d_14" dir=ltr class="test_move_by_word" title="[d_14, 0, 1][d_14, 3, 1][d_14, 8, 1][s_14, 4, 1][d_14, 3, 3] |[d_14, 7, 3][d_14, 3, 3][s_14, 4, 1][d_14, 8, 1][d_14, 3, 1][d_14, 0, 1]" contenteditable>אבד דעפ <span id="s_14">abc def</span>ווש כטז</div>70 <div id="d_14" dir=ltr class="test_move_by_word" title="[d_14, 0, 1][d_14, 3, 1][d_14, 8, 1][s_14, 4, 1][d_14, 3, 3][d_14, 7, 3]|[d_14, 7, 3][d_14, 3, 3][s_14, 4, 1][d_14, 8, 1][d_14, 3, 1][d_14, 0, 1]" contenteditable>אבד דעפ <span id="s_14">abc def</span>ווש כטז</div> 71 71 72 72 <!-- FAILED --> 73 <div id="d_15" dir=rtl class="test_move_by_word" title="[d_15, 11, 3][d_15, 8, 3][d_15, 4, 3][s_15, 3, 1][s_15, 4, 1][d_15, 12, 1][d_15, 8, 1][d_15, 4, 1][d_15, 0, 1]|[d_15, 0, 1][d_15, 4, 1][d_15, 8, 1][d_15, 12, 1][s_15, 4, 1][s_15, 3, 1][d_15, 4, 3][d_15, 8, 3] " contenteditable>אבד opq דעפ <span dir=ltr id="s_15">abc אאא def</span>ווש rst כטז</div>73 <div id="d_15" dir=rtl class="test_move_by_word" title="[d_15, 11, 3][d_15, 8, 3][d_15, 4, 3][s_15, 3, 1][s_15, 4, 1][d_15, 12, 1][d_15, 8, 1][d_15, 4, 1][d_15, 0, 1]|[d_15, 0, 1][d_15, 4, 1][d_15, 8, 1][d_15, 12, 1][s_15, 4, 1][s_15, 3, 1][d_15, 4, 3][d_15, 8, 3][d_15, 11, 3]" contenteditable>אבד opq דעפ <span dir=ltr id="s_15">abc אאא def</span>ווש rst כטז</div> 74 74 75 75 <!-- FAILED, and wrong printing result --> … … 77 77 78 78 <!-- FAILED --> 79 <div id="d_17" dir=rtl class="test_move_by_word" title="[d_17, 11, 3][d_17, 8, 3][d_17, 4, 3][s_17, 8, 1][s_17, 4, 1][d_17, 12, 1][d_17, 8, 1][d_17, 4, 1][d_17, 0, 1]|[d_17, 0, 1][d_17, 4, 1][d_17, 8, 1][d_17, 12, 1][s_17, 4, 1][s_17, 8, 1][d_17, 4, 3][d_17, 8, 3] " contenteditable>אבד opq דעפ <span id="s_17">abc אאא def</span>ווש rst כטז</div>79 <div id="d_17" dir=rtl class="test_move_by_word" title="[d_17, 11, 3][d_17, 8, 3][d_17, 4, 3][s_17, 8, 1][s_17, 4, 1][d_17, 12, 1][d_17, 8, 1][d_17, 4, 1][d_17, 0, 1]|[d_17, 0, 1][d_17, 4, 1][d_17, 8, 1][d_17, 12, 1][s_17, 4, 1][s_17, 8, 1][d_17, 4, 3][d_17, 8, 3][d_17, 11, 3]" contenteditable>אבד opq דעפ <span id="s_17">abc אאא def</span>ווש rst כטז</div> 80 80 81 81 <div id="d_18" dir=ltr class="test_move_by_word" title="[d_18, 0, 1][d_18, 4, 1][d_18, 8, 1][d_18, 12, 1][s_18, 4, 1][s_18, 8, 1][d_18, 4, 3][d_18, 8, 3][d_18, 11, 3]|[d_18, 11, 3][d_18, 8, 3][d_18, 4, 3][s_18, 8, 1][s_18, 4, 1][d_18, 12, 1][d_18, 8, 1][d_18, 4, 1][d_18, 0, 1]" contenteditable>אבד opq דעפ <span id="s_18">abc אאא def</span>ווש rst כטז</div> 82 82 83 <div id="d_19" dir=ltr class="test_move_by_word" title="[d_19, 0, 1][d_19, 4, 1][s_19, 4, 1][s_19, 7, 1] |[d_19, 3, 3][s_19, 7, 1][s_19, 4, 1][d_19, 4, 1][d_19, 0, 1]" contenteditable>aaa <span id="s_19">bbb אאא </span>ווש</div>83 <div id="d_19" dir=ltr class="test_move_by_word" title="[d_19, 0, 1][d_19, 4, 1][s_19, 4, 1][s_19, 7, 1][d_19, 3, 3]|[d_19, 3, 3][s_19, 7, 1][s_19, 4, 1][d_19, 4, 1][d_19, 0, 1]" contenteditable>aaa <span id="s_19">bbb אאא </span>ווש</div> 84 84 85 <div id="d_20" dir=rtl class="test_move_by_word" title="[d_20, 15, 3][d_20, 12, 3][d_20, 7, 3][d_20, 4, 3][s_20, 3, 1][s_20, 7, 1][s_20, 8, 1][s_20, 15, 1][d_20, 16, 1][d_20, 12, 1][d_20, 7, 1][d_20, 4, 1][d_20, 0, 1]|[d_20, 0, 1][d_20, 4, 1][d_20, 7, 1][d_20, 12, 1][d_20, 16, 1][s_20, 15, 1][s_20, 8, 1][s_20, 7, 1][s_20, 3, 1][d_20, 4, 3][d_20, 7, 3][d_20, 12, 3] " contenteditable>אבד opq rst דעפ <span dir=ltr id="s_20">abc uvw אאא def lmn</span>אבצ hij xyz וקק</div>85 <div id="d_20" dir=rtl class="test_move_by_word" title="[d_20, 15, 3][d_20, 12, 3][d_20, 7, 3][d_20, 4, 3][s_20, 3, 1][s_20, 7, 1][s_20, 8, 1][s_20, 15, 1][d_20, 16, 1][d_20, 12, 1][d_20, 7, 1][d_20, 4, 1][d_20, 0, 1]|[d_20, 0, 1][d_20, 4, 1][d_20, 7, 1][d_20, 12, 1][d_20, 16, 1][s_20, 15, 1][s_20, 8, 1][s_20, 7, 1][s_20, 3, 1][d_20, 4, 3][d_20, 7, 3][d_20, 12, 3][d_20, 15, 3]" contenteditable>אבד opq rst דעפ <span dir=ltr id="s_20">abc uvw אאא def lmn</span>אבצ hij xyz וקק</div> 86 86 87 87 </div> -
trunk/LayoutTests/editing/selection/move-by-word-visually-single-space-one-element-expected.txt
r91864 r92223 3 3 Test 1, LTR: 4 4 Move right by one word 5 "abc def hij opq rst"[0, 4, 8, 12, 16 ]5 "abc def hij opq rst"[0, 4, 8, 12, 16, 19] 6 6 Move left by one word 7 7 "abc def hij opq rst"[19, 16, 12, 8, 4, 0] 8 8 Test 2, RTL: 9 9 Move left by one word 10 "abc def hij opq rst"[0, 15, 11, 7, 3 ]10 "abc def hij opq rst"[0, 15, 11, 7, 3, 19] 11 11 Move right by one word 12 12 "abc def hij opq rst"[19, 3, 7, 11, 15, 0] 13 13 Test 3, LTR: 14 14 Move right by one word 15 "ZZZ QQQ BBB CCC XXX"[0, 15, 11, 7, 3 ]15 "ZZZ QQQ BBB CCC XXX"[0, 15, 11, 7, 3, 19] 16 16 Move left by one word 17 17 "ZZZ QQQ BBB CCC XXX"[19, 3, 7, 11, 15, 0] 18 18 Test 4, RTL: 19 19 Move left by one word 20 "ZZZ QQQ BBB CCC XXX"[0, 4, 8, 12, 16 ]20 "ZZZ QQQ BBB CCC XXX"[0, 4, 8, 12, 16, 19] 21 21 Move right by one word 22 22 "ZZZ QQQ BBB CCC XXX"[19, 16, 12, 8, 4, 0] 23 23 Test 5, LTR: 24 24 Move right by one word 25 "abc def hij AAA BBB WWW opr uvw xyz"[0, 4, 8, 12, 19, 15, 24, 28, 32 ]25 "abc def hij AAA BBB WWW opr uvw xyz"[0, 4, 8, 12, 19, 15, 24, 28, 32, 35] 26 26 Move left by one word 27 27 "abc def hij AAA BBB WWW opr uvw xyz"[35, 32, 28, 24, 15, 19, 12, 8, 4, 0] 28 28 Test 6, RTL: 29 29 Move left by one word 30 "abc def hij AAA BBB WWW opr uvw xyz"[0, 7, 3, 12, 16, 20, 24, 31, 27 ]30 "abc def hij AAA BBB WWW opr uvw xyz"[0, 7, 3, 12, 16, 20, 24, 31, 27, 35] 31 31 Move right by one word 32 32 "abc def hij AAA BBB WWW opr uvw xyz"[35, 27, 31, 24, 20, 16, 12, 3, 7, 0] 33 33 Test 7, LTR: 34 34 Move right by one word 35 "abc def ZQB RIG uvw xyz"[0, 4, 8, 11, 16, 20 ]35 "abc def ZQB RIG uvw xyz"[0, 4, 8, 11, 16, 20, 23] 36 36 Move left by one word 37 37 "abc def ZQB RIG uvw xyz"[23, 20, 16, 11, 8, 4, 0] 38 38 Test 8, RTL: 39 39 Move left by one word 40 "abc def ZQB RIG uvw xyz"[0, 3, 8, 12, 16, 19 ]40 "abc def ZQB RIG uvw xyz"[0, 3, 8, 12, 16, 19, 23] 41 41 Move right by one word 42 42 "abc def ZQB RIG uvw xyz"[23, 19, 16, 12, 8, 3, 0] 43 43 Test 9, LTR: 44 44 Move right by one word 45 "aaa AAA bbb"[0, 4, 8 ]45 "aaa AAA bbb"[0, 4, 8, 11] 46 46 Move left by one word 47 47 "aaa AAA bbb"[11, 8, 4, 0] … … 53 53 Test 11, LTR: 54 54 Move right by one word 55 "AAA BBB WWW aaa bbb ccc DDD SSS UUU"[0, 7, 3, 12, 16, 20, 24, 31, 27 ]55 "AAA BBB WWW aaa bbb ccc DDD SSS UUU"[0, 7, 3, 12, 16, 20, 24, 31, 27, 35] 56 56 Move left by one word 57 57 "AAA BBB WWW aaa bbb ccc DDD SSS UUU"[35, 27, 31, 24, 20, 16, 12, 3, 7, 0] 58 58 Test 12, RTL: 59 59 Move left by one word 60 "AAA BBB WWW aaa bbb ccc DDD SSS UUU"[0, 4, 8, 12, 19, 15, 24, 28, 32 ]60 "AAA BBB WWW aaa bbb ccc DDD SSS UUU"[0, 4, 8, 12, 19, 15, 24, 28, 32, 35] 61 61 Move right by one word 62 62 "AAA BBB WWW aaa bbb ccc DDD SSS UUU"[35, 32, 28, 24, 15, 19, 12, 8, 4, 0] 63 63 Test 13, LTR: 64 64 Move right by one word 65 "AAA BBB aaa bbb WWW DDD"[0, 3, 8, 12, 16, 19 ]65 "AAA BBB aaa bbb WWW DDD"[0, 3, 8, 12, 16, 19, 23] 66 66 Move left by one word 67 67 "AAA BBB aaa bbb WWW DDD"[23, 19, 16, 12, 8, 3, 0] 68 68 Test 14, RTL: 69 69 Move left by one word 70 "AAA BBB aaa bbb WWW DDD"[0, 4, 8, 11, 16, 20 ]70 "AAA BBB aaa bbb WWW DDD"[0, 4, 8, 11, 16, 20, 23] 71 71 Move right by one word 72 72 "AAA BBB aaa bbb WWW DDD"[23, 20, 16, 11, 8, 4, 0] … … 78 78 Test 16, RTL: 79 79 Move left by one word 80 "ZQB abc RIG"[0, 4, 8 ]80 "ZQB abc RIG"[0, 4, 8, 11] 81 81 Move right by one word 82 82 "ZQB abc RIG"[11, 8, 4, 0] -
trunk/LayoutTests/editing/selection/move-by-word-visually-single-space-one-element.html
r91864 r92223 36 36 --> 37 37 <!-- pure English --> 38 <div dir=ltr class="test_move_by_word" title="0 4 8 12 16 |19 16 12 8 4 0" contenteditable>abc def hij opq rst</div>39 <div dir=rtl class="test_move_by_word" title="19 3 7 11 15 0|0 15 11 7 3 " contenteditable>abc def hij opq rst</div>38 <div dir=ltr class="test_move_by_word" title="0 4 8 12 16 19|19 16 12 8 4 0" contenteditable>abc def hij opq rst</div> 39 <div dir=rtl class="test_move_by_word" title="19 3 7 11 15 0|0 15 11 7 3 19" contenteditable>abc def hij opq rst</div> 40 40 41 41 <!-- pure Hebrew --> 42 <div dir=ltr class="test_move_by_word" title="0 15 11 7 3 |19 3 7 11 15 0" contenteditable>ששש נננ בבב גגג קקק</div>43 <div dir=rtl class="test_move_by_word" title="19 16 12 8 4 0|0 4 8 12 16 " contenteditable>ששש נננ בבב גגג קקק</div>42 <div dir=ltr class="test_move_by_word" title="0 15 11 7 3 19|19 3 7 11 15 0" contenteditable>ששש נננ בבב גגג קקק</div> 43 <div dir=rtl class="test_move_by_word" title="19 16 12 8 4 0|0 4 8 12 16 19" contenteditable>ששש נננ בבב גגג קקק</div> 44 44 45 45 <!-- bidi text --> 46 46 <!-- English Hebrew English --> 47 <div dir=ltr class="test_move_by_word" title="0 4 8 12 19 15 24 28 32 |35 32 28 24 15 19 12 8 4 0" contenteditable>abc def hij אאא בבב צצצ opr uvw xyz</div>48 <div dir=rtl class="test_move_by_word" title="35 27 31 24 20 16 12 3 7 0|0 7 3 12 16 20 24 31 27 " contenteditable>abc def hij אאא בבב צצצ opr uvw xyz</div>47 <div dir=ltr class="test_move_by_word" title="0 4 8 12 19 15 24 28 32 35|35 32 28 24 15 19 12 8 4 0" contenteditable>abc def hij אאא בבב צצצ opr uvw xyz</div> 48 <div dir=rtl class="test_move_by_word" title="35 27 31 24 20 16 12 3 7 0|0 7 3 12 16 20 24 31 27 35" contenteditable>abc def hij אאא בבב צצצ opr uvw xyz</div> 49 49 50 <div dir=ltr class="test_move_by_word" title="0 4 8 11 16 20 |23 20 16 11 8 4 0" contenteditable>abc def שנב סטז uvw xyz</div>51 <div dir=rtl class="test_move_by_word" title="23 19 16 12 8 3 0|0 3 8 12 16 19 " contenteditable>abc def שנב סטז uvw xyz</div>50 <div dir=ltr class="test_move_by_word" title="0 4 8 11 16 20 23|23 20 16 11 8 4 0" contenteditable>abc def שנב סטז uvw xyz</div> 51 <div dir=rtl class="test_move_by_word" title="23 19 16 12 8 3 0|0 3 8 12 16 19 23" contenteditable>abc def שנב סטז uvw xyz</div> 52 52 53 <div dir=ltr class="test_move_by_word" title="0 4 8 |11 8 4 0" contenteditable>aaa אאא bbb</div>53 <div dir=ltr class="test_move_by_word" title="0 4 8 11|11 8 4 0" contenteditable>aaa אאא bbb</div> 54 54 <div dir=rtl class="test_move_by_word" title="11 8 4 0|0 4 8 11" contenteditable>aaa אאא bbb</div> 55 55 56 56 <!-- Hebrew English Hebrew --> 57 <div dir=ltr class="test_move_by_word" title="0 7 3 12 16 20 24 31 27 |35 27 31 24 20 16 12 3 7 0" contenteditable>אאא בבב צצצ aaa bbb ccc דדד עעע פפפ</div>58 <div dir=rtl class="test_move_by_word" title="35 32 28 24 15 19 12 8 4 0|0 4 8 12 19 15 24 28 32 " contenteditable>אאא בבב צצצ aaa bbb ccc דדד עעע פפפ</div>57 <div dir=ltr class="test_move_by_word" title="0 7 3 12 16 20 24 31 27 35|35 27 31 24 20 16 12 3 7 0" contenteditable>אאא בבב צצצ aaa bbb ccc דדד עעע פפפ</div> 58 <div dir=rtl class="test_move_by_word" title="35 32 28 24 15 19 12 8 4 0|0 4 8 12 19 15 24 28 32 35" contenteditable>אאא בבב צצצ aaa bbb ccc דדד עעע פפפ</div> 59 59 60 <div dir=ltr class="test_move_by_word" title="0 3 8 12 16 19 |23 19 16 12 8 3 0" contenteditable>אאא בבב aaa bbb צצצ דדד</div>61 <div dir=rtl class="test_move_by_word" title="23 20 16 11 8 4 0|0 4 8 11 16 20 " contenteditable>אאא בבב aaa bbb צצצ דדד</div>60 <div dir=ltr class="test_move_by_word" title="0 3 8 12 16 19 23|23 19 16 12 8 3 0" contenteditable>אאא בבב aaa bbb צצצ דדד</div> 61 <div dir=rtl class="test_move_by_word" title="23 20 16 11 8 4 0|0 4 8 11 16 20 23" contenteditable>אאא בבב aaa bbb צצצ דדד</div> 62 62 63 63 <div dir=ltr class="test_move_by_word" title="0 4 8 11|11 8 4 0" contenteditable>שנב abc סטז</div> 64 <div dir=rtl class="test_move_by_word" title="11 8 4 0|0 4 8 " contenteditable>שנב abc סטז</div>64 <div dir=rtl class="test_move_by_word" title="11 8 4 0|0 4 8 11" contenteditable>שנב abc סטז</div> 65 65 66 66 </div> -
trunk/Source/WebCore/ChangeLog
r92221 r92223 1 2011-08-02 Van Lam <vanlam@google.com> 2 3 --webkit-visual-word: ctrl-arrow is not able to reach the boundary of line 4 https://bugs.webkit.org/show_bug.cgi?id=61346 5 6 Reviewed by Ryosuke Niwa. 7 8 When collecintg word boundaries in a box, explicitly check if the box 9 is at the end of line (so it should contain the end-of-line position) 10 and collect the end-of-line position. 11 12 * editing/visible_units.cpp: 13 (WebCore::isBoxVisuallyLastInLine): 14 (WebCore::appendPositionAtLogicalEndOfLine): 15 (WebCore::collectWordBreaksInBoxInsideBlockWithSameDirectionality): 16 (WebCore::collectWordBreaksInBoxInsideBlockWithDifferntDirectionality): 17 1 18 2011-08-02 Vsevolod Vlasov <vsevik@chromium.org> 2 19 -
trunk/Source/WebCore/editing/visible_units.cpp
r91788 r92223 1174 1174 static const int invalidOffset = -1; 1175 1175 1176 static bool isBoxVisuallyLastInLine(const InlineBox* box, TextDirection blockDirection) 1177 { 1178 return blockDirection == LTR ? !box->nextLeafChild() || box->nextLeafChild()->renderer()->isBR() 1179 : !box->prevLeafChild() || box->prevLeafChild()->renderer()->isBR(); 1180 } 1181 1176 1182 static bool positionIsInBox(const VisiblePosition& wordBreak, const InlineBox* box, int& offsetOfWordBreak) 1177 1183 { … … 1360 1366 typedef Vector<WordBoundaryEntry, 50> WordBoundaryVector; 1361 1367 1368 static void appendPositionAtLogicalEndOfLine(const InlineBox* box, WordBoundaryVector& orderedWordBoundaries) 1369 { 1370 VisiblePosition endOfBlock = logicalEndOfLine(createPositionAvoidingIgnoredNode(box->renderer()->node(), box->caretMaxOffset())); 1371 1372 int offsetOfEndOfBlock; 1373 if (positionIsInBox(endOfBlock, box, offsetOfEndOfBlock)) 1374 orderedWordBoundaries.append(WordBoundaryEntry(endOfBlock, offsetOfEndOfBlock)); 1375 } 1376 1362 1377 static void collectWordBreaksInBoxInsideBlockWithSameDirectionality(const InlineBox* box, WordBoundaryVector& orderedWordBoundaries) 1363 1378 { 1364 1379 orderedWordBoundaries.clear(); 1380 1381 if (!box->renderer()->isBR() && isBoxVisuallyLastInLine(box, box->direction())) 1382 appendPositionAtLogicalEndOfLine(box, orderedWordBoundaries); 1365 1383 1366 1384 VisiblePosition wordBreak; … … 1378 1396 { 1379 1397 orderedWordBoundaries.clear(); 1398 1399 if (!box->renderer()->isBR() && isBoxVisuallyLastInLine(box, box->direction() == LTR ? RTL : LTR)) 1400 appendPositionAtLogicalEndOfLine(box, orderedWordBoundaries); 1380 1401 1381 1402 VisiblePosition wordBreak;
Note: See TracChangeset
for help on using the changeset viewer.