Index: third_party/WebKit/LayoutTests/svg/dom/SVGGeometryElement-valid-arguments.html |
diff --git a/third_party/WebKit/LayoutTests/svg/dom/SVGGeometryElement-valid-arguments.html b/third_party/WebKit/LayoutTests/svg/dom/SVGGeometryElement-valid-arguments.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..76fb2f49a09656d59544a794cb476a1787974f62 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/svg/dom/SVGGeometryElement-valid-arguments.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<title>Check invalid arguments of SVGGeometryElement methods</title> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script> |
+test(function() { |
+ var pathElement = document.createElementNS("http://www.w3.org/2000/svg","path"); |
+ |
+ assert_throws(new TypeError(), function() { pathElement.getPointAtLength(); }); |
+ assert_throws(new TypeError(), function() { pathElement.getPointAtLength(NaN); }); |
+ assert_throws(new TypeError(), function() { pathElement.getPointAtLength(Infinity); }); |
+ |
+ assert_throws(new TypeError(), function() { pathElement.getPathSegAtLength(); }); |
+ assert_throws(new TypeError(), function() { pathElement.getPathSegAtLength(NaN); }); |
+ assert_throws(new TypeError(), function() { pathElement.getPathSegAtLength(Infinity); }); |
+}); |
+</script> |