Title: [105869] trunk/LayoutTests
- Revision
- 105869
- Author
- [email protected]
- Date
- 2012-01-25 04:39:03 -0800 (Wed, 25 Jan 2012)
Log Message
table border spacing test for CSS3 calc
https://bugs.webkit.org/show_bug.cgi?id=76226
Reviewed by Julien Chaffraix.
Tests for future implementation of CSS3 calc() (see http://webkit.org/b/16662)
These tests are expected to 'fail', and will pass once calc() functionality is landed.
For now, they serve to demonstrate that the current code doesn't crash on these tests.
* css3/calc/table-border-spacing-expected.txt: Added.
* css3/calc/table-border-spacing.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (105868 => 105869)
--- trunk/LayoutTests/ChangeLog 2012-01-25 12:36:44 UTC (rev 105868)
+++ trunk/LayoutTests/ChangeLog 2012-01-25 12:39:03 UTC (rev 105869)
@@ -1,3 +1,18 @@
+2012-01-25 Mike Lawther <[email protected]>
+
+ table border spacing test for CSS3 calc
+ https://bugs.webkit.org/show_bug.cgi?id=76226
+
+ Reviewed by Julien Chaffraix.
+
+ Tests for future implementation of CSS3 calc() (see http://webkit.org/b/16662)
+
+ These tests are expected to 'fail', and will pass once calc() functionality is landed.
+ For now, they serve to demonstrate that the current code doesn't crash on these tests.
+
+ * css3/calc/table-border-spacing-expected.txt: Added.
+ * css3/calc/table-border-spacing.html: Added.
+
2012-01-25 Csaba Osztrogonác <[email protected]>
Unreviewed gardening, Skipped list cleanup.
Added: trunk/LayoutTests/css3/calc/table-border-spacing-expected.txt (0 => 105869)
--- trunk/LayoutTests/css3/calc/table-border-spacing-expected.txt (rev 0)
+++ trunk/LayoutTests/css3/calc/table-border-spacing-expected.txt 2012-01-25 12:39:03 UTC (rev 105869)
@@ -0,0 +1,6 @@
+FAIL document.getElementById("stimulus").offsetWidth should be 416. Was 278.
+FAIL document.getElementById("stimulus").offsetHeight should be 205. Was 136.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: trunk/LayoutTests/css3/calc/table-border-spacing.html (0 => 105869)
--- trunk/LayoutTests/css3/calc/table-border-spacing.html (rev 0)
+++ trunk/LayoutTests/css3/calc/table-border-spacing.html 2012-01-25 12:39:03 UTC (rev 105869)
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<script src=""
+<style>
+ td {
+ padding: 0;
+ width: 50px;
+ height: 60px;
+ background-color: blue;
+ border: 1px solid black
+ }
+ table {
+ border-spacing: -webkit-calc(10px * 2 + 5px);
+ border: 3px solid black;
+ }
+</style>
+<table id="stimulus">
+ <tr>
+ <td></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ </tr>
+</table>
+<script>
+ var innerBorder = 1;
+ var outerBorder = 3;
+ var innerWidth = 50 + 2 * innerBorder;
+ var innerHeight = 60 + 2 * innerBorder;
+ var borderSpacing = 25;
+ var rows = 2;
+ var columns = 5;
+
+ var expectedWidth = innerWidth * columns + borderSpacing * (columns + 1) + 2 * outerBorder;
+ var expectedHeight = innerHeight * rows + borderSpacing * (rows + 1) + 2 * outerBorder;
+
+ shouldEvaluateTo('document.getElementById("stimulus").offsetWidth', expectedWidth);
+ shouldEvaluateTo('document.getElementById("stimulus").offsetHeight', expectedHeight);
+</script>
+<script src=""
+
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes