Changeset 241719 in webkit
- Timestamp:
- Feb 18, 2019 8:53:32 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 11 deleted
- 35 edited
- 2 copied
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r241656 r241719 1 2019-02-18 Megan Gardner <megan_gardner@apple.com> 2 3 Turn On Smart Delete 4 https://bugs.webkit.org/show_bug.cgi?id=194320 5 6 Reviewed by Ryosuke Niwa. 7 8 Update smart-delete-* tests, and rebase many other tests to work with the new smart delete setting. 9 10 * editing/deleting/smart-delete-001-expected.txt: Added. 11 * editing/deleting/smart-delete-001.html: 12 * editing/deleting/smart-delete-002-expected.txt: 13 * editing/deleting/smart-delete-002.html: 14 * editing/deleting/smart-delete-003-expected.txt: Copied from LayoutTests/platform/mac/editing/deleting/smart-delete-003-expected.txt. 15 * editing/deleting/smart-delete-003.html: 16 * editing/deleting/smart-delete-004-expected.txt: Renamed from LayoutTests/platform/mac/editing/deleting/smart-delete-004-expected.txt. 17 * editing/deleting/smart-delete-004.html: 18 * editing/deleting/smart-delete-across-editable-boundaries-2-expected.txt: 19 * editing/deleting/smart-delete-across-editable-boundaries-2.html: 20 * editing/selection/delete-word-granularity-text-control.html: 21 * platform/ios-wk1/editing/deleting/smart-delete-003-expected.txt: Removed. 22 * platform/ios-wk1/editing/deleting/smart-delete-004-expected.txt: Removed. 23 * platform/ios-wk2/editing/deleting/smart-delete-003-expected.txt: Removed. 24 * platform/ios-wk2/editing/pasteboard/cut-text-001-expected.png: Removed. 25 * platform/ios/TestExpectations: 26 * platform/ios/editing/deleting/5206311-1-expected.txt: 27 * platform/ios/editing/deleting/delete-across-editable-content-boundaries-2-expected.txt: Added. 28 * platform/ios/editing/deleting/delete-across-editable-content-boundaries-3-expected.txt: Added. 29 * platform/ios/editing/deleting/delete-and-undo-expected.txt: 30 * platform/ios/editing/deleting/delete-block-merge-contents-012-expected.txt: 31 * platform/ios/editing/deleting/delete-block-merge-contents-017-expected.txt: 32 * platform/ios/editing/deleting/delete-contiguous-ws-001-expected.txt: 33 * platform/ios/editing/deleting/delete-image-003-expected.txt: 34 * platform/ios/editing/deleting/delete-leading-ws-001-expected.txt: 35 * platform/ios/editing/deleting/delete-selection-001-expected.txt: 36 * platform/ios/editing/deleting/delete-trailing-ws-001-expected.txt: 37 * platform/ios/editing/deleting/delete-ws-fixup-002-expected.txt: 38 * platform/ios/editing/deleting/delete-ws-fixup-003-expected.txt: 39 * platform/ios/editing/deleting/delete-ws-fixup-004-expected.txt: 40 * platform/ios/editing/deleting/smart-delete-001-expected.txt: 41 * platform/ios/editing/deleting/smart-delete-002-expected.txt: Added. 42 * platform/ios/editing/deleting/smart-delete-003-expected.txt: Copied from LayoutTests/platform/mac/editing/deleting/smart-delete-003-expected.txt. 43 * platform/ios/editing/deleting/smart-delete-004-expected.txt: Renamed from LayoutTests/platform/mac/editing/deleting/smart-delete-003-expected.txt. 44 * platform/ios/editing/deleting/smart-delete-across-editable-boundaries-2-expected.txt: Added. 45 * platform/ios/editing/deleting/table-cells-expected.txt: 46 * platform/ios/editing/execCommand/delete-line-and-insert-text-in-font-inside-blockquote-expected.txt: Added. 47 * platform/ios/editing/pasteboard/cut-text-001-expected.txt: Renamed from LayoutTests/platform/ios-wk2/editing/pasteboard/cut-text-001-expected.txt. 48 * platform/ios/editing/pasteboard/paste-2-expected.txt: 49 * platform/mac/editing/deleting/smart-delete-001-expected.png: Removed. 50 * platform/mac/editing/deleting/smart-delete-001-expected.txt: Removed. 51 * platform/mac/editing/deleting/smart-delete-002-expected.png: Removed. 52 * platform/mac/editing/deleting/smart-delete-003-expected.png: Removed. 53 * platform/mac/editing/deleting/smart-delete-004-expected.png: Removed. 54 * resources/ui-helper.js: 55 (window.UIHelper.async.doubleActivateAt): 56 (window.UIHelper.async.doubleActivateAtSelectionStart): 57 (window.UIHelper.async.selectWordByDoubleTapOrClick): 58 1 59 2019-02-17 Fujii Hironori <Hironori.Fujii@sony.com> 2 60 -
trunk/LayoutTests/editing/deleting/smart-delete-001.html
r55913 r241719 1 <!DOCTYPE html> 1 2 <html> 2 3 <head> … … 17 18 .expected-results:first-line { font-weight: bold } 18 19 </style> 19 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script> 20 <script src="../editing.js"></script> 21 <script src="../../resources/ui-helper.js"></script> 20 22 21 23 <script> 22 24 23 function editingTest() {24 doubleClickAtSelectionStart();25 async function editingTest() { 26 await UIHelper.selectWordByDoubleTapOrClick(document.getElementById('test')); 25 27 deleteCommand(); 26 28 } … … 54 56 55 57 <script> 56 run EditingTest();58 runDumpAsTextEditingTest(true); 57 59 </script> 58 60 -
trunk/LayoutTests/editing/deleting/smart-delete-002-expected.txt
r177774 r241719 10 10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 11 11 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 12 layer at (0,0) size 800x600 13 RenderView at (0,0) size 800x600 14 layer at (0,0) size 800x600 15 RenderBlock {HTML} at (0,0) size 800x600 16 RenderBody {BODY} at (8,8) size 784x584 17 RenderBlock {DIV} at (0,0) size 784x212 [border: (2px solid #0000FF)] 18 RenderBlock {DIV} at (14,14) size 756x56 19 RenderText {#text} at (0,0) size 66x28 20 text run at (0,0) width 66: "Tests: " 21 RenderBR {BR} at (0,0) size 0x0 22 RenderText {#text} at (0,28) size 516x28 23 text run at (0,28) width 516: "Smart delete when deleting the second word of a line." 24 RenderBlock {DIV} at (14,86) size 756x112 25 RenderText {#text} at (0,0) size 190x28 26 text run at (0,0) width 190: "Expected Results: " 27 RenderBR {BR} at (189,22) size 1x0 28 RenderText {#text} at (0,28) size 732x56 29 text run at (0,28) width 732: "The second word and the space before the second word should be deleted. It" 30 text run at (0,56) width 201: "should like this this: " 31 RenderBR {BR} at (200,78) size 1x0 32 RenderText {#text} at (0,84) size 72x28 33 text run at (0,84) width 72: "foo baz" 34 RenderBlock {DIV} at (0,236) size 784x32 35 RenderBlock {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)] 36 RenderText {#text} at (2,2) size 72x28 37 text run at (2,2) width 72: "foo baz" 38 caret: position 4 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body 12 Tests: 13 Smart delete when deleting the second word of a line. 14 Expected Results: 15 The second word and the space before the second word should be deleted. It should like this this: 16 foo baz 17 foo baz 18 execDeleteCommand: <div id="test" class="editing"> foo baz </div> -
trunk/LayoutTests/editing/deleting/smart-delete-002.html
r147036 r241719 1 <!DOCTYPE html> 1 2 <html> 2 3 <head> … … 17 18 .expected-results:first-line { font-weight: bold } 18 19 </style> 19 <script src= ../editing.js language="JavaScript" type="text/JavaScript"></script>20 20 <script src="../editing.js"></script> 21 <script src="../../resources/ui-helper.js"></script> 21 22 <script> 22 23 23 function editingTest() { 24 if (window.internals) 25 internals.settings.setEditingBehavior('mac'); 24 async function editingTest() { 26 25 moveSelectionForwardByWordCommand(); 27 26 moveSelectionForwardByCharacterCommand(); 28 doubleClickAtSelectionStart();27 await UIHelper.doubleActivateAtSelectionStart(); 29 28 deleteCommand(); 30 29 } … … 58 57 59 58 <script> 60 run EditingTest();59 runDumpAsTextEditingTest(true); 61 60 </script> 62 61 -
trunk/LayoutTests/editing/deleting/smart-delete-003-expected.txt
r241662 r241719 1 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 4 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 4 5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 6 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE … … 11 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 12 13 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 13 layer at (0,0) size 800x600 14 RenderView at (0,0) size 800x600 15 layer at (0,0) size 800x600 16 RenderBlock {HTML} at (0,0) size 800x600 17 RenderBody {BODY} at (8,8) size 784x584 18 RenderBlock {P} at (0,0) size 784x36 19 RenderText {#text} at (0,0) size 779x36 20 text run at (0,0) width 401: "This tests deleting a selection created with a word granularity. " 21 text run at (400,0) width 353: "To run it manually, double click on 'bar' and hit delete. " 22 text run at (752,0) width 27: "You" 23 text run at (0,18) width 129: "should see 'foo baz'." 24 RenderBlock {DIV} at (0,52) size 784x18 25 RenderText {#text} at (0,0) size 22x18 26 text run at (0,0) width 22: "foo" 27 RenderText {#text} at (21,0) size 27x18 28 text run at (21,0) width 27: " baz" 29 caret: position 3 of child 0 {#text} of child 2 {DIV} of body 14 This tests deleting a selection created with a word granularity. To run it manually, double click on 'bar' and hit delete. You should see 'foo baz'. 15 16 Expected Results: 17 The second word and the space before the second word should be deleted. It should like this this: 18 foo baz 19 foo baz 20 -
trunk/LayoutTests/editing/deleting/smart-delete-003.html
r120173 r241719 1 <script> 2 if (window.testRunner) 3 testRunner.dumpEditingCallbacks(); 4 </script> 5 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script> 1 <!DOCTYPE html> 2 <html> 3 <head> 4 5 <style> 6 .editing { 7 border: 2px solid red; 8 font-size: 24px; 9 } 10 .explanation { 11 border: 2px solid blue; 12 padding: 12px; 13 font-size: 24px; 14 margin-bottom: 24px; 15 } 16 .scenario { margin-bottom: 16px;} 17 .scenario:first-line { font-weight: bold; margin-bottom: 16px;} 18 .expected-results:first-line { font-weight: bold } 19 </style> 20 <script src="../editing.js"></script> 21 <script src="../../resources/ui-helper.js"></script> 22 <div class="scenario"> 6 23 <p>This tests deleting a selection created with a word granularity. To run it manually, double click on 'bar' and hit delete. You should see 'foo baz'.</p> 7 <div id="div" contenteditable="true">foo b<span id="target">a</span>r baz</div> 24 </div> 25 <div class="expected-results"> 26 Expected Results: 27 <br> 28 The second word and the space before the second word should be deleted. It should like this this: 29 <BR> 30 foo baz 31 </div> 32 <div id="test" class="editing" contenteditable="true">foo b<span id="target">a</span>r baz</div> 8 33 9 34 <script> 10 if (window.testRunner) {35 async function editingTest() { 11 36 var target = document.getElementById("target"); 12 doubleClick(target.offsetLeft, target.offsetTop);37 await UIHelper.selectWordByDoubleTapOrClick(target); 13 38 testRunner.execCommand("DeleteBackward"); 14 39 } 40 41 runDumpAsTextEditingTest(true); 42 15 43 </script> -
trunk/LayoutTests/editing/deleting/smart-delete-004-expected.txt
r241662 r241719 1 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 4 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 4 5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 6 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE … … 11 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 12 13 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 13 layer at (0,0) size 800x600 14 RenderView at (0,0) size 800x600 15 layer at (0,0) size 800x600 16 RenderBlock {HTML} at (0,0) size 800x600 17 RenderBody {BODY} at (8,8) size 784x584 18 RenderBlock {P} at (0,0) size 784x36 19 RenderText {#text} at (0,0) size 758x36 20 text run at (0,0) width 401: "This tests deleting a selection created with a word granularity. " 21 text run at (400,0) width 358: "To run it manually, double click on 'bar' and hit forward" 22 text run at (0,18) width 47: "delete. " 23 text run at (46,18) width 159: "You should see 'foo baz'." 24 RenderBlock {DIV} at (0,52) size 784x18 25 RenderText {#text} at (0,0) size 22x18 26 text run at (0,0) width 22: "foo" 27 RenderText {#text} at (21,0) size 27x18 28 text run at (21,0) width 27: " baz" 29 caret: position 3 of child 0 {#text} of child 2 {DIV} of body 14 This tests deleting a selection created with a word granularity. To run it manually, double click on 'bar' and hit forward delete. You should see 'foo baz'. 15 16 Expected Results: 17 The second word and the space before the second word should be deleted. It should like this this: 18 foo baz 19 foo baz 20 -
trunk/LayoutTests/editing/deleting/smart-delete-004.html
r120173 r241719 1 <script> 2 if (window.testRunner) 3 testRunner.dumpEditingCallbacks(); 4 </script> 5 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script> 1 <!DOCTYPE html> 2 <html> 3 <head> 4 5 <style> 6 .editing { 7 border: 2px solid red; 8 font-size: 24px; 9 } 10 .explanation { 11 border: 2px solid blue; 12 padding: 12px; 13 font-size: 24px; 14 margin-bottom: 24px; 15 } 16 .scenario { margin-bottom: 16px;} 17 .scenario:first-line { font-weight: bold; margin-bottom: 16px;} 18 .expected-results:first-line { font-weight: bold } 19 </style> 20 <script src="../editing.js" ></script> 21 <script src="../../resources/ui-helper.js"></script> 22 <div class="scenario"> 6 23 <p>This tests deleting a selection created with a word granularity. To run it manually, double click on 'bar' and hit forward delete. You should see 'foo baz'.</p> 7 <div id="div" contenteditable="true">foo b<span id="target">a</span>r baz</div> 24 </div> 25 <div class="expected-results"> 26 Expected Results: 27 <br> 28 The second word and the space before the second word should be deleted. It should like this this: 29 <BR> 30 foo baz 31 </div> 32 <div id="test" class="editing" contenteditable="true">foo b<span id="target">a</span>r baz</div> 8 33 9 34 <script> 10 if (window.testRunner) {35 async function editingTest() { 11 36 var target = document.getElementById("target"); 12 doubleClick(target.offsetLeft, target.offsetTop + target.offsetHeight / 2);37 await UIHelper.selectWordByDoubleTapOrClick(target); 13 38 testRunner.execCommand("DeleteForward"); 14 39 } 40 41 runDumpAsTextEditingTest(true); 42 15 43 </script> -
trunk/LayoutTests/editing/deleting/smart-delete-across-editable-boundaries-2-expected.txt
r231630 r241719 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 4 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 6 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 7 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 8 EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document 9 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 11 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 1 12 This tests for a bug where expansion for smart delete would not consider editable boundaries. Only 'foo' should be deleted. You should see ' bar'. <radr://problem/5390681> 2 | <#selection-caret> 3 | <span> 4 | contenteditable="false" 5 | " bar" 13 14 bar 15 -
trunk/LayoutTests/editing/deleting/smart-delete-across-editable-boundaries-2.html
r95003 r241719 3 3 <body> 4 4 <p id="description">This tests for a bug where expansion for smart delete would not consider editable boundaries. Only 'foo' should be deleted. You should see ' bar'. <radr://problem/5390681></p> 5 <div contenteditable="true" id=" div">foo5 <div contenteditable="true" id="test">foo 6 6 <span contenteditable="false"> bar</span></div> 7 7 8 <script src="../../resources/dump-as-markup.js"></script> 8 <script src="../editing.js"></script> 9 <script src="../../resources/ui-helper.js"></script> 9 10 <script> 10 var div = document.getElementById("div"); 11 var x = div.offsetLeft; 12 var y = div.offsetTop; 13 eventSender.mouseMoveTo(x, y); 14 eventSender.mouseDown(); 15 eventSender.mouseUp(); 16 eventSender.mouseDown(); 17 eventSender.mouseUp(); 18 document.execCommand("Delete"); 19 Markup.description(description.textContent); 20 Markup.dump(div); 11 12 async function editingTest() { 13 await UIHelper.selectWordByDoubleTapOrClick(document.getElementById('test')); 14 document.execCommand("Delete"); 15 } 16 17 runDumpAsTextEditingTest(true); 21 18 </script> 22 19 </body> -
trunk/LayoutTests/editing/selection/delete-word-granularity-text-control.html
r217390 r241719 4 4 <script src="../../resources/js-test-pre.js"></script> 5 5 <script src="resources/js-test-selection-shared.js"></script> 6 <script src="../../resources/ui-helper.js"></script> 6 7 </head> 7 8 <body> … … 9 10 <div id="console"></div> 10 11 <script> 12 if (window.internals) 13 internals.settings.setEditingBehavior('mac'); 14 11 15 description("Test that setSelectedRange resets the selection granularity to CharacterGranularity."); 12 16 -
trunk/LayoutTests/platform/ios/TestExpectations
r241284 r241719 1341 1341 editing/deleting/delete-all-text-in-text-field-assertion.html [ Failure ] 1342 1342 editing/deleting/delete-cell-contents.html [ Failure ] 1343 editing/deleting/smart-delete-002.html [ Failure ]1344 1343 editing/deleting/smart-delete-across-editable-boundaries.html [ Failure ] 1345 1344 editing/deleting/smart-editing-disabled-mac.html [ Failure ] -
trunk/LayoutTests/platform/ios/editing/deleting/5206311-1-expected.txt
r230797 r241719 64 64 RenderBlock {DIV} at (0,298) size 784x76 65 65 RenderBlock {DIV} at (0,0) size 784x20 66 RenderText {#text} at (0,0) size 40x1966 RenderText {#text} at (0,0) size 36x19 67 67 text run at (0,0) width 36: "Hello" 68 text run at (35,0) width 5: " "69 68 RenderTable {TABLE} at (0,20) size 46x56 [border: (1px outset #808080)] 70 69 RenderTableSection {TBODY} at (1,1) size 44x54 … … 85 84 RenderText {#text} at (2,2) size 8x19 86 85 text run at (2,2) width 8: "9" 87 caret: position 6of child 0 {#text} of child 1 {DIV} of child 14 {DIV} of body86 caret: position 5 of child 0 {#text} of child 1 {DIV} of child 14 {DIV} of body -
trunk/LayoutTests/platform/ios/editing/deleting/delete-and-undo-expected.txt
r184560 r241719 12 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 13 13 EDITING DELEGATE: shouldDeleteDOMRange:range from 4 of #text > DIV > DIV > BODY > HTML > #document to 9 of #text > DIV > DIV > BODY > HTML > #document 14 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification15 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > DIV > DIV > BODY > HTML > #document to 4 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > DIV > BODY > HTML > #document to 4 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE16 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification17 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification18 EDITING DELEGATE: shouldDeleteDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 4 of #text > DIV > DIV > BODY > HTML > #document19 14 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 20 15 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE -
trunk/LayoutTests/platform/ios/editing/deleting/delete-block-merge-contents-012-expected.txt
r184560 r241719 31 31 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 32 32 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 33 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > DIV > DIV > DIV > BODY > HTML > #document to 2 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 8 of #text > DIV > DIV > DIV > BODY > HTML > #document to 8of #text > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE33 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > DIV > DIV > DIV > BODY > HTML > #document to 2 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 34 34 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 35 35 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 42 42 RenderBlock {DIV} at (14,14) size 756x30 43 43 RenderBlock {DIV} at (0,0) size 756x30 44 RenderText {#text} at (0,1) size 17 6x2845 text run at (0,1) width 17 6: "This issome text."46 caret: position 8of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of body44 RenderText {#text} at (0,1) size 170x28 45 text run at (0,1) width 170: "This is some text." 46 caret: position 7 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of body -
trunk/LayoutTests/platform/ios/editing/deleting/delete-block-merge-contents-017-expected.txt
r184560 r241719 31 31 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 32 32 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 33 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 34 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > DIV > DIV > DIV > BODY > HTML > #document to 2 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 8 of #text > DIV > DIV > DIV > BODY > HTML > #document to 8 of #text > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 33 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > DIV > DIV > DIV > BODY > HTML > #document to 2 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 35 34 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 36 35 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 43 42 RenderBlock {DIV} at (14,14) size 756x30 44 43 RenderBlock {DIV} at (0,0) size 756x30 45 RenderText {#text} at (0,1) size 17 6x2846 text run at (0,1) width 17 6: "This issome text."47 caret: position 8of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of body44 RenderText {#text} at (0,1) size 170x28 45 text run at (0,1) width 170: "This is some text." 46 caret: position 7 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of body -
trunk/LayoutTests/platform/ios/editing/deleting/delete-contiguous-ws-001-expected.txt
r184560 r241719 11 11 EDITING DELEGATE: shouldDeleteDOMRange:range from 7 of #text > SPAN > DIV > BODY > HTML > #document to 10 of #text > SPAN > DIV > BODY > HTML > #document 12 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 4 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 4of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 14 14 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 15 15 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 20 20 RenderBody {BODY} at (8,8) size 784x584 21 21 RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)] 22 RenderInline {SPAN} at (0,0) size 7 8x2823 RenderText {#text} at (14,15) size 7 8x2824 text run at (14,15) width 7 8: "foobaz"22 RenderInline {SPAN} at (0,0) size 72x28 23 RenderText {#text} at (14,15) size 72x28 24 text run at (14,15) width 72: "foo baz" 25 25 RenderText {#text} at (0,0) size 0x0 26 caret: position 4of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body26 caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body -
trunk/LayoutTests/platform/ios/editing/deleting/delete-image-003-expected.txt
r184560 r241719 6 6 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 7 7 EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of SPAN > DIV > BODY > HTML > #document to 3 of SPAN > DIV > BODY > HTML > #document 8 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > SPAN > DIV > BODY > HTML > #document to 8of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE8 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > SPAN > DIV > BODY > HTML > #document to 7 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 9 9 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 10 10 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 15 15 RenderBody {BODY} at (8,8) size 784x584 16 16 RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)] 17 RenderInline {SPAN} at (0,0) size 84x2817 RenderInline {SPAN} at (0,0) size 78x28 18 18 RenderText {#text} at (14,15) size 11x28 19 19 text run at (14,15) width 11: "a" 20 RenderText {#text} at (24,15) size 74x2821 text run at (24,15) width 74: "lincoln"20 RenderText {#text} at (24,15) size 68x28 21 text run at (24,15) width 68: "lincoln" 22 22 RenderText {#text} at (0,0) size 0x0 23 23 caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body -
trunk/LayoutTests/platform/ios/editing/deleting/delete-leading-ws-001-expected.txt
r224659 r241719 9 9 EDITING DELEGATE: shouldDeleteDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 7 of #text > SPAN > DIV > BODY > HTML > #document 10 10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 11 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 12 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > SPAN > DIV > BODY > HTML > #document to 2 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 13 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 14 13 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 19 18 RenderBody {BODY} at (8,8) size 784x584 20 19 RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)] 21 RenderInline {SPAN} at (0,0) size 14x2822 RenderText {#text} at (14,15) size 14x2820 RenderInline {SPAN} at (0,0) size 8x28 21 RenderText {#text} at (14,15) size 8x28 23 22 text run at (14,15) width 8: "f" 24 text run at (21,15) width 7: " " 25 caret: position 2 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body 23 caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body -
trunk/LayoutTests/platform/ios/editing/deleting/delete-selection-001-expected.txt
r184560 r241719 16 16 RenderBody {BODY} at (8,8) size 784x584 17 17 RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)] 18 RenderInline {SPAN} at (0,0) size 7 6x2819 RenderText {#text} at (14,15) size 7 6x2820 text run at (14,15) width 43: "bar "21 text run at (5 6,15) width 34: "baz"18 RenderInline {SPAN} at (0,0) size 70x28 19 RenderText {#text} at (14,15) size 70x28 20 text run at (14,15) width 37: "bar " 21 text run at (50,15) width 34: "baz" 22 22 RenderText {#text} at (0,0) size 0x0 23 23 caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of body -
trunk/LayoutTests/platform/ios/editing/deleting/delete-trailing-ws-001-expected.txt
r184560 r241719 16 16 RenderBody {BODY} at (8,8) size 784x584 17 17 RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)] 18 RenderInline {SPAN} at (0,0) size 7 6x2819 RenderText {#text} at (14,15) size 7 6x2820 text run at (14,15) width 43: "bar "21 text run at (5 6,15) width 34: "baz"18 RenderInline {SPAN} at (0,0) size 70x28 19 RenderText {#text} at (14,15) size 70x28 20 text run at (14,15) width 37: "bar " 21 text run at (50,15) width 34: "baz" 22 22 RenderText {#text} at (0,0) size 0x0 23 23 caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of body -
trunk/LayoutTests/platform/ios/editing/deleting/delete-ws-fixup-002-expected.txt
r184560 r241719 34 34 EDITING DELEGATE: shouldDeleteDOMRange:range from 2 of #text > B > SPAN > DIV > BODY > HTML > #document to 4 of #text > B > SPAN > DIV > BODY > HTML > #document 35 35 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 36 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > SPAN > DIV > BODY > HTML > #document to 0 of #text > B > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > SPAN > DIV > BODY > HTML > #document to 7 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 36 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 37 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text > SPAN > DIV > BODY > HTML > #document to 0 of #text > B > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 6 of #text > SPAN > DIV > BODY > HTML > #document to 6 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 37 38 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 38 39 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 49 50 text run at (0,20) width 543: "produces a tree that should result in two spaces, but for some reason it isn't rendered." 50 51 RenderBlock {DIV} at (0,56) size 784x88 [border: (2px solid #FF0000)] 51 RenderInline {SPAN} at (0,0) size 7 34x5852 RenderInline {SPAN} at (0,0) size 728x58 52 53 RenderText {#text} at (14,15) size 96x28 53 54 text run at (14,15) width 96: "in Liberty" … … 56 57 text run at (109,15) width 21: "F " 57 58 text run at (129,15) width 97: "and seven" 58 RenderText {#text} at (225,15) size 63x2859 text run at (225,15) width 63: " years"59 RenderText {#text} at (225,15) size 57x28 60 text run at (225,15) width 57: " years" 60 61 RenderInline {B} at (0,0) size 7x28 61 RenderText {#text} at (28 7,15) size 7x2862 text run at (28 7,15) width 7: " "63 RenderText {#text} at (2 93,15) size 734x5864 text run at (2 93,15) width 111: "our fathers "65 text run at ( 403,15) width 339: "f upon this continent, a new nation,"66 text run at (7 41,15) width 7: " "62 RenderText {#text} at (281,15) size 7x28 63 text run at (281,15) width 7: " " 64 RenderText {#text} at (287,15) size 728x58 65 text run at (287,15) width 111: "our fathers " 66 text run at (397,15) width 339: "f upon this continent, a new nation," 67 text run at (735,15) width 7: " " 67 68 text run at (14,45) width 228: "conceived in Liberty, " 68 69 text run at (241,45) width 380: "and dedicated to the proposition that all" 69 70 RenderText {#text} at (0,0) size 0x0 70 caret: position 7of child 2 {#text} of child 1 {SPAN} of child 3 {DIV} of body71 caret: position 6 of child 2 {#text} of child 1 {SPAN} of child 3 {DIV} of body -
trunk/LayoutTests/platform/ios/editing/deleting/delete-ws-fixup-003-expected.txt
r184560 r241719 11 11 EDITING DELEGATE: shouldDeleteDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 7 of #text > SPAN > DIV > BODY > HTML > #document 12 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 4 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 4of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 14 14 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 15 15 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 20 20 RenderBody {BODY} at (8,8) size 784x584 21 21 RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)] 22 RenderInline {SPAN} at (0,0) size 75x2823 RenderText {#text} at (14,15) size 3 7x2824 text run at (14,15) width 3 7: "bar"22 RenderInline {SPAN} at (0,0) size 69x28 23 RenderText {#text} at (14,15) size 31x28 24 text run at (14,15) width 31: "bar" 25 25 RenderInline {SPAN} at (0,0) size 7x28 26 RenderText {#text} at ( 50,15) size 7x2827 text run at ( 50,15) width 7: " "28 RenderText {#text} at (5 6,15) size 33x2829 text run at (5 6,15) width 33: "foo"26 RenderText {#text} at (44,15) size 7x28 27 text run at (44,15) width 7: " " 28 RenderText {#text} at (50,15) size 33x28 29 text run at (50,15) width 33: "foo" 30 30 RenderText {#text} at (0,0) size 0x0 31 caret: position 4of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body31 caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body -
trunk/LayoutTests/platform/ios/editing/deleting/delete-ws-fixup-004-expected.txt
r184560 r241719 11 11 EDITING DELEGATE: shouldDeleteDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 7 of #text > SPAN > DIV > BODY > HTML > #document 12 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 4 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 4of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 14 14 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 15 15 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 20 20 RenderBody {BODY} at (8,8) size 784x584 21 21 RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)] 22 RenderInline {SPAN} at (0,0) size 8 7x2823 RenderText {#text} at (14,15) size 3 7x2824 text run at (14,15) width 3 7: "bar"22 RenderInline {SPAN} at (0,0) size 81x28 23 RenderText {#text} at (14,15) size 31x28 24 text run at (14,15) width 31: "bar" 25 25 RenderInline {SPAN} at (0,0) size 19x28 26 RenderText {#text} at ( 50,15) size 19x2827 text run at ( 50,15) width 19: " "28 RenderText {#text} at (6 8,15) size 33x2829 text run at (6 8,15) width 33: "foo"26 RenderText {#text} at (44,15) size 19x28 27 text run at (44,15) width 19: " " 28 RenderText {#text} at (62,15) size 33x28 29 text run at (62,15) width 33: "foo" 30 30 RenderText {#text} at (0,0) size 0x0 31 caret: position 4of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body31 caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body -
trunk/LayoutTests/platform/ios/editing/deleting/smart-delete-001-expected.txt
r184560 r241719 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 4 layer at (0,0) size 800x600 5 RenderView at (0,0) size 800x600 6 layer at (0,0) size 800x600 7 RenderBlock {HTML} at (0,0) size 800x600 8 RenderBody {BODY} at (8,8) size 784x584 9 RenderBlock {DIV} at (0,0) size 784x224 [border: (2px solid #0000FF)] 10 RenderBlock {DIV} at (14,14) size 756x60 11 RenderText {#text} at (0,1) size 66x28 12 text run at (0,1) width 66: "Tests: " 13 RenderBR {BR} at (0,0) size 0x0 14 RenderText {#text} at (0,31) size 492x28 15 text run at (0,31) width 492: "Smart delete when deleting the first word on a line." 16 RenderBlock {DIV} at (14,90) size 756x120 17 RenderText {#text} at (0,1) size 190x28 18 text run at (0,1) width 190: "Expected Results: " 19 RenderBR {BR} at (189,23) size 1x0 20 RenderText {#text} at (0,31) size 708x58 21 text run at (0,31) width 708: "The first word and the space following the first word should be deleted. It" 22 text run at (0,61) width 201: "should like this this: " 23 RenderBR {BR} at (200,83) size 1x0 24 RenderText {#text} at (0,91) size 70x28 25 text run at (0,91) width 70: "bar baz" 26 RenderBlock {DIV} at (0,248) size 784x34 27 RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)] 28 RenderText {#text} at (2,3) size 108x28 29 text run at (2,3) width 108: "foo bar baz" 30 caret: position 1 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body 4 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 5 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 4 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 6 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 7 EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 4 of #text > DIV > DIV > BODY > HTML > #document 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 9 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 10 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 11 Tests: 12 Smart delete when deleting the first word on a line. 13 Expected Results: 14 The first word and the space following the first word should be deleted. It should like this this: 15 bar baz 16 bar baz 17 execDeleteCommand: <div id="test" class="editing">bar baz </div> -
trunk/LayoutTests/platform/ios/editing/deleting/smart-delete-003-expected.txt
r241662 r241719 1 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE4 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 4 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 4 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 6 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 4 of #text > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 6 7 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 7 8 EDITING DELEGATE: shouldDeleteDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document … … 11 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 12 13 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 13 layer at (0,0) size 800x600 14 RenderView at (0,0) size 800x600 15 layer at (0,0) size 800x600 16 RenderBlock {HTML} at (0,0) size 800x600 17 RenderBody {BODY} at (8,8) size 784x584 18 RenderBlock {P} at (0,0) size 784x36 19 RenderText {#text} at (0,0) size 768x36 20 text run at (0,0) width 392: "This tests deleting a selection created with a word granularity. " 21 text run at (392,0) width 348: "To run it manually, double click on 'bar' and hit delete. " 22 text run at (740,0) width 28: "You" 23 text run at (0,18) width 127: "should see 'foo baz'." 24 RenderBlock {DIV} at (0,52) size 784x18 25 RenderText {#text} at (0,0) size 21x18 26 text run at (0,0) width 21: "foo" 27 RenderText {#text} at (21,0) size 26x18 28 text run at (21,0) width 26: " baz" 29 caret: position 3 of child 0 {#text} of child 2 {DIV} of body 14 This tests deleting a selection created with a word granularity. To run it manually, double click on 'bar' and hit delete. You should see 'foo baz'. 15 16 Expected Results: 17 The second word and the space before the second word should be deleted. It should like this this: 18 foo baz 19 foo baz 20 -
trunk/LayoutTests/platform/ios/editing/deleting/smart-delete-004-expected.txt
r241662 r241719 1 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE4 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 4 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 4 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 6 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 4 of #text > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 6 7 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 7 8 EDITING DELEGATE: shouldDeleteDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document … … 11 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 12 13 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 13 layer at (0,0) size 800x600 14 RenderView at (0,0) size 800x600 15 layer at (0,0) size 800x600 16 RenderBlock {HTML} at (0,0) size 800x600 17 RenderBody {BODY} at (8,8) size 784x584 18 RenderBlock {P} at (0,0) size 784x36 19 RenderText {#text} at (0,0) size 779x36 20 text run at (0,0) width 401: "This tests deleting a selection created with a word granularity. " 21 text run at (400,0) width 353: "To run it manually, double click on 'bar' and hit delete. " 22 text run at (752,0) width 27: "You" 23 text run at (0,18) width 129: "should see 'foo baz'." 24 RenderBlock {DIV} at (0,52) size 784x18 25 RenderText {#text} at (0,0) size 22x18 26 text run at (0,0) width 22: "foo" 27 RenderText {#text} at (21,0) size 27x18 28 text run at (21,0) width 27: " baz" 29 caret: position 3 of child 0 {#text} of child 2 {DIV} of body 14 This tests deleting a selection created with a word granularity. To run it manually, double click on 'bar' and hit forward delete. You should see 'foo baz'. 15 16 Expected Results: 17 The second word and the space before the second word should be deleted. It should like this this: 18 foo baz 19 foo baz 20 -
trunk/LayoutTests/platform/ios/editing/deleting/table-cells-expected.txt
r224659 r241719 16 16 text run at (371,0) width 366: "Just table content should be removed, not table structure." 17 17 RenderBlock {DIV} at (0,36) size 784x30 18 RenderTable {TABLE} at (0,0) size 3 50x30 [border: (1px outset #808080)]19 RenderTableSection {TBODY} at (1,1) size 34 8x2820 RenderTableRow {TR} at (0,2) size 34 8x2418 RenderTable {TABLE} at (0,0) size 346x30 [border: (1px outset #808080)] 19 RenderTableSection {TBODY} at (1,1) size 344x28 20 RenderTableRow {TR} at (0,2) size 344x24 21 21 RenderTableCell {TD} at (2,2) size 160x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1] 22 22 RenderBlock {DIV} at (2,2) size 156x20 23 23 RenderText {#text} at (0,0) size 156x19 24 24 text run at (0,0) width 156: "These two pieces of text" 25 RenderTableCell {TD} at (163,2) size 1 83x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]26 RenderBlock {DIV} at (2,2) size 17 9x2027 RenderText {#text} at (0,0) size 17 9x1928 text run at (0,0) width 17 9: "should be in different cells."25 RenderTableCell {TD} at (163,2) size 179x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1] 26 RenderBlock {DIV} at (2,2) size 175x20 27 RenderText {#text} at (0,0) size 175x19 28 text run at (0,0) width 175: "should be in different cells." 29 29 caret: position 24 of child 0 {#text} of child 0 {DIV} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of body -
trunk/LayoutTests/platform/ios/editing/pasteboard/cut-text-001-expected.txt
r241662 r241719 11 11 EDITING DELEGATE: shouldDeleteDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 7 of #text > SPAN > DIV > BODY > HTML > #document 12 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 4 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 4of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 14 14 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 15 15 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 20 20 RenderBody {BODY} at (8,8) size 784x584 21 21 RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)] 22 RenderInline {SPAN} at (0,0) size 7 8x2823 RenderText {#text} at (14,15) size 7 8x2824 text run at (14,15) width 7 8: "foobaz"22 RenderInline {SPAN} at (0,0) size 72x28 23 RenderText {#text} at (14,15) size 72x28 24 text run at (14,15) width 72: "foo baz" 25 25 RenderText {#text} at (0,0) size 0x0 26 caret: position 4of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body26 caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body -
trunk/LayoutTests/platform/ios/editing/pasteboard/paste-2-expected.txt
r240307 r241719 6 6 EDITING DELEGATE: shouldDeleteDOMRange:range from 8 of #text > BODY > HTML > #document to 11 of #text > BODY > HTML > #document 7 7 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 9 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > BODY > HTML > #document to 7 of #text > BODY > HTML > #document toDOMRange:range from 8 of #text > BODY > HTML > #document to 8 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 8 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > BODY > HTML > #document to 7 of #text > BODY > HTML > #document toDOMRange:range from 7 of #text > BODY > HTML > #document to 7 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 10 9 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 11 10 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 12 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > BODY > HTML > #document to 8of #text > BODY > HTML > #document givenAction:WebViewInsertActionPasted13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > BODY > HTML > #document to 8of #text > BODY > HTML > #document toDOMRange:range from 11 of #text > BODY > HTML > #document to 11 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE11 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 7 of #text > BODY > HTML > #document to 7 of #text > BODY > HTML > #document givenAction:WebViewInsertActionPasted 12 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > BODY > HTML > #document to 7 of #text > BODY > HTML > #document toDOMRange:range from 11 of #text > BODY > HTML > #document to 11 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 14 13 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 15 14 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification -
trunk/LayoutTests/platform/win/editing/deleting/smart-delete-001-expected.txt
r180176 r241719 8 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 9 9 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 10 layer at (0,0) size 800x600 11 RenderView at (0,0) size 800x600 12 layer at (0,0) size 800x600 13 RenderBlock {HTML} at (0,0) size 800x600 14 RenderBody {BODY} at (8,8) size 784x584 15 RenderBlock {DIV} at (0,0) size 784x212 [border: (2px solid #0000FF)] 16 RenderBlock {DIV} at (14,14) size 756x56 17 RenderText {#text} at (0,0) size 67x28 18 text run at (0,0) width 67: "Tests: " 19 RenderBR {BR} at (0,0) size 0x0 20 RenderText {#text} at (0,28) size 498x28 21 text run at (0,28) width 498: "Smart delete when deleting the first word on a line." 22 RenderBlock {DIV} at (14,86) size 756x112 23 RenderText {#text} at (0,0) size 189x28 24 text run at (0,0) width 189: "Expected Results: " 25 RenderBR {BR} at (189,22) size 0x0 26 RenderText {#text} at (0,28) size 714x56 27 text run at (0,28) width 714: "The first word and the space following the first word should be deleted. It" 28 text run at (0,56) width 202: "should like this this: " 29 RenderBR {BR} at (202,78) size 0x0 30 RenderText {#text} at (0,84) size 71x28 31 text run at (0,84) width 71: "bar baz" 32 RenderBlock {DIV} at (0,236) size 784x32 33 RenderBlock {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)] 34 RenderText {#text} at (2,2) size 71x28 35 text run at (2,2) width 71: "bar baz" 36 caret: position 0 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body 10 Tests: 11 Smart delete when deleting the first word on a line. 12 Expected Results: 13 The first word and the space following the first word should be deleted. It should like this this: 14 bar baz 15 bar baz 16 execDeleteCommand: <div id="test" class="editing">bar baz </div> -
trunk/LayoutTests/platform/win/editing/deleting/smart-delete-002-expected.txt
r180176 r241719 10 10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 11 11 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 12 layer at (0,0) size 800x600 13 RenderView at (0,0) size 800x600 14 layer at (0,0) size 800x600 15 RenderBlock {HTML} at (0,0) size 800x600 16 RenderBody {BODY} at (8,8) size 784x584 17 RenderBlock {DIV} at (0,0) size 784x212 [border: (2px solid #0000FF)] 18 RenderBlock {DIV} at (14,14) size 756x56 19 RenderText {#text} at (0,0) size 67x28 20 text run at (0,0) width 67: "Tests: " 21 RenderBR {BR} at (0,0) size 0x0 22 RenderText {#text} at (0,28) size 522x28 23 text run at (0,28) width 522: "Smart delete when deleting the second word of a line." 24 RenderBlock {DIV} at (14,86) size 756x112 25 RenderText {#text} at (0,0) size 189x28 26 text run at (0,0) width 189: "Expected Results: " 27 RenderBR {BR} at (189,22) size 0x0 28 RenderText {#text} at (0,28) size 738x56 29 text run at (0,28) width 738: "The second word and the space before the second word should be deleted. It" 30 text run at (0,56) width 202: "should like this this: " 31 RenderBR {BR} at (202,78) size 0x0 32 RenderText {#text} at (0,84) size 72x28 33 text run at (0,84) width 72: "foo baz" 34 RenderBlock {DIV} at (0,236) size 784x32 35 RenderBlock {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)] 36 RenderText {#text} at (2,2) size 72x28 37 text run at (2,2) width 72: "foo baz" 38 caret: position 4 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body 12 Tests: 13 Smart delete when deleting the second word of a line. 14 Expected Results: 15 The second word and the space before the second word should be deleted. It should like this this: 16 foo baz 17 foo baz 18 execDeleteCommand: <div id="test" class="editing"> foo baz </div> -
trunk/LayoutTests/platform/win/editing/deleting/smart-delete-003-expected.txt
r180176 r241719 1 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 4 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 4 5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 6 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE … … 11 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 12 13 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 13 layer at (0,0) size 800x600 14 RenderView at (0,0) size 800x600 15 layer at (0,0) size 800x600 16 RenderBlock {HTML} at (0,0) size 800x600 17 RenderBody {BODY} at (8,8) size 784x584 18 RenderBlock {P} at (0,0) size 784x36 19 RenderText {#text} at (0,0) size 768x36 20 text run at (0,0) width 392: "This tests deleting a selection created with a word granularity. " 21 text run at (392,0) width 348: "To run it manually, double click on 'bar' and hit delete. " 22 text run at (740,0) width 28: "You" 23 text run at (0,18) width 127: "should see 'foo baz'." 24 RenderBlock {DIV} at (0,52) size 784x18 25 RenderText {#text} at (0,0) size 21x18 26 text run at (0,0) width 21: "foo" 27 RenderText {#text} at (21,0) size 26x18 28 text run at (21,0) width 26: " baz" 29 caret: position 3 of child 0 {#text} of child 2 {DIV} of body 14 This tests deleting a selection created with a word granularity. To run it manually, double click on 'bar' and hit delete. You should see 'foo baz'. 15 16 Expected Results: 17 The second word and the space before the second word should be deleted. It should like this this: 18 foo baz 19 foo baz 20 -
trunk/LayoutTests/platform/win/editing/deleting/smart-delete-004-expected.txt
r180176 r241719 1 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 4 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 4 5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 6 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE … … 11 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 12 13 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 13 layer at (0,0) size 800x600 14 RenderView at (0,0) size 800x600 15 layer at (0,0) size 800x600 16 RenderBlock {HTML} at (0,0) size 800x600 17 RenderBody {BODY} at (8,8) size 784x584 18 RenderBlock {P} at (0,0) size 784x36 19 RenderText {#text} at (0,0) size 745x36 20 text run at (0,0) width 392: "This tests deleting a selection created with a word granularity. " 21 text run at (392,0) width 353: "To run it manually, double click on 'bar' and hit forward" 22 text run at (0,18) width 45: "delete. " 23 text run at (45,18) width 159: "You should see 'foo baz'." 24 RenderBlock {DIV} at (0,52) size 784x18 25 RenderText {#text} at (0,0) size 21x18 26 text run at (0,0) width 21: "foo" 27 RenderText {#text} at (21,0) size 26x18 28 text run at (21,0) width 26: " baz" 29 caret: position 3 of child 0 {#text} of child 2 {DIV} of body 14 This tests deleting a selection created with a word granularity. To run it manually, double click on 'bar' and hit forward delete. You should see 'foo baz'. 15 16 Expected Results: 17 The second word and the space before the second word should be deleted. It should like this this: 18 foo baz 19 foo baz 20 -
trunk/LayoutTests/resources/ui-helper.js
r241282 r241719 125 125 } 126 126 127 static async doubleActivateAt(x, y) 128 { 129 if (this.isIOS()) 130 await UIHelper.doubleTapAt(x, y); 131 else 132 await UIHelper.doubleClickAt(x, y); 133 } 134 135 static async doubleActivateAtSelectionStart() 136 { 137 const rects = window.getSelection().getRangeAt(0).getClientRects(); 138 const x = rects[0].left; 139 const y = rects[0].top; 140 if (this.isIOS()) { 141 await UIHelper.activateAndWaitForInputSessionAt(x, y); 142 await UIHelper.doubleTapAt(x, y); 143 // This is only here to deal with async/sync copy/paste calls, so 144 // once <rdar://problem/16207002> is resolved, should be able to remove for faster tests. 145 await new Promise(resolve => testRunner.runUIScript("uiController.uiScriptComplete()", resolve)); 146 } else 147 await UIHelper.doubleClickAt(x, y); 148 } 149 127 150 static async selectWordByDoubleTapOrClick(element, relativeX = 5, relativeY = 5) 128 151 { … … 131 154 const y = boundingRect.y + relativeY; 132 155 if (this.isIOS()) { 133 await UIHelper. tapAt(x, y);156 await UIHelper.activateAndWaitForInputSessionAt(x, y); 134 157 await UIHelper.doubleTapAt(x, y); 135 158 // This is only here to deal with async/sync copy/paste calls, so -
trunk/Source/WebCore/ChangeLog
r241654 r241719 1 2019-02-18 Megan Gardner <megan_gardner@apple.com> 2 3 Turn On Smart Delete 4 https://bugs.webkit.org/show_bug.cgi?id=194320 5 6 Reviewed by Ryosuke Niwa. 7 8 Updated the following tests to work with iOS: 9 * editing/deleting/smart-delete-001.html: 10 * editing/deleting/smart-delete-002.html: 11 * editing/deleting/smart-delete-003.html: 12 * editing/deleting/smart-delete-004.html: 13 * editing/deleting/smart-delete-across-editable-boundaries-2.html: 14 * editing/selection/delete-word-granularity-text-control.html: 15 16 Turn on Smart delete for iOS at all times. Modify checks to allow Mac and iOS and other 17 platforms to turn on smart delete when desired. 18 19 * editing/Editor.cpp: 20 (WebCore::Editor::shouldSmartDelete): 21 Allow platfroms to determine if smart delete should be on. 22 On mac, this is via word granularity, on iOS this is just on all the time. 23 (WebCore::Editor::canSmartCopyOrDelete): 24 (WebCore::Editor::performCutOrCopy): 25 * editing/Editor.h: 26 * editing/EditorCommand.cpp: 27 (WebCore::executeDelete): 28 * editing/ios/EditorIOS.mm: 29 (WebCore::Editor::shouldSmartDelete): 30 * editing/mac/EditorMac.mm: 31 (WebCore::Editor::shouldSmartDelete): 32 1 33 2019-02-17 David Kilzer <ddkilzer@apple.com> 2 34 -
trunk/Source/WebCore/editing/EditingBehavior.h
r240926 r241719 96 96 // On iOS, we don't want to select all the text when focusing a field. Instead, match platform behavior by going to the end of the line. 97 97 bool shouldMoveSelectionToEndWhenFocusingTextInput() const { return m_type == EditingIOSBehavior; } 98 99 // On iOS, when smart delete is on, it is always on, and should do not additional checks (i.e. WordGranularity). 100 bool shouldAlwaysSmartDelete() const { return m_type == EditingIOSBehavior; } 98 101 99 102 private: -
trunk/Source/WebCore/editing/Editor.cpp
r240641 r241719 513 513 } 514 514 515 bool Editor::shouldSmartDelete() 516 { 517 if (behavior().shouldAlwaysSmartDelete()) 518 return true; 519 return m_frame.selection().granularity() == WordGranularity; 520 } 521 515 522 bool Editor::smartInsertDeleteEnabled() 516 523 { … … 520 527 bool Editor::canSmartCopyOrDelete() 521 528 { 522 return client() && client()->smartInsertDeleteEnabled() && m_frame.selection().granularity() == WordGranularity;529 return client() && client()->smartInsertDeleteEnabled() && shouldSmartDelete(); 523 530 } 524 531 -
trunk/Source/WebCore/editing/Editor.h
r240476 r241719 166 166 WEBCORE_EXPORT bool canPaste() const; 167 167 WEBCORE_EXPORT bool canDelete() const; 168 bool canSmartCopyOrDelete(); 168 WEBCORE_EXPORT bool canSmartCopyOrDelete(); 169 bool shouldSmartDelete(); 169 170 170 171 WEBCORE_EXPORT void cut(); -
trunk/Source/WebCore/editing/EditorCommand.cpp
r241320 r241719 298 298 // If the current selection is a caret, delete the preceding character. IE performs forwardDelete, but we currently side with Firefox. 299 299 // Doesn't scroll to make the selection visible, or modify the kill ring (this time, siding with IE, not Firefox). 300 TypingCommand::deleteKeyPressed(*frame.document(), frame. selection().granularity() == WordGranularity? TypingCommand::SmartDelete : 0);300 TypingCommand::deleteKeyPressed(*frame.document(), frame.editor().shouldSmartDelete() ? TypingCommand::SmartDelete : 0); 301 301 return true; 302 302 }
Note: See TracChangeset
for help on using the changeset viewer.