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

Unified Diff: third_party/WebKit/LayoutTests/svg/custom/path-getTotalLength-on-big-segment-crash.svg

Issue 1416273002: Remove SVGPathElement.pathSegList and related interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 2 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
Index: third_party/WebKit/LayoutTests/svg/custom/path-getTotalLength-on-big-segment-crash.svg
diff --git a/third_party/WebKit/LayoutTests/svg/custom/path-getTotalLength-on-big-segment-crash.svg b/third_party/WebKit/LayoutTests/svg/custom/path-getTotalLength-on-big-segment-crash.svg
index e259bc984e8555e837ed6edc25c65f28ab6fb8df..5aca40669b628411b9f73516d75891df4e1c2f01 100644
--- a/third_party/WebKit/LayoutTests/svg/custom/path-getTotalLength-on-big-segment-crash.svg
+++ b/third_party/WebKit/LayoutTests/svg/custom/path-getTotalLength-on-big-segment-crash.svg
@@ -2,18 +2,11 @@
<text x="10" y="30">Test passes if it does not crash.</text>
<script>
<![CDATA[
- var path = document.createElementNS("http://www.w3.org/2000/svg", "path");
- path.setAttribute("d", "M0,0");
- var x = -764285429.594597, y = -4016805151.510674,
- x1 = -1.227687, y1 = -4089196561.699610,
- x2 = -2172808631, y2 = .990756267;
- pathSeg = path.createSVGPathSegCurvetoCubicAbs(x, y, x1 ,y1 ,x2 ,y2);
- pathSegList = path.pathSegList;
- pathSegList.appendItem(pathSeg);
- path.getTotalLength();
if (window.testRunner)
testRunner.dumpAsText();
-
+ var path = document.createElementNS("http://www.w3.org/2000/svg", "path");
+ path.setAttribute("d", "M0,0 C-1.227687,-4089196561.699610 -2172808631,.990756267 -764285429.594597,-4016805151.510674");
+ path.getTotalLength();
]]>
</script>
</svg>

Powered by Google App Engine
This is Rietveld 408576698