Diff
Modified: trunk/LayoutTests/ChangeLog (97682 => 97683)
--- trunk/LayoutTests/ChangeLog 2011-10-18 00:44:33 UTC (rev 97682)
+++ trunk/LayoutTests/ChangeLog 2011-10-18 00:45:09 UTC (rev 97683)
@@ -1,3 +1,21 @@
+2011-10-17 Julien Chaffraix <[email protected]>
+
+ ASSERTION FAILED: !m_layoutRoot->container() || !m_layoutRoot->container()->needsLayout() with generated content
+ https://bugs.webkit.org/show_bug.cgi?id=61411
+
+ Reviewed by Andy Estes.
+
+ The bug was fixed by r95926 or bug 62120. Landing the tests from the bug.
+
+ * fast/dynamic/crash-generated-counter-expected.txt: Added.
+ * fast/dynamic/crash-generated-counter.html: Added.
+ * fast/dynamic/crash-generated-image-expected.txt: Added.
+ * fast/dynamic/crash-generated-image.html: Added.
+ * fast/dynamic/crash-generated-quote-expected.txt: Added.
+ * fast/dynamic/crash-generated-quote.html: Added.
+ * fast/dynamic/crash-generated-text-expected.txt: Added.
+ * fast/dynamic/crash-generated-text.html: Added.
+
2011-10-17 Gavin Barraclough <[email protected]>
Exception ordering in String.prototype.replace
Added: trunk/LayoutTests/fast/dynamic/crash-generated-counter-expected.txt (0 => 97683)
--- trunk/LayoutTests/fast/dynamic/crash-generated-counter-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/dynamic/crash-generated-counter-expected.txt 2011-10-18 00:45:09 UTC (rev 97683)
@@ -0,0 +1,3 @@
+Test for bug 61411: ASSERTION FAILED: !m_layoutRoot->container() || !m_layoutRoot->container()->needsLayout() with generated content
+Test passes if it does not crash.
+
Added: trunk/LayoutTests/fast/dynamic/crash-generated-counter.html (0 => 97683)
--- trunk/LayoutTests/fast/dynamic/crash-generated-counter.html (rev 0)
+++ trunk/LayoutTests/fast/dynamic/crash-generated-counter.html 2011-10-18 00:45:09 UTC (rev 97683)
@@ -0,0 +1,23 @@
+<html>
+ <body>
+ <style>
+ div:before
+ {
+ counter-reset: foobar;
+ content: counter(foobar, upper-roman);
+ display: block;
+ overflow: hidden;
+ width: 100;
+ height: 100;
+ }
+ </style>
+ Test for bug <a href="" ASSERTION FAILED: !m_layoutRoot->container() || !m_layoutRoot->container()->needsLayout() with generated content<br>
+ Test passes if it does not crash.
+ <script>
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+ document.body.offsetTop;
+ </script><div></div>
+ </body>
+</html>
Property changes on: trunk/LayoutTests/fast/dynamic/crash-generated-counter.html
___________________________________________________________________
Added: svn:executable
Added: trunk/LayoutTests/fast/dynamic/crash-generated-image-expected.txt (0 => 97683)
--- trunk/LayoutTests/fast/dynamic/crash-generated-image-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/dynamic/crash-generated-image-expected.txt 2011-10-18 00:45:09 UTC (rev 97683)
@@ -0,0 +1,3 @@
+Test for bug 61411: ASSERTION FAILED: !m_layoutRoot->container() || !m_layoutRoot->container()->needsLayout() with generated content
+Test passes if it does not crash.
+
Added: trunk/LayoutTests/fast/dynamic/crash-generated-image.html (0 => 97683)
--- trunk/LayoutTests/fast/dynamic/crash-generated-image.html (rev 0)
+++ trunk/LayoutTests/fast/dynamic/crash-generated-image.html 2011-10-18 00:45:09 UTC (rev 97683)
@@ -0,0 +1,22 @@
+<html>
+ <body>
+ <style>
+ div:before
+ {
+ content: url(resources/greenbox.png);
+ display: block;
+ overflow: hidden;
+ width: 100;
+ height: 100;
+ }
+ </style>
+ Test for bug <a href="" ASSERTION FAILED: !m_layoutRoot->container() || !m_layoutRoot->container()->needsLayout() with generated content<br>
+ Test passes if it does not crash.
+ <script>
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+ document.body.offsetTop;
+ </script><div></div>
+ </body>
+</html>
Property changes on: trunk/LayoutTests/fast/dynamic/crash-generated-image.html
___________________________________________________________________
Added: svn:executable
Added: trunk/LayoutTests/fast/dynamic/crash-generated-quote-expected.txt (0 => 97683)
--- trunk/LayoutTests/fast/dynamic/crash-generated-quote-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/dynamic/crash-generated-quote-expected.txt 2011-10-18 00:45:09 UTC (rev 97683)
@@ -0,0 +1,3 @@
+Test for bug 61411: ASSERTION FAILED: !m_layoutRoot->container() || !m_layoutRoot->container()->needsLayout() with generated content
+Test passes if it does not crash.
+
Added: trunk/LayoutTests/fast/dynamic/crash-generated-quote.html (0 => 97683)
--- trunk/LayoutTests/fast/dynamic/crash-generated-quote.html (rev 0)
+++ trunk/LayoutTests/fast/dynamic/crash-generated-quote.html 2011-10-18 00:45:09 UTC (rev 97683)
@@ -0,0 +1,22 @@
+<html>
+ <body>
+ <style>
+ div:before
+ {
+ content: open-quote;
+ display: block;
+ overflow: hidden;
+ width: 100;
+ height: 100;
+ }
+ </style>
+ Test for bug <a href="" ASSERTION FAILED: !m_layoutRoot->container() || !m_layoutRoot->container()->needsLayout() with generated content<br>
+ Test passes if it does not crash.
+ <script>
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+ document.body.offsetTop;
+ </script><div></div>
+ </body>
+</html>
Property changes on: trunk/LayoutTests/fast/dynamic/crash-generated-quote.html
___________________________________________________________________
Added: svn:executable
Added: trunk/LayoutTests/fast/dynamic/crash-generated-text-expected.txt (0 => 97683)
--- trunk/LayoutTests/fast/dynamic/crash-generated-text-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/dynamic/crash-generated-text-expected.txt 2011-10-18 00:45:09 UTC (rev 97683)
@@ -0,0 +1,3 @@
+Test for bug 61411: ASSERTION FAILED: !m_layoutRoot->container() || !m_layoutRoot->container()->needsLayout() with generated content
+Test passes if it does not crash.
+
Added: trunk/LayoutTests/fast/dynamic/crash-generated-text.html (0 => 97683)
--- trunk/LayoutTests/fast/dynamic/crash-generated-text.html (rev 0)
+++ trunk/LayoutTests/fast/dynamic/crash-generated-text.html 2011-10-18 00:45:09 UTC (rev 97683)
@@ -0,0 +1,22 @@
+<html>
+ <body>
+ <style>
+ div:before
+ {
+ content: 'PASS';
+ display: block;
+ overflow: hidden;
+ width: 100;
+ height: 100;
+ }
+ </style>
+ Test for bug <a href="" ASSERTION FAILED: !m_layoutRoot->container() || !m_layoutRoot->container()->needsLayout() with generated content<br>
+ Test passes if it does not crash.
+ <script>
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+ document.body.offsetTop;
+ </script><div></div>
+ </body>
+</html>
Property changes on: trunk/LayoutTests/fast/dynamic/crash-generated-text.html
___________________________________________________________________
Added: svn:executable