Title: [259991] trunk/LayoutTests
Revision
259991
Author
[email protected]
Date
2020-04-12 16:09:20 -0700 (Sun, 12 Apr 2020)

Log Message

[LFC][TFC] Add columnSpan test case (fixed width)
https://bugs.webkit.org/show_bug.cgi?id=210411

Unreviewed.


* fast/layoutformattingcontext/table-fixed-width-colspans.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (259990 => 259991)


--- trunk/LayoutTests/ChangeLog	2020-04-12 19:51:40 UTC (rev 259990)
+++ trunk/LayoutTests/ChangeLog	2020-04-12 23:09:20 UTC (rev 259991)
@@ -1,3 +1,12 @@
+2020-04-12  Zalan Bujtas  <[email protected]>
+
+        [LFC][TFC] Add columnSpan test case (fixed width)
+        https://bugs.webkit.org/show_bug.cgi?id=210411
+
+        Unreviewed.
+
+        * fast/layoutformattingcontext/table-fixed-width-colspans.html: Added.
+
 2020-04-12  Lauro Moura  <[email protected]>
 
         [GTK][WPE] Gardening some crashes and flakiness

Added: trunk/LayoutTests/fast/layoutformattingcontext/table-fixed-width-colspans-expected.txt (0 => 259991)


--- trunk/LayoutTests/fast/layoutformattingcontext/table-fixed-width-colspans-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/layoutformattingcontext/table-fixed-width-colspans-expected.txt	2020-04-12 23:09:20 UTC (rev 259991)
@@ -0,0 +1,152 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x406
+  RenderBlock {HTML} at (0,0) size 800x406
+    RenderBody {BODY} at (8,8) size 784x390
+      RenderTable {TABLE} at (0,0) size 600x53
+        RenderTableSection {TBODY} at (0,0) size 600x53
+          RenderTableRow {TR} at (0,2) size 600x15
+            RenderTableCell {TD} at (2,2) size 198x15 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 15x13
+                text run at (1,1) width 15: "###"
+            RenderTableCell {TD} at (201,2) size 198x15 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+            RenderTableCell {TD} at (400,2) size 199x15 [r=0 c=2 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+          RenderTableRow {TR} at (0,19) size 600x15
+            RenderTableCell {TD} at (2,19) size 198x15 [r=1 c=0 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+            RenderTableCell {TD} at (201,19) size 198x15 [r=1 c=1 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+            RenderTableCell {TD} at (400,19) size 199x15 [r=1 c=2 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 15x13
+                text run at (1,1) width 15: "###"
+          RenderTableRow {TR} at (0,36) size 600x15
+            RenderTableCell {TD} at (2,36) size 198x15 [r=2 c=0 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+            RenderTableCell {TD} at (201,36) size 198x15 [r=2 c=1 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 15x13
+                text run at (1,1) width 15: "###"
+            RenderTableCell {TD} at (400,36) size 199x15 [r=2 c=2 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+      RenderTable {TABLE} at (0,53) size 600x53
+        RenderTableSection {TBODY} at (0,0) size 600x53
+          RenderTableRow {TR} at (0,2) size 600x15
+            RenderTableCell {TD} at (2,2) size 198x15 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+            RenderTableCell {TD} at (201,2) size 198x15 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+            RenderTableCell {TD} at (400,2) size 199x15 [r=0 c=2 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+          RenderTableRow {TR} at (0,19) size 600x15
+            RenderTableCell {TD} at (2,19) size 597x15 [r=1 c=0 rs=1 cs=3]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+          RenderTableRow {TR} at (0,36) size 600x15
+            RenderTableCell {TD} at (2,36) size 397x15 [r=2 c=0 rs=1 cs=2]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+            RenderTableCell {TD} at (400,36) size 199x15 [r=2 c=2 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+      RenderTable {TABLE} at (0,106) size 600x53
+        RenderTableSection {TBODY} at (0,0) size 600x53
+          RenderTableRow {TR} at (0,2) size 600x15
+            RenderTableCell {TD} at (2,2) size 280x15 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 15x13
+                text run at (1,1) width 15: "###"
+            RenderTableCell {TD} at (283,2) size 198x15 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 10x13
+                text run at (1,1) width 10: "##"
+            RenderTableCell {TD} at (482,2) size 117x15 [r=0 c=2 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+          RenderTableRow {TR} at (0,19) size 600x15
+            RenderTableCell {TD} at (2,19) size 597x15 [r=1 c=0 rs=1 cs=3]
+              RenderText {#text} at (1,1) size 30x13
+                text run at (1,1) width 30: "######"
+          RenderTableRow {TR} at (0,36) size 600x15
+            RenderTableCell {TD} at (2,36) size 479x15 [r=2 c=0 rs=1 cs=2]
+              RenderText {#text} at (1,1) size 25x13
+                text run at (1,1) width 25: "#####"
+            RenderTableCell {TD} at (482,36) size 117x15 [r=2 c=2 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+      RenderTable {TABLE} at (0,159) size 600x53
+        RenderTableSection {TBODY} at (0,0) size 600x53
+          RenderTableRow {TR} at (0,2) size 600x15
+            RenderTableCell {TD} at (2,2) size 348x15 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 25x13
+                text run at (1,1) width 25: "#####"
+            RenderTableCell {TD} at (351,2) size 155x15 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 10x13
+                text run at (1,1) width 10: "##"
+            RenderTableCell {TD} at (507,2) size 92x15 [r=0 c=2 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+          RenderTableRow {TR} at (0,19) size 600x15
+            RenderTableCell {TD} at (2,19) size 597x15 [r=1 c=0 rs=1 cs=3]
+              RenderText {#text} at (1,1) size 65x13
+                text run at (1,1) width 65: "#############"
+          RenderTableRow {TR} at (0,36) size 600x15
+            RenderTableCell {TD} at (2,36) size 504x15 [r=2 c=0 rs=1 cs=2]
+              RenderText {#text} at (1,1) size 35x13
+                text run at (1,1) width 35: "#######"
+            RenderTableCell {TD} at (507,36) size 92x15 [r=2 c=2 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+      RenderTable {TABLE} at (0,212) size 600x53
+        RenderTableSection {TBODY} at (0,0) size 600x53
+          RenderTableRow {TR} at (0,2) size 600x15
+            RenderTableCell {TD} at (2,2) size 348x15 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 25x13
+                text run at (1,1) width 25: "#####"
+            RenderTableCell {TD} at (351,2) size 155x15 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 10x13
+                text run at (1,1) width 10: "##"
+            RenderTableCell {TD} at (507,2) size 92x15 [r=0 c=2 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+          RenderTableRow {TR} at (0,19) size 600x15
+            RenderTableCell {TD} at (2,19) size 597x15 [r=1 c=0 rs=1 cs=3]
+              RenderText {#text} at (1,1) size 65x13
+                text run at (1,1) width 65: "#############"
+          RenderTableRow {TR} at (0,36) size 600x15
+            RenderTableCell {TD} at (2,36) size 348x15 [r=2 c=0 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+            RenderTableCell {TD} at (351,36) size 248x15 [r=2 c=1 rs=1 cs=2]
+              RenderText {#text} at (1,1) size 15x13
+                text run at (1,1) width 15: "###"
+      RenderTable {TABLE} at (0,265) size 600x125
+        RenderTableSection {TBODY} at (0,0) size 600x125
+          RenderTableRow {TR} at (0,20) size 600x15
+            RenderTableCell {TD} at (20,20) size 286x15 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 15x13
+                text run at (1,1) width 15: "###"
+            RenderTableCell {TD} at (325,20) size 118x15 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+            RenderTableCell {TD} at (462,20) size 119x15 [r=0 c=2 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"
+          RenderTableRow {TR} at (0,55) size 600x15
+            RenderTableCell {TD} at (20,55) size 561x15 [r=1 c=0 rs=1 cs=3]
+              RenderText {#text} at (1,1) size 15x13
+                text run at (1,1) width 15: "###"
+          RenderTableRow {TR} at (0,90) size 600x15
+            RenderTableCell {TD} at (20,90) size 423x15 [r=2 c=0 rs=1 cs=2]
+              RenderText {#text} at (1,1) size 15x13
+                text run at (1,1) width 15: "###"
+            RenderTableCell {TD} at (462,90) size 119x15 [r=2 c=2 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 5x13
+                text run at (1,1) width 5: "#"

Added: trunk/LayoutTests/fast/layoutformattingcontext/table-fixed-width-colspans.html (0 => 259991)


--- trunk/LayoutTests/fast/layoutformattingcontext/table-fixed-width-colspans.html	                        (rev 0)
+++ trunk/LayoutTests/fast/layoutformattingcontext/table-fixed-width-colspans.html	2020-04-12 23:09:20 UTC (rev 259991)
@@ -0,0 +1,42 @@
+<!DOCTYPE html> <!-- webkit-test-runner [ internal:LayoutFormattingContextEnabled=true internal:LayoutFormattingContextIntegrationEnabled=false ] -->
+<style>
+table {
+    font-size: 10px;
+}
+</style>
+<!-- no colspan. -->
+<table style="width: 600px;">
+<tr><td>###</td><td>#</td><td>#</td></tr>
+<tr><td>#</td><td>#</td><td>###</td></tr>
+<tr><td>#</td><td>###</td><td>#</td></tr>
+</table>
+<!-- colspans with shorter content. -->
+<table style="width: 600px;">
+<tr><td>#</td><td>#</td><td>#</td></tr>
+<tr><td colspan=3">#</td></tr>
+<tr><td colspan=2">#</td><td>#</td></tr>
+</table>
+<!-- colspans with exact length. -->
+<table style="width: 600px;">
+<tr><td>###</td><td>##</td><td>#</td></tr>
+<tr><td colspan=3">######</td></tr>
+<tr><td colspan=2">#####</td><td>#</td></tr>
+</table>
+<!-- colspans with longer content. -->
+<table style="width: 600px;">
+<tr><td>#####</td><td>##</td><td>#</td></tr>
+<tr><td colspan=3">#############</td></tr>
+<tr><td colspan=2">#######</td><td>#</td></tr>
+</table>
+<!-- trailing colspans. -->
+<table style="width: 600px;">
+<tr><td>#####</td><td>##</td><td>#</td></tr>
+<tr><td colspan=3">#############</td></tr>
+<tr><td>#</td><td colspan=2">###</td></tr>
+</table>
+<!-- border spacing -->
+<table style="border-spacing: 20px; width: 600px;">
+<tr><td>###</td><td>#</td><td>#</td></tr>
+<tr><td colspan=3">###</td></tr>
+<tr><td colspan=2">###</td><td>#</td></tr>
+</table>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to