blob: b5db2f4ce2cffece51586f01f96001a47e1d1813 [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); });
});
</script>