Title: [120560] trunk/LayoutTests
Revision
120560
Author
[email protected]
Date
2012-06-17 19:22:12 -0700 (Sun, 17 Jun 2012)

Log Message

colspan in table-layout:fixed does not add up widths properly
https://bugs.webkit.org/show_bug.cgi?id=20213

Reviewed by Abhishek Arya.

The bug has been fixed (likely by bug 14858) so landing the test case as fixed table layout with cell spanning several
<col>'s with fixed widths is not properly covered.

* fast/table/fixed-table-layout/fixed-layout-column-colspan-wrong-size-expected.txt: Added.
* fast/table/fixed-table-layout/fixed-layout-column-colspan-wrong-size.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (120559 => 120560)


--- trunk/LayoutTests/ChangeLog	2012-06-18 02:12:17 UTC (rev 120559)
+++ trunk/LayoutTests/ChangeLog	2012-06-18 02:22:12 UTC (rev 120560)
@@ -1,3 +1,16 @@
+2012-06-17  Julien Chaffraix  <[email protected]>
+
+        colspan in table-layout:fixed does not add up widths properly
+        https://bugs.webkit.org/show_bug.cgi?id=20213
+
+        Reviewed by Abhishek Arya.
+
+        The bug has been fixed (likely by bug 14858) so landing the test case as fixed table layout with cell spanning several
+        <col>'s with fixed widths is not properly covered.
+
+        * fast/table/fixed-table-layout/fixed-layout-column-colspan-wrong-size-expected.txt: Added.
+        * fast/table/fixed-table-layout/fixed-layout-column-colspan-wrong-size.html: Added.
+
 2012-06-17  Philip Rogers  <[email protected]>
 
         Prevent crash in SVGDocumentExtensions::removeAllElementReferencesForTarget.

Added: trunk/LayoutTests/fast/table/fixed-table-layout/fixed-layout-column-colspan-wrong-size-expected.txt (0 => 120560)


--- trunk/LayoutTests/fast/table/fixed-table-layout/fixed-layout-column-colspan-wrong-size-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/table/fixed-table-layout/fixed-layout-column-colspan-wrong-size-expected.txt	2012-06-18 02:22:12 UTC (rev 120560)
@@ -0,0 +1,10 @@
+Bug 20213: colspan in table-layout:fixed does not add up widths properly
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS window.getComputedStyle(testCell).width is '320px'
+PASS window.getComputedStyle(testTable).width is '330px'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/fast/table/fixed-table-layout/fixed-layout-column-colspan-wrong-size.html (0 => 120560)


--- trunk/LayoutTests/fast/table/fixed-table-layout/fixed-layout-column-colspan-wrong-size.html	                        (rev 0)
+++ trunk/LayoutTests/fast/table/fixed-table-layout/fixed-layout-column-colspan-wrong-size.html	2012-06-18 02:22:12 UTC (rev 120560)
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+table {
+    width: 330px;
+    table-layout: fixed;
+    border-spacing: 0px;
+}
+td {
+    padding: 0px;
+}
+</style>
+<script src=""
+<script>
+if (window.layoutTestController)
+    layoutTestController.dumpAsText();
+
+function test()
+{
+    description("Bug 20213: colspan in table-layout:fixed does not add up widths properly");
+
+    testCell = document.getElementById("tdColspan");
+    testTable = document.getElementsByTagName("table")[0];
+    shouldBe("window.getComputedStyle(testCell).width", "'320px'");
+    shouldBe("window.getComputedStyle(testTable).width", "'330px'");
+    isSuccessfullyParsed();
+}
+
+window.addEventListener("load", test);
+</script>
+</head>
+<body>
+    <table>
+        <colgroup>
+            <col width="10">
+            <col width="300">
+            <col width="10">
+            <col width="10">
+        </colgroup>
+        <tbody>
+            <tr>
+            <td></td>
+            <td colspan="3" id="tdColspan"></td>
+            </tr>
+        </tbody>
+    </table>
+    <div id="description"></div>
+    <div id="console"></div>
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to