Changeset 83181 in webkit


Ignore:
Timestamp:
Apr 7, 2011 10:03:43 AM (13 years ago)
Author:
rniwa@webkit.org
Message:

2011-04-07 Ryosuke Niwa <rniwa@webkit.org>

Reviewed by Eric Seidel.

editing/inserting/6633727.html should be renamed and converted into a dump-as-markup test
https://bugs.webkit.org/show_bug.cgi?id=58037

Renamed 6633727.html to insert-paragraph-at-end-of-line.html and converted it to a dump-as-markup test.

  • editing/inserting/6633727-expected.txt: Removed.
  • editing/inserting/6633727.html: Removed.
  • editing/inserting/insert-paragraph-at-end-of-line-expected.txt: Added.
  • editing/inserting/insert-paragraph-at-end-of-line.html: Copied from LayoutTests/editing/inserting/6633727.html.
  • editing/inserting/script-tests/6633727.js: Removed.
Location:
trunk/LayoutTests
Files:
1 deleted
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r83175 r83181  
     12011-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
    1162011-04-07  Yury Semikhatsky  <yurys@chromium.org>
    217
  • 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
     1EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
     2EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
     3EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     4EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
     5EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
     6EDITING 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
     7EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
     8EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
     9EDITING 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
     10EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
     11EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
     12EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
     13EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
     14This 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.
     15If 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>
    22<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>
    73<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
     7if (window.layoutTestController)
     8    layoutTestController.dumpEditingCallbacks();
     9
     10// Set up the div
     11var editable = document.createElement('div');
     12editable.contentEditable = true;
     13editable.innerHTML = '<a href="#" id="anchor">1</a><div>3</div>';
     14document.body.appendChild(editable);
     15editable.focus();
     16
     17// Edit it with execCommand
     18var sel = window.getSelection();
     19sel.setPosition(document.getElementById('anchor'), 1);
     20document.execCommand("InsertParagraph");
     21document.execCommand("InsertText", false, "2");
     22
     23Markup.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.');
     25Markup.dump(editable);
     26
     27</script>
    1228</body>
    1329</html>
Note: See TracChangeset for help on using the changeset viewer.