Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(675)

Side by Side Diff: LayoutTests/svg/dynamic-updates/SVGPathElement-valid-arguments.html

Issue 927073002: Add tests for SVGPathElement.get{PathSeg,Point}AtLength wrt non-finiteness (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/svg/dynamic-updates/SVGPathElement-valid-arguments-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/dynamic-updates/SVGPathElement-valid-arguments-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698