OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <link rel="help" href="http://www.w3.org/TR/SVG2/text.html#InterfaceSVGTextConte
ntElement"> | 4 <link rel="help" href="http://www.w3.org/TR/SVG2/text.html#InterfaceSVGTextConte
ntElement"> |
5 <script src="../../fast/js/resources/js-test-pre.js"></script> | 5 <script src="../../resources/js-test.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <script> | 8 <script> |
9 description("Check that SVGTextContentElement methods' parameters are correctly
validated"); | 9 description("Check that SVGTextContentElement methods' parameters are correctly
validated"); |
10 | 10 |
11 var svgNS = "http://www.w3.org/2000/svg"; | 11 var svgNS = "http://www.w3.org/2000/svg"; |
12 | 12 |
13 var svgRoot = document.createElementNS(svgNS, "svg"); | 13 var svgRoot = document.createElementNS(svgNS, "svg"); |
14 document.documentElement.appendChild(svgRoot); | 14 document.documentElement.appendChild(svgRoot); |
15 | 15 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 shouldBe("svgText.getSubStringLength(2, 999)", "svgText.getSubStringLength(2, 5)
"); | 82 shouldBe("svgText.getSubStringLength(2, 999)", "svgText.getSubStringLength(2, 5)
"); |
83 shouldBe("svgText.getSubStringLength(2, -1)", "svgText.getSubStringLength(2, 5)"
); | 83 shouldBe("svgText.getSubStringLength(2, -1)", "svgText.getSubStringLength(2, 5)"
); |
84 shouldBe("svgText.getSubStringLength(2, 2)", "svgText.getSubStringLength(2, -429
4967294)"); | 84 shouldBe("svgText.getSubStringLength(2, 2)", "svgText.getSubStringLength(2, -429
4967294)"); |
85 shouldNotThrow("svgText.selectSubString(2, 999)"); | 85 shouldNotThrow("svgText.selectSubString(2, 999)"); |
86 shouldNotThrow("svgText.selectSubString(2, -1)"); | 86 shouldNotThrow("svgText.selectSubString(2, -1)"); |
87 shouldNotThrow("svgText.selectSubString(2, -4294967294)"); | 87 shouldNotThrow("svgText.selectSubString(2, -4294967294)"); |
88 | 88 |
89 </script> | 89 </script> |
90 </body> | 90 </body> |
91 </html> | 91 </html> |
OLD | NEW |