OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <body> | |
4 <script src="../../resources/js-test.js"></script> | |
5 <script> | |
6 var pathElement = document.createElementNS("http://www.w3.org/2000/svg","p
ath"); | |
7 | |
8 shouldThrow('pathElement.getPointAtLength()', | |
9 '"TypeError: Failed to execute \'getPointAtLength\' on \'SVGPathElement\
': 1 argument required, but only 0 present."'); | |
10 shouldThrow('pathElement.getPointAtLength(NaN)', | |
11 '"TypeError: Failed to execute \'getPointAtLength\' on \'SVGPathElement\
': The provided float value is non-finite."'); | |
12 shouldThrow('pathElement.getPointAtLength(Infinity)', | |
13 '"TypeError: Failed to execute \'getPointAtLength\' on \'SVGPathElement\
': The provided float value is non-finite."'); | |
14 | |
15 shouldThrow('pathElement.getPathSegAtLength()', | |
16 '"TypeError: Failed to execute \'getPathSegAtLength\' on \'SVGPathElemen
t\': 1 argument required, but only 0 present."'); | |
17 shouldThrow('pathElement.getPathSegAtLength(NaN)', | |
18 '"TypeError: Failed to execute \'getPathSegAtLength\' on \'SVGPathElemen
t\': The provided float value is non-finite."'); | |
19 shouldThrow('pathElement.getPathSegAtLength(Infinity)', | |
20 '"TypeError: Failed to execute \'getPathSegAtLength\' on \'SVGPathElemen
t\': The provided float value is non-finite."'); | |
21 </script> | |
22 <p id="description">Test that correct exceptions are thrown from SVGPath
Element methods.</p> | |
23 <div id="console"></div> | |
24 </body> | |
25 </html> | |
OLD | NEW |