[webkit-changes] cvs commit: LayoutTests/editing/selection paragraph-granularity-expected.checksum paragraph-granularity-expected.png paragraph-granularity-expected.txt paragraph-granularity.html word-granularity-expected.checksum word-granularity-expected.png word-granularity-expected.txt word-granularity.html

Justin justing at opensource.apple.com
Mon Dec 5 20:29:57 PST 2005


justing     05/12/05 20:29:57

  Modified:    .        ChangeLog
  Added:       editing/selection paragraph-granularity-expected.checksum
                        paragraph-granularity-expected.png
                        paragraph-granularity-expected.txt
                        paragraph-granularity.html
                        word-granularity-expected.checksum
                        word-granularity-expected.png
                        word-granularity-expected.txt word-granularity.html
  Log:
          New layout tests for:
          <http://bugzilla.opendarwin.org/show_bug.cgi?id=5936>
          REGRESSION: selection keeps growing after double-click
          Also filed as <rdar://problem/4364425>
  
          Reviewed by darin, harrsion
  
          * editing/selection/paragraph-granularity-expected.checksum: Added.
          * editing/selection/paragraph-granularity-expected.png: Added.
          * editing/selection/paragraph-granularity-expected.txt: Added.
          * editing/selection/paragraph-granularity.html: Added.
          * editing/selection/word-granularity-expected.checksum: Added.
          * editing/selection/word-granularity-expected.png: Added.
          * editing/selection/word-granularity-expected.txt: Added.
          * editing/selection/word-granularity.html: Added.
  
  Revision  Changes    Path
  1.127     +18 -0     LayoutTests/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/LayoutTests/ChangeLog,v
  retrieving revision 1.126
  retrieving revision 1.127
  diff -u -r1.126 -r1.127
  --- ChangeLog	6 Dec 2005 02:04:01 -0000	1.126
  +++ ChangeLog	6 Dec 2005 04:29:54 -0000	1.127
  @@ -1,3 +1,21 @@
  +2005-12-05  Justin Garcia  <justin.garcia at apple.com>
  +
  +        New layout tests for:
  +        <http://bugzilla.opendarwin.org/show_bug.cgi?id=5936>
  +        REGRESSION: selection keeps growing after double-click
  +        Also filed as <rdar://problem/4364425>
  +
  +        Reviewed by darin, harrsion
  +
  +        * editing/selection/paragraph-granularity-expected.checksum: Added.
  +        * editing/selection/paragraph-granularity-expected.png: Added.
  +        * editing/selection/paragraph-granularity-expected.txt: Added.
  +        * editing/selection/paragraph-granularity.html: Added.
  +        * editing/selection/word-granularity-expected.checksum: Added.
  +        * editing/selection/word-granularity-expected.png: Added.
  +        * editing/selection/word-granularity-expected.txt: Added.
  +        * editing/selection/word-granularity.html: Added.
  +
   2005-12-05  Eric Seidel  <eseidel at apple.com>
   
           Reviewed by timo.
  
  
  
  1.1                  LayoutTests/editing/selection/paragraph-granularity-expected.checksum
  
  Index: paragraph-granularity-expected.checksum
  ===================================================================
  9487a030a0937eb7311fc46adeb4a2b6
  
  
  1.1                  LayoutTests/editing/selection/paragraph-granularity-expected.png
  
  	<<Binary file>>
  
  
  1.1                  LayoutTests/editing/selection/paragraph-granularity-expected.txt
  
  Index: paragraph-granularity-expected.txt
  ===================================================================
  EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 15 of #text > DIV > BODY > HTML > #document to 15 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 15 of #text > DIV > BODY > HTML > #document to 15 of #text > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > DIV > BODY > HTML > #document to 4 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text > DIV > BODY > HTML > #document to 4 of #text > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 4 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 4 of DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  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 784x18
          RenderText {TEXT} at (0,0) size 697x18
            text run at (0,0) width 368: "This tests modifying a selection created with a triple click. "
            text run at (368,0) width 329: "The new selection should use paragraph granularity."
        RenderBlock {P} at (0,34) size 784x54 [color=#008000]
          RenderText {TEXT} at (0,0) size 771x54
            text run at (0,0) width 224: "This test does not run interactively. "
            text run at (224,0) width 414: "It uses the layoutTestControllers eventSender to do mouse clicks. "
            text run at (638,0) width 121: "To run it manually,"
            text run at (0,18) width 365: "double click on the blue 'g', then drag down to the red 'g'. "
            text run at (365,18) width 406: "As you drag, watch the selection that is created, it should always"
            text run at (0,36) width 244: "start and end on paragraph boundaries."
        RenderBlock {DIV} at (0,104) size 784x108
          RenderText {TEXT} at (0,0) size 84x18
            text run at (0,0) width 84: "This is a para"
          RenderInline {SPAN} at (0,0) size 8x18 [color=#0000FF]
            RenderText {TEXT} at (84,0) size 8x18
              text run at (84,0) width 8: "g"
          RenderText {TEXT} at (92,0) size 32x18
            text run at (92,0) width 32: "raph."
          RenderBR {BR} at (0,0) size 0x0
          RenderText {TEXT} at (0,18) size 63x18
            text run at (0,18) width 63: "Some text"
          RenderBR {BR} at (0,0) size 0x0
          RenderText {TEXT} at (0,36) size 63x18
            text run at (0,36) width 63: "Some text"
          RenderBR {BR} at (0,0) size 0x0
          RenderText {TEXT} at (0,54) size 63x18
            text run at (0,54) width 63: "Some text"
          RenderBR {BR} at (0,0) size 0x0
          RenderText {TEXT} at (0,72) size 63x18
            text run at (0,72) width 63: "Some text"
          RenderBR {BR} at (0,0) size 0x0
          RenderText {TEXT} at (0,90) size 84x18
            text run at (0,90) width 84: "This is a para"
          RenderInline {SPAN} at (0,0) size 8x18 [color=#FF0000]
            RenderText {TEXT} at (84,90) size 8x18
              text run at (84,90) width 8: "g"
          RenderText {TEXT} at (92,90) size 32x18
            text run at (92,90) width 32: "raph."
  selection start: position 1 of child 0 {TEXT} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
  selection end:   position 5 of child 14 {TEXT} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
  
  
  
  1.1                  LayoutTests/editing/selection/paragraph-granularity.html
  
  Index: paragraph-granularity.html
  ===================================================================
  <html> 
  <head>
  
  <script>
  
  function editingTest() {
      var start = document.getElementById("start");
      
      x = start.offsetLeft + 10;
      y = start.offsetTop + 10;
      
      eventSender.mouseMoveTo(x, y);
      eventSender.mouseDown();
      eventSender.mouseUp();
      eventSender.mouseDown();
      eventSender.mouseUp();
      eventSender.mouseDown();
      
      var end = document.getElementById("end");
      
      x = end.offsetLeft + end.offsetWidth + 10;
      y = end.offsetTop + 10;
      
      eventSender.mouseMoveTo(x, y);
      eventSender.mouseUp();
  }
  
  </script>
  </head>
  <body>
  <p>This tests modifying a selection created with a triple click.  The new selection should use paragraph granularity.</p>
  <p style="color:green">This test does not run interactively.  It uses the layoutTestControllers eventSender to do mouse clicks.  To run it manually, double click on the blue 'g', then drag down to the red 'g'.  As you drag, watch the selection that is created, it should always start and end on paragraph boundaries.</p>
  <div>
  This is a para<span style="color:blue;" id="start">g</span>raph.<br>
  Some text<br>
  Some text<br>
  Some text<br>
  Some text<br>
  This is a para<span style="color:red;" id="end">g</span>raph.
  </div>
  </body>
  <script>
  editingTest();
  </script>
  </html>
  
  
  
  1.1                  LayoutTests/editing/selection/word-granularity-expected.checksum
  
  Index: word-granularity-expected.checksum
  ===================================================================
  dba48794bc314598535385bd461bc453
  
  
  1.1                  LayoutTests/editing/selection/word-granularity-expected.png
  
  	<<Binary file>>
  
  
  1.1                  LayoutTests/editing/selection/word-granularity-expected.txt
  
  Index: word-granularity-expected.txt
  ===================================================================
  EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 15 of #text > DIV > BODY > HTML > #document to 15 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 15 of #text > DIV > BODY > HTML > #document to 15 of #text > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > DIV > BODY > HTML > #document to 4 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text > DIV > BODY > HTML > #document to 4 of #text > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > DIV > BODY > HTML > #document to 4 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  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 784x18
          RenderText {TEXT} at (0,0) size 678x18
            text run at (0,0) width 379: "This tests modifying a selection created with a double click. "
            text run at (379,0) width 299: "The new selection should use word granularity."
        RenderBlock {P} at (0,34) size 784x54 [color=#008000]
          RenderText {TEXT} at (0,0) size 771x54
            text run at (0,0) width 224: "This test does not run interactively. "
            text run at (224,0) width 414: "It uses the layoutTestControllers eventSender to do mouse clicks. "
            text run at (638,0) width 121: "To run it manually,"
            text run at (0,18) width 365: "double click on the blue 'g', then drag down to the red 'g'. "
            text run at (365,18) width 406: "As you drag, watch the selection that is created, it should always"
            text run at (0,36) width 214: "start and end on word boundaries."
        RenderBlock {DIV} at (0,104) size 784x108
          RenderText {TEXT} at (0,0) size 84x18
            text run at (0,0) width 84: "This is a para"
          RenderInline {SPAN} at (0,0) size 8x18 [color=#0000FF]
            RenderText {TEXT} at (84,0) size 8x18
              text run at (84,0) width 8: "g"
          RenderText {TEXT} at (92,0) size 32x18
            text run at (92,0) width 32: "raph."
          RenderBR {BR} at (0,0) size 0x0
          RenderText {TEXT} at (0,18) size 63x18
            text run at (0,18) width 63: "Some text"
          RenderBR {BR} at (0,0) size 0x0
          RenderText {TEXT} at (0,36) size 63x18
            text run at (0,36) width 63: "Some text"
          RenderBR {BR} at (0,0) size 0x0
          RenderText {TEXT} at (0,54) size 63x18
            text run at (0,54) width 63: "Some text"
          RenderBR {BR} at (0,0) size 0x0
          RenderText {TEXT} at (0,72) size 63x18
            text run at (0,72) width 63: "Some text"
          RenderBR {BR} at (0,0) size 0x0
          RenderText {TEXT} at (0,90) size 84x18
            text run at (0,90) width 84: "This is a para"
          RenderInline {SPAN} at (0,0) size 8x18 [color=#FF0000]
            RenderText {TEXT} at (84,90) size 8x18
              text run at (84,90) width 8: "g"
          RenderText {TEXT} at (92,90) size 32x18
            text run at (92,90) width 32: "raph."
  selection start: position 11 of child 0 {TEXT} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
  selection end:   position 4 of child 14 {TEXT} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
  
  
  
  1.1                  LayoutTests/editing/selection/word-granularity.html
  
  Index: word-granularity.html
  ===================================================================
  <html> 
  <head>
  
  <script>
  
  function editingTest() {
      var start = document.getElementById("start");
      
      x = start.offsetLeft + 10;
      y = start.offsetTop + 10;
      
      eventSender.mouseMoveTo(x, y);
      eventSender.mouseDown();
      eventSender.mouseUp();
      eventSender.mouseDown();
      
      var end = document.getElementById("end");
      
      x = end.offsetLeft + end.offsetWidth + 10;
      y = end.offsetTop + 10;
      
      eventSender.mouseMoveTo(x, y);
      eventSender.mouseUp();
  }
  
  </script>
  </head>
  <body>
  <p>This tests modifying a selection created with a double click.  The new selection should use word granularity.</p>
  <p style="color:green">This test does not run interactively.  It uses the layoutTestControllers eventSender to do mouse clicks.  To run it manually, double click on the blue 'g', then drag down to the red 'g'.  As you drag, watch the selection that is created, it should always start and end on word boundaries.</p>
  <div>
  This is a para<span style="color:blue;" id="start">g</span>raph.<br>
  Some text<br>
  Some text<br>
  Some text<br>
  Some text<br>
  This is a para<span style="color:red;" id="end">g</span>raph.
  </div>
  </body>
  <script>
  editingTest();
  </script>
  </html>
  
  
  



More information about the webkit-changes mailing list