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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/svglist-insertItemBefore-appends.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, 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/dom/svglist-insertItemBefore-appends.html
diff --git a/third_party/WebKit/LayoutTests/svg/dom/svglist-insertItemBefore-appends.html b/third_party/WebKit/LayoutTests/svg/dom/svglist-insertItemBefore-appends.html
deleted file mode 100644
index fc08722ccf7ce8783289a6660f4d2826c3ba3106..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/svglist-insertItemBefore-appends.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></div>
-<script>
- description("Tests that insertItemBefore correctly appends if its index is out of bounds.");
- var path = document.createElementNS("http://www.w3.org/2000/svg","path");
- var seg00 = path.createSVGPathSegMovetoAbs(0,0);
- var seg01 = path.createSVGPathSegMovetoAbs(0,1);
- var seg11 = path.createSVGPathSegMovetoAbs(1,1);
- var seg10 = path.createSVGPathSegMovetoAbs(1,0);
- var svgList = path.pathSegList;
- shouldBe("svgList.numberOfItems", "0");
- svgList.appendItem(seg01);
- shouldBe("svgList.numberOfItems", "1");
- shouldBe("svgList.getItem(0)", "seg01");
- svgList.appendItem(seg11);
- shouldBe("svgList.numberOfItems", "2");
- shouldBe("svgList.getItem(0)", "seg01");
- shouldBe("svgList.getItem(1)", "seg11");
- svgList.insertItemBefore(seg00, 0);
- shouldBe("svgList.numberOfItems", "3");
- shouldBe("svgList.getItem(0)", "seg00");
- shouldBe("svgList.getItem(1)", "seg01");
- shouldBe("svgList.getItem(2)", "seg11");
- svgList.insertItemBefore(seg10, 42);
- shouldBe("svgList.numberOfItems", "4");
- shouldBe("svgList.getItem(0)", "seg00");
- shouldBe("svgList.getItem(1)", "seg01");
- shouldBe("svgList.getItem(2)", "seg11");
- shouldBe("svgList.getItem(3)", "seg10");
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698