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

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

Issue 2413753004: Move getTotalLength and getPointAtLength methods from SVGPathElement to SVGGeometryElement. (Closed)
Patch Set: Align with review comments Created 4 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
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698