Chromium Code Reviews| OLD | NEW |
|---|---|
| (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> | |
| OLD | NEW |