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

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

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../fast/js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <script> 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."); 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"); 11 path = document.createElementNS("http://www.w3.org/2000/svg", "path");
12 shouldThrow("path.pathSegList.initialize();"); 12 shouldThrow("path.pathSegList.initialize();");
13 shouldBe("path.getPathSegAtLength(0)", '0'); 13 shouldBe("path.getPathSegAtLength(0)", '0');
14 shouldThrow("path.insertItemBefore(null, 0)"); 14 shouldThrow("path.insertItemBefore(null, 0)");
15 shouldThrow("path.replaceItem(null, 0)"); 15 shouldThrow("path.replaceItem(null, 0)");
16 shouldThrow("path.appendItem(null)"); 16 shouldThrow("path.appendItem(null)");
17 path.pathSegList.initialize(path.createSVGPathSegClosePath()); 17 path.pathSegList.initialize(path.createSVGPathSegClosePath());
18 debug("List correctly initialised."); 18 debug("List correctly initialised.");
19 shouldBe("path.getPathSegAtLength(0)", '0'); 19 shouldBe("path.getPathSegAtLength(0)", '0');
20 shouldThrow("path.insertItemBefore(null, 0)"); 20 shouldThrow("path.insertItemBefore(null, 0)");
21 shouldThrow("path.replaceItem(null, 0)"); 21 shouldThrow("path.replaceItem(null, 0)");
22 shouldThrow("path.appendItem(null)"); 22 shouldThrow("path.appendItem(null)");
23 23
24 </script> 24 </script>
25 <script src="../../fast/js/resources/js-test-post.js"></script>
26 </body> 25 </body>
27 </html> 26 </html>
OLDNEW
« no previous file with comments | « LayoutTests/svg/dom/svgpath-getPathSegAtLength.html ('k') | LayoutTests/svg/dom/text-rotate-live.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698