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

Side by Side 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, 1 month 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 unified diff | Download patch
OLDNEW
1 <svg xmlns="http://www.w3.org/2000/svg"> 1 <svg xmlns="http://www.w3.org/2000/svg">
2 <text x="10" y="30">Test passes if it does not crash.</text> 2 <text x="10" y="30">Test passes if it does not crash.</text>
3 <script> 3 <script>
4 <![CDATA[ 4 <![CDATA[
5 var path = document.createElementNS("http://www.w3.org/2000/svg", "path");
6 path.setAttribute("d", "M0,0");
7 var x = -764285429.594597, y = -4016805151.510674,
8 x1 = -1.227687, y1 = -4089196561.699610,
9 x2 = -2172808631, y2 = .990756267;
10 pathSeg = path.createSVGPathSegCurvetoCubicAbs(x, y, x1 ,y1 ,x2 ,y2);
11 pathSegList = path.pathSegList;
12 pathSegList.appendItem(pathSeg);
13 path.getTotalLength();
14 if (window.testRunner) 5 if (window.testRunner)
15 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
16 7 var path = document.createElementNS("http://www.w3.org/2000/svg", "path");
8 path.setAttribute("d", "M0,0 C-1.227687,-4089196561.699610 -2172808631,.9907 56267 -764285429.594597,-4016805151.510674");
9 path.getTotalLength();
17 ]]> 10 ]]>
18 </script> 11 </script>
19 </svg> 12 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698