OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../../resources/js-test.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 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."'); |
10 | 14 |
11 shouldThrow('pathElement.getPathSegAtLength()', | 15 shouldThrow('pathElement.getPathSegAtLength()', |
12 '"TypeError: Failed to execute \'getPathSegAtLength\' on \'SVGPathElemen
t\': 1 argument required, but only 0 present."'); | 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."'); |
13 | 21 |
14 shouldThrow('pathElement.createSVGPathSegMovetoAbs(0.0)', | 22 shouldThrow('pathElement.createSVGPathSegMovetoAbs(0.0)', |
15 '"TypeError: Failed to execute \'createSVGPathSegMovetoAbs\' on \'SVGPat
hElement\': 2 arguments required, but only 1 present."'); | 23 '"TypeError: Failed to execute \'createSVGPathSegMovetoAbs\' on \'SVGPat
hElement\': 2 arguments required, but only 1 present."'); |
16 | 24 |
17 shouldThrow('pathElement.createSVGPathSegMovetoRel(0.0)', | 25 shouldThrow('pathElement.createSVGPathSegMovetoRel(0.0)', |
18 '"TypeError: Failed to execute \'createSVGPathSegMovetoRel\' on \'SVGPat
hElement\': 2 arguments required, but only 1 present."'); | 26 '"TypeError: Failed to execute \'createSVGPathSegMovetoRel\' on \'SVGPat
hElement\': 2 arguments required, but only 1 present."'); |
19 | 27 |
20 shouldThrow('pathElement.createSVGPathSegLinetoAbs(0.0)', | 28 shouldThrow('pathElement.createSVGPathSegLinetoAbs(0.0)', |
21 '"TypeError: Failed to execute \'createSVGPathSegLinetoAbs\' on \'SVGPat
hElement\': 2 arguments required, but only 1 present."'); | 29 '"TypeError: Failed to execute \'createSVGPathSegLinetoAbs\' on \'SVGPat
hElement\': 2 arguments required, but only 1 present."'); |
22 | 30 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 69 |
62 shouldThrow('pathElement.createSVGPathSegCurvetoQuadraticSmoothAbs(0.0)', | 70 shouldThrow('pathElement.createSVGPathSegCurvetoQuadraticSmoothAbs(0.0)', |
63 '"TypeError: Failed to execute \'createSVGPathSegCurvetoQuadraticSmoothA
bs\' on \'SVGPathElement\': 2 arguments required, but only 1 present."'); | 71 '"TypeError: Failed to execute \'createSVGPathSegCurvetoQuadraticSmoothA
bs\' on \'SVGPathElement\': 2 arguments required, but only 1 present."'); |
64 | 72 |
65 shouldThrow('pathElement.createSVGPathSegCurvetoQuadraticSmoothRel(0.0)', | 73 shouldThrow('pathElement.createSVGPathSegCurvetoQuadraticSmoothRel(0.0)', |
66 '"TypeError: Failed to execute \'createSVGPathSegCurvetoQuadraticSmoothR
el\' on \'SVGPathElement\': 2 arguments required, but only 1 present."'); | 74 '"TypeError: Failed to execute \'createSVGPathSegCurvetoQuadraticSmoothR
el\' on \'SVGPathElement\': 2 arguments required, but only 1 present."'); |
67 </script> | 75 </script> |
68 <p id="description">Test that correct exceptions are thrown from SVGPath
Element methods.</p> | 76 <p id="description">Test that correct exceptions are thrown from SVGPath
Element methods.</p> |
69 <div id="console"></div> | 77 <div id="console"></div> |
70 </body> | 78 </body> |
71 </html> | 79 </html> |
OLD | NEW |