Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Unified Diff: LayoutTests/svg/dynamic-updates/SVGPathElement-valid-arguments.html

Issue 927073002: Add tests for SVGPathElement.get{PathSeg,Point}AtLength wrt non-finiteness (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/svg/dynamic-updates/SVGPathElement-valid-arguments-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/dynamic-updates/SVGPathElement-valid-arguments.html
diff --git a/LayoutTests/svg/dynamic-updates/SVGPathElement-valid-arguments.html b/LayoutTests/svg/dynamic-updates/SVGPathElement-valid-arguments.html
index b298d5614b203848ba307be4996ca374a911f518..fc7a9f6733990e7356ed686d9c57272607d7e8ba 100644
--- a/LayoutTests/svg/dynamic-updates/SVGPathElement-valid-arguments.html
+++ b/LayoutTests/svg/dynamic-updates/SVGPathElement-valid-arguments.html
@@ -6,10 +6,18 @@
var pathElement = document.createElementNS("http://www.w3.org/2000/svg","path");
shouldThrow('pathElement.getPointAtLength()',
- '"TypeError: Failed to execute \'getPointAtLength\' on \'SVGPathElement\': 1 argument required, but only 0 present."');
+ '"TypeError: Failed to execute \'getPointAtLength\' on \'SVGPathElement\': 1 argument required, but only 0 present."');
+ shouldThrow('pathElement.getPointAtLength(NaN)',
+ '"TypeError: Failed to execute \'getPointAtLength\' on \'SVGPathElement\': The provided float value is non-finite."');
+ shouldThrow('pathElement.getPointAtLength(Infinity)',
+ '"TypeError: Failed to execute \'getPointAtLength\' on \'SVGPathElement\': The provided float value is non-finite."');
shouldThrow('pathElement.getPathSegAtLength()',
'"TypeError: Failed to execute \'getPathSegAtLength\' on \'SVGPathElement\': 1 argument required, but only 0 present."');
+ shouldThrow('pathElement.getPathSegAtLength(NaN)',
+ '"TypeError: Failed to execute \'getPathSegAtLength\' on \'SVGPathElement\': The provided float value is non-finite."');
+ shouldThrow('pathElement.getPathSegAtLength(Infinity)',
+ '"TypeError: Failed to execute \'getPathSegAtLength\' on \'SVGPathElement\': The provided float value is non-finite."');
shouldThrow('pathElement.createSVGPathSegMovetoAbs(0.0)',
'"TypeError: Failed to execute \'createSVGPathSegMovetoAbs\' on \'SVGPathElement\': 2 arguments required, but only 1 present."');
@@ -68,4 +76,4 @@
<p id="description">Test that correct exceptions are thrown from SVGPathElement methods.</p>
<div id="console"></div>
</body>
-</html>
+</html>
« no previous file with comments | « no previous file | LayoutTests/svg/dynamic-updates/SVGPathElement-valid-arguments-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698