[webkit-changes] cvs commit: WebCore/layout-tests/fast/forms formmove-expected.txt formmove.html formmove2-expected.txt formmove2.html formmove3-expected.txt formmove3.html

David hyatt at opensource.apple.com
Thu Aug 4 15:46:36 PDT 2005


hyatt       05/08/04 15:46:36

  Added:       layout-tests/fast/forms formmove-expected.txt formmove.html
                        formmove2-expected.txt formmove2.html
                        formmove3-expected.txt formmove3.html
  Log:
  Add layout tests for form control movement.
  
  Revision  Changes    Path
  1.1                  WebCore/layout-tests/fast/forms/formmove-expected.txt
  
  Index: formmove-expected.txt
  ===================================================================
  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 {FORM} at (0,0) size 784x19
          RenderRadioButton {INPUT} at (3,3) size 12x13
          RenderText {TEXT} at (18,0) size 34x18
            text run at (18,0) width 34: "Two "
          RenderRadioButton {INPUT} at (55,3) size 12x13
          RenderText {TEXT} at (70,0) size 37x18
            text run at (70,0) width 37: "Three"
        RenderBlock {FORM} at (0,35) size 784x19
          RenderRadioButton {INPUT} at (3,3) size 12x13
          RenderText {TEXT} at (18,0) size 31x18
            text run at (18,0) width 31: "One "
          RenderRadioButton {INPUT} at (52,3) size 12x13
          RenderText {TEXT} at (67,0) size 34x18
            text run at (67,0) width 34: "Two "
          RenderRadioButton {INPUT} at (104,3) size 12x13
          RenderText {TEXT} at (119,0) size 41x18
            text run at (119,0) width 41: "Three "
          RenderRadioButton {INPUT} at (163,3) size 12x13
          RenderText {TEXT} at (178,0) size 27x18
            text run at (178,0) width 27: "One"
        RenderBlock (anonymous) at (0,70) size 784x36
          RenderText {TEXT} at (0,0) size 766x36
            text run at (0,0) width 505: "The count of the # of elements in form 1 should be 2 and in form 2 should be 4. "
            text run at (505,0) width 261: "The count in form 1 is 2, and the count in"
            text run at (0,18) width 68: "form 2 is 4"
  
  
  
  1.1                  WebCore/layout-tests/fast/forms/formmove.html
  
  Index: formmove.html
  ===================================================================
  <form><input type=radio name="one">One
  <input type=radio name="one">Two
  <input type=radio name="one">Three
  
  </form>
  
  <form>
  
  <input type=radio name="one">One
  <input type=radio name="one">Two
  <input type=radio name="one">Three
  </form>
  
  <script>
  document.forms[1].appendChild(document.forms[0].firstChild); document.forms[1].appendChild(document.forms[0].firstChild);
  document.write("The count of the # of elements in form 1 should be 2 and in form 2 should be 4.  The count in form 1 is " 
  + document.forms[0].elements.length + ", and the count in form 2 is " + document.forms[1].elements.length);
  </script>
  
  
  
  
  1.1                  WebCore/layout-tests/fast/forms/formmove2-expected.txt
  
  Index: formmove2-expected.txt
  ===================================================================
  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 {FORM} at (0,0) size 784x19
          RenderRadioButton {INPUT} at (3,3) size 12x13
          RenderRadioButton {INPUT} at (21,3) size 12x13
        RenderBlock (anonymous) at (0,35) size 784x36
          RenderText {TEXT} at (0,0) size 777x36
            text run at (0,0) width 777: "There should be two elements in the first form and one in the second. The count in form one is 2, and the count in form two"
            text run at (0,18) width 26: "is 1."
          RenderText {TEXT} at (0,0) size 0x0
  
  
  
  1.1                  WebCore/layout-tests/fast/forms/formmove2.html
  
  Index: formmove2.html
  ===================================================================
  <html>
  <body>
  <form id="a"><input type=radio name="one"></form>
  <form id="b"><input type=radio name="one"><input type=text></form>
  <script>
  var v = document.getElementById('b');
  document.body.removeChild(v);
  document.getElementById('a').appendChild(v.elements[0]);
  document.write("There should be two elements in the first form and one in the second. The count in form one is " + 
  document.forms[0].elements.length + ", and the count in form two is " + v.elements.length + ".");
  </script>
  </body>
  </html>
  
  
  
  1.1                  WebCore/layout-tests/fast/forms/formmove3-expected.txt
  
  Index: formmove3-expected.txt
  ===================================================================
  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 (anonymous) at (0,0) size 784x0
          RenderInline {A} at (0,0) size 0x0
            RenderText {TEXT} at (0,0) size 0x0
        RenderBlock (anonymous) at (0,0) size 784x0
        RenderBlock (anonymous) at (0,0) size 784x0
          RenderInline {A} at (0,0) size 0x0
        RenderBlock {DIV} at (0,0) size 784x28
          RenderBlock (anonymous) at (0,0) size 784x0
            RenderInline {A} at (0,0) size 0x0
              RenderText {TEXT} at (0,0) size 0x0
          RenderBlock (anonymous) at (0,0) size 784x28
            RenderTable {TABLE} at (0,0) size 66x28
              RenderTableSection {TBODY} at (0,0) size 0x28
                RenderTableRow {TR} at (0,0) size 0x0
                  RenderTableCell {TD} at (2,13) size 2x2 [r=0 c=0 rs=1 cs=1]
                  RenderBlock {FORM} at (0,0) size 0x0
                  RenderTableCell {TD} at (6,2) size 58x24 [r=0 c=1 rs=1 cs=1]
                    RenderSubmitButton {INPUT} at (3,3) size 52x18
          RenderBlock (anonymous) at (0,28) size 784x0
            RenderInline {A} at (0,0) size 0x0
            RenderInline {A} at (0,0) size 0x0 [color=#0000EE]
            RenderText {TEXT} at (0,0) size 0x0
  
  
  
  1.1                  WebCore/layout-tests/fast/forms/formmove3.html
  
  Index: formmove3.html
  ===================================================================
  <html>
  <a name="top">
  <div>
  <table>
  <td></td>
  <form action="http://www.google.com/search/" method=get onsubmit="document.write('Form did submit'); return false">
  <td><input id="a" type=submit value="Search"></td>
  </form>
  </table>
  <a href="/about/pricetool.html"></a>
  </div>
  <script>
  document.getElementById('a').click();
  </script>
  </html>
  
  
  



More information about the webkit-changes mailing list