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

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

Issue 1416273002: Remove SVGPathElement.pathSegList and related interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 1 month 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
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)', 10 shouldThrow('pathElement.getPointAtLength(NaN)',
11 '"TypeError: Failed to execute \'getPointAtLength\' on \'SVGPathElement\ ': The provided float value is non-finite."'); 11 '"TypeError: Failed to execute \'getPointAtLength\' on \'SVGPathElement\ ': The provided float value is non-finite."');
12 shouldThrow('pathElement.getPointAtLength(Infinity)', 12 shouldThrow('pathElement.getPointAtLength(Infinity)',
13 '"TypeError: Failed to execute \'getPointAtLength\' on \'SVGPathElement\ ': The provided float value is non-finite."'); 13 '"TypeError: Failed to execute \'getPointAtLength\' on \'SVGPathElement\ ': The provided float value is non-finite."');
14 14
15 shouldThrow('pathElement.getPathSegAtLength()', 15 shouldThrow('pathElement.getPathSegAtLength()',
16 '"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)', 17 shouldThrow('pathElement.getPathSegAtLength(NaN)',
18 '"TypeError: Failed to execute \'getPathSegAtLength\' on \'SVGPathElemen t\': The provided float value is non-finite."'); 18 '"TypeError: Failed to execute \'getPathSegAtLength\' on \'SVGPathElemen t\': The provided float value is non-finite."');
19 shouldThrow('pathElement.getPathSegAtLength(Infinity)', 19 shouldThrow('pathElement.getPathSegAtLength(Infinity)',
20 '"TypeError: Failed to execute \'getPathSegAtLength\' on \'SVGPathElemen t\': The provided float value is non-finite."'); 20 '"TypeError: Failed to execute \'getPathSegAtLength\' on \'SVGPathElemen t\': The provided float value is non-finite."');
21
22 shouldThrow('pathElement.createSVGPathSegMovetoAbs(0.0)',
23 '"TypeError: Failed to execute \'createSVGPathSegMovetoAbs\' on \'SVGPat hElement\': 2 arguments required, but only 1 present."');
24
25 shouldThrow('pathElement.createSVGPathSegMovetoRel(0.0)',
26 '"TypeError: Failed to execute \'createSVGPathSegMovetoRel\' on \'SVGPat hElement\': 2 arguments required, but only 1 present."');
27
28 shouldThrow('pathElement.createSVGPathSegLinetoAbs(0.0)',
29 '"TypeError: Failed to execute \'createSVGPathSegLinetoAbs\' on \'SVGPat hElement\': 2 arguments required, but only 1 present."');
30
31 shouldThrow('pathElement.createSVGPathSegLinetoRel(0.0)',
32 '"TypeError: Failed to execute \'createSVGPathSegLinetoRel\' on \'SVGPat hElement\': 2 arguments required, but only 1 present."');
33
34 shouldThrow('pathElement.createSVGPathSegCurvetoCubicAbs(0.0, 1.0, 2.0, 3. 0, 4.0)',
35 '"TypeError: Failed to execute \'createSVGPathSegCurvetoCubicAbs\' on \' SVGPathElement\': 6 arguments required, but only 5 present."');
36
37 shouldThrow('pathElement.createSVGPathSegCurvetoCubicRel(0.0, 1.0, 2.0, 3. 0, 4.0)',
38 '"TypeError: Failed to execute \'createSVGPathSegCurvetoCubicRel\' on \' SVGPathElement\': 6 arguments required, but only 5 present."');
39
40 shouldThrow('pathElement.createSVGPathSegCurvetoQuadraticAbs(0.0, 1.0, 2.0 )',
41 '"TypeError: Failed to execute \'createSVGPathSegCurvetoQuadraticAbs\' o n \'SVGPathElement\': 4 arguments required, but only 3 present."');
42
43 shouldThrow('pathElement.createSVGPathSegCurvetoQuadraticRel(0.0, 1.0, 2.0 )',
44 '"TypeError: Failed to execute \'createSVGPathSegCurvetoQuadraticRel\' o n \'SVGPathElement\': 4 arguments required, but only 3 present."');
45
46 shouldThrow('pathElement.createSVGPathSegArcAbs(0.0, 1.0, 2.0, 3.0, 4.0, t rue)',
47 '"TypeError: Failed to execute \'createSVGPathSegArcAbs\' on \'SVGPathEl ement\': 7 arguments required, but only 6 present."');
48
49 shouldThrow('pathElement.createSVGPathSegArcRel(0.0, 1.0, 2.0, 3.0, 4.0, t rue)',
50 '"TypeError: Failed to execute \'createSVGPathSegArcRel\' on \'SVGPathEl ement\': 7 arguments required, but only 6 present."');
51
52 shouldThrow('pathElement.createSVGPathSegLinetoHorizontalAbs()',
53 '"TypeError: Failed to execute \'createSVGPathSegLinetoHorizontalAbs\' o n \'SVGPathElement\': 1 argument required, but only 0 present."');
54
55 shouldThrow('pathElement.createSVGPathSegLinetoHorizontalRel()',
56 '"TypeError: Failed to execute \'createSVGPathSegLinetoHorizontalRel\' o n \'SVGPathElement\': 1 argument required, but only 0 present."');
57
58 shouldThrow('pathElement.createSVGPathSegLinetoVerticalAbs()',
59 '"TypeError: Failed to execute \'createSVGPathSegLinetoVerticalAbs\' on \'SVGPathElement\': 1 argument required, but only 0 present."');
60
61 shouldThrow('pathElement.createSVGPathSegLinetoVerticalRel()',
62 '"TypeError: Failed to execute \'createSVGPathSegLinetoVerticalRel\' on \'SVGPathElement\': 1 argument required, but only 0 present."');
63
64 shouldThrow('pathElement.createSVGPathSegCurvetoCubicSmoothAbs(0.0, 1.0, 2 .0)',
65 '"TypeError: Failed to execute \'createSVGPathSegCurvetoCubicSmoothAbs\' on \'SVGPathElement\': 4 arguments required, but only 3 present."');
66
67 shouldThrow('pathElement.createSVGPathSegCurvetoCubicSmoothRel(0.0, 1.0, 2 .0)',
68 '"TypeError: Failed to execute \'createSVGPathSegCurvetoCubicSmoothRel\' on \'SVGPathElement\': 4 arguments required, but only 3 present."');
69
70 shouldThrow('pathElement.createSVGPathSegCurvetoQuadraticSmoothAbs(0.0)',
71 '"TypeError: Failed to execute \'createSVGPathSegCurvetoQuadraticSmoothA bs\' on \'SVGPathElement\': 2 arguments required, but only 1 present."');
72
73 shouldThrow('pathElement.createSVGPathSegCurvetoQuadraticSmoothRel(0.0)',
74 '"TypeError: Failed to execute \'createSVGPathSegCurvetoQuadraticSmoothR el\' on \'SVGPathElement\': 2 arguments required, but only 1 present."');
75 </script> 21 </script>
76 <p id="description">Test that correct exceptions are thrown from SVGPath Element methods.</p> 22 <p id="description">Test that correct exceptions are thrown from SVGPath Element methods.</p>
77 <div id="console"></div> 23 <div id="console"></div>
78 </body> 24 </body>
79 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698