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

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

Issue 2413753004: Move getTotalLength and getPointAtLength methods from SVGPathElement to SVGGeometryElement. (Closed)
Patch Set: nits Created 4 years, 2 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Check invalid arguments of SVGGeometryElement methods</title>
fs 2016/10/24 10:48:53 Please put this test in svg/dom instead.
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script>
6 test(function() {
7 var pathElement = document.createElementNS("http://www.w3.org/2000/svg","path" );
8
9 assert_throws(new TypeError(), function() { pathElement.getPointAtLength(); }) ;
10 assert_throws(new TypeError(), function() { pathElement.getPointAtLength(NaN); });
11 assert_throws(new TypeError(), function() { pathElement.getPointAtLength(Infin ity); });
12
13 assert_throws(new TypeError(), function() { pathElement.getPathSegAtLength(); });
14 assert_throws(new TypeError(), function() { pathElement.getPathSegAtLength(NaN ); });
15 assert_throws(new TypeError(), function() { pathElement.getPathSegAtLength(Inf inity); });
16 });
17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698