Title: [91744] trunk/LayoutTests
- Revision
- 91744
- Author
- [email protected]
- Date
- 2011-07-26 00:05:52 -0700 (Tue, 26 Jul 2011)
Log Message
Add regression test for :empty { display: none }
https://bugs.webkit.org/show_bug.cgi?id=26570
Patch by Noel Gordon <[email protected]> on 2011-07-26
Reviewed by Alexey Proskuryakov.
* fast/css/pseudo-empty-display-none-expected.txt: Added.
* fast/css/pseudo-empty-display-none.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (91743 => 91744)
--- trunk/LayoutTests/ChangeLog 2011-07-26 05:35:00 UTC (rev 91743)
+++ trunk/LayoutTests/ChangeLog 2011-07-26 07:05:52 UTC (rev 91744)
@@ -1,3 +1,13 @@
+2011-07-26 Noel Gordon <[email protected]>
+
+ Add regression test for :empty { display: none }
+ https://bugs.webkit.org/show_bug.cgi?id=26570
+
+ Reviewed by Alexey Proskuryakov.
+
+ * fast/css/pseudo-empty-display-none-expected.txt: Added.
+ * fast/css/pseudo-empty-display-none.html: Added.
+
2011-07-25 Dan Bernstein <[email protected]>
Updated three more tests that relied on fonts loading synchronously.
Added: trunk/LayoutTests/fast/css/pseudo-empty-display-none-expected.txt (0 => 91744)
--- trunk/LayoutTests/fast/css/pseudo-empty-display-none-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/css/pseudo-empty-display-none-expected.txt 2011-07-26 07:05:52 UTC (rev 91744)
@@ -0,0 +1,3 @@
+Test for bug 26570. There should be two green boxes on this page.
+
+PASS
Added: trunk/LayoutTests/fast/css/pseudo-empty-display-none.html (0 => 91744)
--- trunk/LayoutTests/fast/css/pseudo-empty-display-none.html (rev 0)
+++ trunk/LayoutTests/fast/css/pseudo-empty-display-none.html 2011-07-26 07:05:52 UTC (rev 91744)
@@ -0,0 +1,26 @@
+<style>
+ p { background-color: green; width: 100px; height: 100px }
+ p:empty { display: none }
+</style>
+
+<body>
+ Test for <a href="" bug 26570</a>.
+ There should be two green boxes on this page.<br>
+ <p></p>
+ <p>	</p>
+ <p></p>
+ <p><span></span></p>
+ <p></p>
+</body>
+
+<script>
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+ var list = document.querySelectorAll("p");
+ for (var result = "", i = 0; i < list.length; ++i)
+ result += list.item(i).offsetWidth == (100 * (i & 1)) ? "PASS " : "FAIL ";
+
+ result = list.length == result.match(/PASS /g).length ? "PASS" : "FAIL";
+ document.body.appendChild(document.createTextNode(result));
+</script>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes