OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 <script> | 5 <script> |
6 var pathElement = document.createElementNS("http://www.w3.org/2000/svg","p
ath"); | 6 var pathElement = document.createElementNS("http://www.w3.org/2000/svg","p
ath"); |
7 | 7 |
8 shouldThrow('pathElement.getPointAtLength()', | 8 shouldThrow('pathElement.getPointAtLength()', |
9 '"TypeError: Failed to execute \'getPointAtLength\' on \'SVGPathElement\
': 1 argument required, but only 0 present."'); | 9 '"TypeError: Failed to execute \'getPointAtLength\' on \'SVGPathElement\
': 1 argument required, but only 0 present."'); |
10 | 10 |
11 shouldThrow('pathElement.getPathSegAtLength()', | 11 shouldThrow('pathElement.getPathSegAtLength()', |
12 '"TypeError: Failed to execute \'getPathSegAtLength\' on \'SVGPathElemen
t\': 1 argument required, but only 0 present."'); | 12 '"TypeError: Failed to execute \'getPathSegAtLength\' on \'SVGPathElemen
t\': 1 argument required, but only 0 present."'); |
13 | 13 |
14 shouldThrow('pathElement.createSVGPathSegMovetoAbs(0.0)', | 14 shouldThrow('pathElement.createSVGPathSegMovetoAbs(0.0)', |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 shouldThrow('pathElement.createSVGPathSegCurvetoQuadraticSmoothAbs(0.0)', | 62 shouldThrow('pathElement.createSVGPathSegCurvetoQuadraticSmoothAbs(0.0)', |
63 '"TypeError: Failed to execute \'createSVGPathSegCurvetoQuadraticSmoothA
bs\' on \'SVGPathElement\': 2 arguments required, but only 1 present."'); | 63 '"TypeError: Failed to execute \'createSVGPathSegCurvetoQuadraticSmoothA
bs\' on \'SVGPathElement\': 2 arguments required, but only 1 present."'); |
64 | 64 |
65 shouldThrow('pathElement.createSVGPathSegCurvetoQuadraticSmoothRel(0.0)', | 65 shouldThrow('pathElement.createSVGPathSegCurvetoQuadraticSmoothRel(0.0)', |
66 '"TypeError: Failed to execute \'createSVGPathSegCurvetoQuadraticSmoothR
el\' on \'SVGPathElement\': 2 arguments required, but only 1 present."'); | 66 '"TypeError: Failed to execute \'createSVGPathSegCurvetoQuadraticSmoothR
el\' on \'SVGPathElement\': 2 arguments required, but only 1 present."'); |
67 </script> | 67 </script> |
68 <p id="description">Test that correct exceptions are thrown from SVGPath
Element methods.</p> | 68 <p id="description">Test that correct exceptions are thrown from SVGPath
Element methods.</p> |
69 <div id="console"></div> | 69 <div id="console"></div> |
70 </body> | 70 </body> |
71 </html> | 71 </html> |
OLD | NEW |