summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/table/incorrect-colgroup-span-values.html
blob: 3b7599144a45b84cf9dda7e860389bca250e8022 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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>