OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> |
| 5 <script type="text/javascript" charset="utf-8"> |
| 6 if (window.testRunner) |
| 7 testRunner.dumpAsText(); |
| 8 |
| 9 function test() |
| 10 { |
| 11 description("This test checks that invalid 'span' values are rej
ected."); |
| 12 |
| 13 // Remove "span" attribute (set it to null). |
| 14 document.getElementById("case1").removeAttribute("span"); |
| 15 |
| 16 shouldBe("document.getElementById('case1').span", "1"); |
| 17 shouldBe("document.getElementById('case2').span", "1"); |
| 18 shouldBe("document.getElementById('case3').span", "1"); |
| 19 shouldBe("document.getElementById('case4').span", "1"); |
| 20 shouldBe("document.getElementById('case5').span", "1"); |
| 21 shouldBe("document.getElementById('case6').span", "1"); |
| 22 } |
| 23 </script> |
| 24 </head> |
| 25 <body> |
| 26 <table> |
| 27 <colgroup id="case1" span="10000000000"> |
| 28 <th></th> |
| 29 </colgroup> |
| 30 </table> |
| 31 <table> |
| 32 <colgroup id="case2" span="0"> |
| 33 <th></th> |
| 34 </colgroup> |
| 35 </table> |
| 36 <table> |
| 37 <colgroup id="case3" span="10000000000"> |
| 38 <th></th> |
| 39 </colgroup> |
| 40 </table> |
| 41 <table> |
| 42 <colgroup id="case4" span="-10000000000"> |
| 43 <th></th> |
| 44 </colgroup> |
| 45 </table> |
| 46 <table> |
| 47 <colgroup id="case5" span="Szeged"> |
| 48 <th></th> |
| 49 </colgroup> |
| 50 </table> |
| 51 <table> |
| 52 <colgroup> |
| 53 <col id="case6" span="..."> |
| 54 </colgroup> |
| 55 </table> |
| 56 <script> |
| 57 test(); |
| 58 </script> |
| 59 </body> |
| 60 </html> |
OLD | NEW |