[webkit-changes] cvs commit: LayoutTests/editing/selection expanding-selections-expected.checksum expanding-selections-expected.png expanding-selections-expected.txt expanding-selections.html expanding-selections2-expected.checksum expanding-selections2-expected.png expanding-selections2-expected.txt expanding-selections2.html

Justin justing at opensource.apple.com
Sat Dec 3 16:53:21 PST 2005


justing     05/12/03 16:53:20

  Modified:    .        ChangeLog
  Added:       editing/selection expanding-selections-expected.checksum
                        expanding-selections-expected.png
                        expanding-selections-expected.txt
                        expanding-selections.html
                        expanding-selections2-expected.checksum
                        expanding-selections2-expected.png
                        expanding-selections2-expected.txt
                        expanding-selections2.html
  Log:
          New layout tests for:
          <http://bugzilla.opendarwin.org/show_bug.cgi?id=5856>
          Selection based in an editable block can extend outside
  
          Reviewed by darin
  
          * editing/selection/expanding-selections-expected.checksum: Added.
          * editing/selection/expanding-selections-expected.png: Added.
          * editing/selection/expanding-selections-expected.txt: Added.
          * editing/selection/expanding-selections.html: Added.
          * editing/selection/expanding-selections2-expected.checksum: Added.
          * editing/selection/expanding-selections2-expected.png: Added.
          * editing/selection/expanding-selections2-expected.txt: Added.
          * editing/selection/expanding-selections2.html: Added.
  
  Revision  Changes    Path
  1.123     +17 -0     LayoutTests/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/LayoutTests/ChangeLog,v
  retrieving revision 1.122
  retrieving revision 1.123
  diff -u -r1.122 -r1.123
  --- ChangeLog	3 Dec 2005 02:33:51 -0000	1.122
  +++ ChangeLog	4 Dec 2005 00:53:18 -0000	1.123
  @@ -1,3 +1,20 @@
  +2005-12-03  Justin Garcia  <justin.garcia at apple.com>
  +
  +        New layout tests for:
  +        <http://bugzilla.opendarwin.org/show_bug.cgi?id=5856>
  +        Selection based in an editable block can extend outside
  +
  +        Reviewed by darin
  +
  +        * editing/selection/expanding-selections-expected.checksum: Added.
  +        * editing/selection/expanding-selections-expected.png: Added.
  +        * editing/selection/expanding-selections-expected.txt: Added.
  +        * editing/selection/expanding-selections.html: Added.
  +        * editing/selection/expanding-selections2-expected.checksum: Added.
  +        * editing/selection/expanding-selections2-expected.png: Added.
  +        * editing/selection/expanding-selections2-expected.txt: Added.
  +        * editing/selection/expanding-selections2.html: Added.
  +
   2005-12-02  Beth Dakin  <bdakin at apple.com>
   
           Layout test for <rdar://problem/4358898> TOT/GLENDALE REGRESSION: 
  
  
  
  1.1                  LayoutTests/editing/selection/expanding-selections-expected.checksum
  
  Index: expanding-selections-expected.checksum
  ===================================================================
  41370fbcedd1851f6758877df9f48758
  
  
  1.1                  LayoutTests/editing/selection/expanding-selections-expected.png
  
  	<<Binary file>>
  
  
  1.1                  LayoutTests/editing/selection/expanding-selections-expected.txt
  
  Index: expanding-selections-expected.txt
  ===================================================================
  EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
  EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  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
  layer at (0,0) size 800x600
    RenderCanvas at (0,0) size 800x600
  layer at (0,0) size 800x600
    RenderBlock {HTML} at (0,0) size 800x600
      RenderBody {BODY} at (8,8) size 784x576
        RenderBlock {P} at (0,0) size 784x36
          RenderText {TEXT} at (0,0) size 776x36
            text run at (0,0) width 414: "This tests double clicking inside and at the end of an editable div. "
            text run at (414,0) width 362: "The selection that is created should not extend outside the"
            text run at (0,18) width 97: "editable region."
        RenderBlock {DIV} at (0,52) size 784x18
          RenderText {TEXT} at (0,0) size 206x18
            text run at (0,0) width 206: "This text is inside an editable div"
          RenderInline {SPAN} at (0,0) size 4x18
            RenderText {TEXT} at (206,0) size 4x18
              text run at (206,0) width 4: " "
  layer at (8,94) size 784x18
    RenderBlock {P} at (0,86) size 784x18
      RenderText {TEXT} at (0,0) size 150x18
        text run at (0,0) width 150: "This text is not editable."
  caret: position 1 of child 0 {TEXT} of child 1 {SPAN} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
  
  
  
  1.1                  LayoutTests/editing/selection/expanding-selections.html
  
  Index: expanding-selections.html
  ===================================================================
  <html> 
  <head>
  
  <script>
  
  function editingTest() {
      var elem = document.getElementById("end");
      x = elem.offsetLeft + elem.offsetWidth + 10;
      y = elem.offsetTop + 10;
      
      eventSender.mouseMoveTo(x, y);
      eventSender.mouseDown();
      eventSender.mouseUp();
      eventSender.mouseDown();
  }
  
  </script>
  </head>
  <body>
  <p>This tests double clicking inside and at the end of an editable div.  The selection that is created should not extend outside the editable region.</p>
  <div id="editablediv" contenteditable="true">This text is inside an editable div<span id="end">&nbsp;</span></div>
  <p style="overflow: hidden;">This text is not editable.</p>
  </body>
  <script>
  editingTest();
  </script>
  </html>
  
  
  
  1.1                  LayoutTests/editing/selection/expanding-selections2-expected.checksum
  
  Index: expanding-selections2-expected.checksum
  ===================================================================
  c9b20ca7d3aa41a84e5bff88cc411e40
  
  
  1.1                  LayoutTests/editing/selection/expanding-selections2-expected.png
  
  	<<Binary file>>
  
  
  1.1                  LayoutTests/editing/selection/expanding-selections2-expected.txt
  
  Index: expanding-selections2-expected.txt
  ===================================================================
  EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
  EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  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
  layer at (0,0) size 800x600
    RenderCanvas at (0,0) size 800x600
  layer at (0,0) size 800x600
    RenderBlock {HTML} at (0,0) size 800x600
      RenderBody {BODY} at (8,8) size 784x584
        RenderBlock {P} at (0,0) size 784x36
          RenderText {TEXT} at (0,0) size 776x36
            text run at (0,0) width 414: "This tests double clicking inside and at the end of an editable div. "
            text run at (414,0) width 362: "The selection that is created should not extend outside the"
            text run at (0,18) width 97: "editable region."
        RenderBlock {DIV} at (0,52) size 784x18
          RenderText {TEXT} at (0,0) size 181x18
            text run at (0,0) width 181: "This text is in an editable div"
          RenderInline {SPAN} at (0,0) size 4x18
            RenderText {TEXT} at (181,0) size 4x18
              text run at (181,0) width 4: "."
        RenderBlock (anonymous) at (0,70) size 784x18
          RenderText {TEXT} at (0,0) size 242x18
            text run at (0,0) width 242: "This text is outside the editable region."
          RenderText {TEXT} at (0,0) size 0x0
          RenderText {TEXT} at (0,0) size 0x0
  caret: position 1 of child 0 {TEXT} of child 1 {SPAN} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
  
  
  
  1.1                  LayoutTests/editing/selection/expanding-selections2.html
  
  Index: expanding-selections2.html
  ===================================================================
  <html> 
  <head>
  
  <script>
  
  function editingTest() {
      var elem = document.getElementById("end");
      x = elem.offsetLeft + elem.offsetWidth + 10;
      y = elem.offsetTop + 10;
      
      eventSender.mouseMoveTo(x, y);
      eventSender.mouseDown();
      eventSender.mouseUp();
      eventSender.mouseDown();
  }
  
  </script>
  </head>
  <body>
  <p>This tests double clicking inside and at the end of an editable div.  The selection that is created should not extend outside the editable region.</p>
  <div contenteditable="true">This text is in an editable div<span id="end">.</span></div>
  
  This text is outside the editable region.
  
  </body>
  <script>
  editingTest();
  </script>
  </html>
  
  



More information about the webkit-changes mailing list