⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 98743 in webkit


Ignore:
Timestamp:
Oct 28, 2011, 11:29:35 AM (15 years ago)
Author:
inferno@chromium.org
Message:

Merge 98411 - Made Table tests for Bug 70678 Platform Independent
BUG=101540
Review URL: http://codereview.chromium.org/8416045

Location:
branches/chromium/874/LayoutTests/fast/table
Files:
6 edited
3 copied

Legend:

Unmodified
Added
Removed
  • branches/chromium/874/LayoutTests/fast/table/table-anonymous-cell-bug-expected.txt

    r98739 r98743  
    44  RenderBlock {HTML} at (0,0) size 800x66
    55    RenderBody {BODY} at (8,8) size 784x50
    6       RenderTable {DIV} at (0,0) size 260x50
    7         RenderTableSection {DIV} at (0,0) size 260x50
    8           RenderTableRow {DIV} at (0,0) size 260x50
     6      RenderTable {DIV} at (0,0) size 150x50
     7        RenderTableSection {DIV} at (0,0) size 150x50
     8          RenderTableRow {DIV} at (0,0) size 150x50
    99            RenderTableCell {DIV} at (0,0) size 50x0 [bgcolor=#0000FF] [r=0 c=0 rs=1 cs=1]
    10             RenderTableCell (anonymous) at (50,0) size 160x16 [r=0 c=1 rs=1 cs=1]
    11               RenderInline {SPAN} at (0,0) size 160x16
    12                 RenderText {#text} at (0,0) size 160x16
    13                   text run at (0,0) width 160: "Some text."
    14             RenderTableCell {DIV} at (210,0) size 50x0 [bgcolor=#0000FF] [r=0 c=2 rs=1 cs=1]
     10            RenderTableCell (anonymous) at (50,0) size 50x50 [r=0 c=1 rs=1 cs=1]
     11              RenderBlock {DIV} at (0,0) size 50x50 [bgcolor=#008000]
     12            RenderTableCell {DIV} at (100,0) size 50x0 [bgcolor=#0000FF] [r=0 c=2 rs=1 cs=1]
  • branches/chromium/874/LayoutTests/fast/table/table-anonymous-cell-bug.html

    r98739 r98743  
    77    div.cell { display: table-cell; width: 50px; height: 50px; background-color: blue; }
    88    div.row { display: table-row; }
     9    div.test { background-color: green; width: 50px; height: 50px; }
    910</style>
    1011
     
    1920
    2021<script>
    21     function createSpan()
     22    function createDiv()
    2223    {
    23       var spanElement = document.createElement("span");
    24       spanElement.appendChild(document.createTextNode("Some text."));
    25       return spanElement;
     24      var divElement = document.createElement("div");
     25      divElement.setAttribute("class", "test");
     26      return divElement;
    2627    }
    2728
    28     function insertSpan(tableID, beforeID)
     29    function insertDiv(tableID, beforeID)
    2930    {
    3031        var tableRow = document.getElementById(tableID);
    3132        var before = document.getElementById(beforeID);
    32         tableRow.insertBefore(createSpan(), before);
     33        tableRow.insertBefore(createDiv(), before);
    3334    }
    3435
    3536    document.body.offsetTop;
    3637
    37     insertSpan("row-1", "cell-2");
     38    insertDiv("row-1", "cell-2");
    3839</script>
    3940</body>
  • branches/chromium/874/LayoutTests/fast/table/table-anonymous-row-bug-expected.txt

    r98739 r98743  
    11layer at (0,0) size 800x600
    22  RenderView at (0,0) size 800x600
    3 layer at (0,0) size 800x132
    4   RenderBlock {HTML} at (0,0) size 800x132
    5     RenderBody {BODY} at (8,8) size 784x116
    6       RenderTable {DIV} at (0,0) size 160x116
    7         RenderTableSection (anonymous) at (0,0) size 160x116
    8           RenderTableRow {DIV} at (0,0) size 160x50
    9             RenderTableCell {DIV} at (0,0) size 160x16 [bgcolor=#0000FF] [r=0 c=0 rs=1 cs=1]
    10               RenderText {#text} at (0,0) size 96x16
    11                 text run at (0,0) width 96: "Cell 1"
    12           RenderTableRow (anonymous) at (0,50) size 160x16
    13             RenderTableCell (anonymous) at (0,50) size 160x16 [r=1 c=0 rs=1 cs=1]
    14               RenderInline {SPAN} at (0,0) size 160x16
    15                 RenderText {#text} at (0,0) size 160x16
    16                   text run at (0,0) width 160: "Some text."
    17           RenderTableRow {DIV} at (0,66) size 160x50
    18             RenderTableCell {DIV} at (0,66) size 160x16 [bgcolor=#0000FF] [r=2 c=0 rs=1 cs=1]
    19               RenderText {#text} at (0,0) size 96x16
    20                 text run at (0,0) width 96: "Cell 2"
     3layer at (0,0) size 800x166
     4  RenderBlock {HTML} at (0,0) size 800x166
     5    RenderBody {BODY} at (8,8) size 784x150
     6      RenderTable {DIV} at (0,0) size 50x150
     7        RenderTableSection (anonymous) at (0,0) size 50x150
     8          RenderTableRow {DIV} at (0,0) size 50x50
     9            RenderTableCell {DIV} at (0,0) size 50x0 [bgcolor=#0000FF] [r=0 c=0 rs=1 cs=1]
     10          RenderTableRow (anonymous) at (0,50) size 50x50
     11            RenderTableCell (anonymous) at (0,50) size 50x50 [r=1 c=0 rs=1 cs=1]
     12              RenderBlock {DIV} at (0,0) size 50x50 [bgcolor=#008000]
     13          RenderTableRow {DIV} at (0,100) size 50x50
     14            RenderTableCell {DIV} at (0,100) size 50x0 [bgcolor=#0000FF] [r=2 c=0 rs=1 cs=1]
  • branches/chromium/874/LayoutTests/fast/table/table-anonymous-row-bug.html

    r98739 r98743  
    66    div.cell { display: table-cell; width: 50px; height: 50px; background-color: blue; }
    77    div.row { display: table-row; }
     8    div.test { background-color: green; width: 50px; height: 50px; }
    89</style>
    910
    1011<div class="table" id="table-1">
    1112    <div class="row" id="row-1">
    12       <div class="cell">Cell 1</div>
     13      <div class="cell"></div>
    1314    </div>
    1415    <div class="row" id="row-2">
    15       <div class="cell">Cell 2</div>
     16      <div class="cell"></div>
    1617    </div>
    1718</div>
    1819
    1920<script>
    20     function createSpan()
     21    function createDiv()
    2122    {
    22       var spanElement = document.createElement("span");
    23       spanElement.appendChild(document.createTextNode("Some text."));
    24       return spanElement;
     23      var divElement = document.createElement("div");
     24      divElement.setAttribute("class", "test");
     25      return divElement;
    2526    }
    2627
    27     function insertSpan(tableID, beforeID)
     28    function insertDiv(tableID, beforeID)
    2829    {
    2930        var table = document.getElementById(tableID);
    3031        var before = document.getElementById(beforeID);
    31         table.insertBefore(createSpan(), before);
     32        table.insertBefore(createDiv(), before);
    3233    }
    3334
    3435    document.body.offsetTop;
    3536
    36     insertSpan("table-1", "row-2");
     37    insertDiv("table-1", "row-2");
    3738</script>
    3839</body>
  • branches/chromium/874/LayoutTests/fast/table/table-anonymous-section-bug-expected.txt

    r98739 r98743  
    11layer at (0,0) size 800x600
    22  RenderView at (0,0) size 800x600
    3 layer at (0,0) size 800x32
    4   RenderBlock {HTML} at (0,0) size 800x32
    5     RenderBody {BODY} at (8,8) size 784x16
    6       RenderTable {DIV} at (0,0) size 160x16
    7         RenderTableSection {DIV} at (0,0) size 160x0
    8         RenderTableSection (anonymous) at (0,0) size 160x16
    9           RenderTableRow (anonymous) at (0,0) size 160x16
    10             RenderTableCell (anonymous) at (0,0) size 160x16 [r=0 c=0 rs=1 cs=1]
    11               RenderInline {SPAN} at (0,0) size 160x16
    12                 RenderText {#text} at (0,0) size 160x16
    13                   text run at (0,0) width 160: "Some text."
    14         RenderTableSection {DIV} at (0,16) size 160x0
     3layer at (0,0) size 800x66
     4  RenderBlock {HTML} at (0,0) size 800x66
     5    RenderBody {BODY} at (8,8) size 784x50
     6      RenderTable {DIV} at (0,0) size 50x50
     7        RenderTableSection {DIV} at (0,0) size 50x0
     8        RenderTableSection (anonymous) at (0,0) size 50x50
     9          RenderTableRow (anonymous) at (0,0) size 50x50
     10            RenderTableCell (anonymous) at (0,0) size 50x50 [r=0 c=0 rs=1 cs=1]
     11              RenderBlock {DIV} at (0,0) size 50x50 [bgcolor=#008000]
     12        RenderTableSection {DIV} at (0,50) size 50x0
  • branches/chromium/874/LayoutTests/fast/table/table-anonymous-section-bug.html

    r98739 r98743  
    55    div.table { display: table; }
    66    div.section { display: table-row-group; }
     7    div.test { background-color: green; width: 50px; height: 50px; }
    78</style>
    89
     
    1516
    1617<script>
    17     function createSpan()
     18    function createDiv()
    1819    {
    19       var spanElement = document.createElement("span");
    20       spanElement.appendChild(document.createTextNode("Some text."));
    21       return spanElement;
     20      var divElement = document.createElement("div");
     21      divElement.setAttribute("class", "test");
     22      return divElement;
    2223    }
    2324
    24     function insertSpan(tableID, beforeID)
     25    function insertDiv(tableID, beforeID)
    2526    {
    2627        var table = document.getElementById(tableID);
    2728        var before = document.getElementById(beforeID);
    28         table.insertBefore(createSpan(), before);
     29        table.insertBefore(createDiv(), before);
    2930    }
    3031
    3132    document.body.offsetTop;
    3233
    33     insertSpan("table-1", "tbody-2");
     34    insertDiv("table-1", "tbody-2");
    3435</script>
    3536</body>
Note: See TracChangeset for help on using the changeset viewer.