Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Unified Diff: LayoutTests/fast/table/incorrect-colgroup-span-values.html

Issue 194593005: ASSERTION FAILED: span >= 1 in WebCore::RenderTable::slowColElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/table/incorrect-colgroup-span-values-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/table/incorrect-colgroup-span-values.html
diff --git a/LayoutTests/fast/table/incorrect-colgroup-span-values.html b/LayoutTests/fast/table/incorrect-colgroup-span-values.html
new file mode 100644
index 0000000000000000000000000000000000000000..3b7599144a45b84cf9dda7e860389bca250e8022
--- /dev/null
+++ b/LayoutTests/fast/table/incorrect-colgroup-span-values.html
@@ -0,0 +1,60 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <script src="../../resources/js-test.js"></script>
+ <script type="text/javascript" charset="utf-8">
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ function test()
+ {
+ description("This test checks that invalid 'span' values are rejected.");
+
+ // Remove "span" attribute (set it to null).
+ document.getElementById("case1").removeAttribute("span");
+
+ shouldBe("document.getElementById('case1').span", "1");
+ shouldBe("document.getElementById('case2').span", "1");
+ shouldBe("document.getElementById('case3').span", "1");
+ shouldBe("document.getElementById('case4').span", "1");
+ shouldBe("document.getElementById('case5').span", "1");
+ shouldBe("document.getElementById('case6').span", "1");
+ }
+ </script>
+ </head>
+ <body>
+ <table>
+ <colgroup id="case1" span="10000000000">
+ <th></th>
+ </colgroup>
+ </table>
+ <table>
+ <colgroup id="case2" span="0">
+ <th></th>
+ </colgroup>
+ </table>
+ <table>
+ <colgroup id="case3" span="10000000000">
+ <th></th>
+ </colgroup>
+ </table>
+ <table>
+ <colgroup id="case4" span="-10000000000">
+ <th></th>
+ </colgroup>
+ </table>
+ <table>
+ <colgroup id="case5" span="Szeged">
+ <th></th>
+ </colgroup>
+ </table>
+ <table>
+ <colgroup>
+ <col id="case6" span="...">
+ </colgroup>
+ </table>
+ <script>
+ test();
+ </script>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/table/incorrect-colgroup-span-values-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698