Changeset 83181 in webkit
- Timestamp:
- Apr 7, 2011 10:03:43 AM (13 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 1 deleted
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r83175 r83181 1 2011-04-07 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 editing/inserting/6633727.html should be renamed and converted into a dump-as-markup test 6 https://bugs.webkit.org/show_bug.cgi?id=58037 7 8 Renamed 6633727.html to insert-paragraph-at-end-of-line.html and converted it to a dump-as-markup test. 9 10 * editing/inserting/6633727-expected.txt: Removed. 11 * editing/inserting/6633727.html: Removed. 12 * editing/inserting/insert-paragraph-at-end-of-line-expected.txt: Added. 13 * editing/inserting/insert-paragraph-at-end-of-line.html: Copied from LayoutTests/editing/inserting/6633727.html. 14 * editing/inserting/script-tests/6633727.js: Removed. 15 1 16 2011-04-07 Yury Semikhatsky <yurys@chromium.org> 2 17 -
trunk/LayoutTests/editing/inserting/insert-paragraph-at-end-of-line-expected.txt
r83159 r83181 1 This tests the fix for <rdar://problem/6633727> Hitting return at the end of a line with an anchor jumps me to the bottom of the message. If the test has passed, the numbers should be in order, and only "1" should be a link. 2 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 5 6 PASS editable.innerHTML is '<a href="#" id="anchor">1</a><div><a href="#" id="anchor"></a>2<br><div>3</div></div>' 7 PASS sel.baseNode is editable.childNodes.item(1).childNodes.item(1) 8 PASS sel.baseNode.nodeType is Node.TEXT_NODE 9 PASS sel.baseOffset is 1 10 PASS successfullyParsed is true 11 12 TEST COMPLETE 13 1 14 2 15 3 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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 4 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 6 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > A > DIV > BODY > HTML > #document to 1 of #text > A > 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 7 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 8 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 9 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 11 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 13 EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification 14 This tests the fix for <rdar://problem/6633727> - Hitting return at the end of a line with an anchor jumps me to the bottom of the message. 15 If the test has passed, the numbers should be in order, and only "1" should be a link. 16 | <a> 17 | href="#" 18 | id="anchor" 19 | "1" 20 | <div> 21 | <a> 22 | href="#" 23 | id="anchor" 24 | "2<#selection-caret>" 25 | <br> 26 | <div> 27 | "3" -
trunk/LayoutTests/editing/inserting/insert-paragraph-at-end-of-line.html
r83159 r83181 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">1 <!DOCTYPE html> 2 2 <html> 3 <head>4 <link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">5 <script src="../../fast/js/resources/js-test-pre.js"></script>6 </head>7 3 <body> 8 <p id="description"></p> 9 <div id="console"></div> 10 <script src="script-tests/6633727.js"></script> 11 <script src="../../fast/js/resources/js-test-post.js"></script> 4 <script src="../../resources/dump-as-markup.js"></script> 5 <script> 6 7 if (window.layoutTestController) 8 layoutTestController.dumpEditingCallbacks(); 9 10 // Set up the div 11 var editable = document.createElement('div'); 12 editable.contentEditable = true; 13 editable.innerHTML = '<a href="#" id="anchor">1</a><div>3</div>'; 14 document.body.appendChild(editable); 15 editable.focus(); 16 17 // Edit it with execCommand 18 var sel = window.getSelection(); 19 sel.setPosition(document.getElementById('anchor'), 1); 20 document.execCommand("InsertParagraph"); 21 document.execCommand("InsertText", false, "2"); 22 23 Markup.description('This tests the fix for <rdar://problem/6633727> - Hitting return at the end of a line with an anchor jumps me to the bottom of the message.\n'+ 24 'If the test has passed, the numbers should be in order, and only "1" should be a link.'); 25 Markup.dump(editable); 26 27 </script> 12 28 </body> 13 29 </html>
Note: See TracChangeset
for help on using the changeset viewer.