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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/dom/svgpath-out-of-bounds-getPathSeg.html

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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9 <script>
10 description("Tests that an exception is thrown if we try to get a pathSeg fo r a length out of the bounds of the path itself.");
11 path = document.createElementNS("http://www.w3.org/2000/svg", "path");
12 shouldThrow("path.pathSegList.initialize();");
13 shouldBe("path.getPathSegAtLength(0)", '0');
14 shouldThrow("path.insertItemBefore(null, 0)");
15 shouldThrow("path.replaceItem(null, 0)");
16 shouldThrow("path.appendItem(null)");
17 path.pathSegList.initialize(path.createSVGPathSegClosePath());
18 debug("List correctly initialised.");
19 shouldBe("path.getPathSegAtLength(0)", '0');
20 shouldThrow("path.insertItemBefore(null, 0)");
21 shouldThrow("path.replaceItem(null, 0)");
22 shouldThrow("path.appendItem(null)");
23
24 </script>
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698