blob: 76fb2f49a09656d59544a794cb476a1787974f62 [file] [log] [blame]
<!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>