blob: bdb5ae3e65f4f6ec958f48818f88ddd47a1f96a0 [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_js(TypeError, function() { pathElement.getPointAtLength(); });
assert_throws_js(TypeError, function() { pathElement.getPointAtLength(NaN); });
assert_throws_js(TypeError, function() { pathElement.getPointAtLength(Infinity); });
});
</script>