| 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>
|
|
|