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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/SVGPathSegList-insertItemBefore.xhtml

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/SVGPathSegList-insertItemBefore.xhtml
diff --git a/third_party/WebKit/LayoutTests/svg/dom/SVGPathSegList-insertItemBefore.xhtml b/third_party/WebKit/LayoutTests/svg/dom/SVGPathSegList-insertItemBefore.xhtml
deleted file mode 100644
index fbe78e6433616e2dfc27f9ea0932e0f33792b9af..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/SVGPathSegList-insertItemBefore.xhtml
+++ /dev/null
@@ -1,84 +0,0 @@
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<script>window.enablePixelTesting = true;</script>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<svg id="svg" xmlns="http://www.w3.org/2000/svg" width="250" height="250">
- <g transform="translate(10, 10)">
- <path id="path1" d="M 0 0 L 100 0 L 0 100 L 100 100" fill="green"/>
- </g>
-</svg>
-
-<p id="description"></p>
-<div id="console"></div>
-<script type="text/javascript">
-<![CDATA[
- description("This is a test of the SVGPathSegList::insertItemBefore() API.");
-
- var svg = document.getElementById("svg");
- var path1 = document.getElementById("path1");
-
- debug("");
- debug("Check initial 'pathSegList' value of path1");
- shouldBe("path1.pathSegList.numberOfItems", "4");
- shouldBeEqualToString("path1.pathSegList.getItem(0).toString()", "[object SVGPathSegMovetoAbs]");
- shouldBe("path1.pathSegList.getItem(0).x", "0");
- shouldBe("path1.pathSegList.getItem(0).y", "0");
- shouldBeEqualToString("path1.pathSegList.getItem(1).toString()", "[object SVGPathSegLinetoAbs]");
- shouldBe("path1.pathSegList.getItem(1).x", "100");
- shouldBe("path1.pathSegList.getItem(1).y", "0");
- shouldBeEqualToString("path1.pathSegList.getItem(2).toString()", "[object SVGPathSegLinetoAbs]");
- shouldBe("path1.pathSegList.getItem(2).x", "0");
- shouldBe("path1.pathSegList.getItem(2).y", "100");
- shouldBeEqualToString("path1.pathSegList.getItem(3).toString()", "[object SVGPathSegLinetoAbs]");
- shouldBe("path1.pathSegList.getItem(3).x", "100");
- shouldBe("path1.pathSegList.getItem(3).y", "100");
-
- debug("");
- debug("Insert fourth item at position three using insertItemBefore()");
- shouldBeEqualToString("path1.pathSegList.insertItemBefore(path1.pathSegList.getItem(3), 2).toString()", "[object SVGPathSegLinetoAbs]");
- shouldBe("path1.pathSegList.numberOfItems", "5");
- shouldBeEqualToString("path1.pathSegList.getItem(0).toString()", "[object SVGPathSegMovetoAbs]");
- shouldBe("path1.pathSegList.getItem(0).x", "0");
- shouldBe("path1.pathSegList.getItem(0).y", "0");
- shouldBeEqualToString("path1.pathSegList.getItem(1).toString()", "[object SVGPathSegLinetoAbs]");
- shouldBe("path1.pathSegList.getItem(1).x", "100");
- shouldBe("path1.pathSegList.getItem(1).y", "0");
- shouldBeEqualToString("path1.pathSegList.getItem(2).toString()", "[object SVGPathSegLinetoAbs]");
- shouldBe("path1.pathSegList.getItem(2).x", "100");
- shouldBe("path1.pathSegList.getItem(2).y", "100");
- shouldBeEqualToString("path1.pathSegList.getItem(3).toString()", "[object SVGPathSegLinetoAbs]");
- shouldBe("path1.pathSegList.getItem(3).x", "0");
- shouldBe("path1.pathSegList.getItem(3).y", "100");
- shouldBeEqualToString("path1.pathSegList.getItem(4).toString()", "[object SVGPathSegLinetoAbs]");
- shouldBe("path1.pathSegList.getItem(4).x", "100");
- shouldBe("path1.pathSegList.getItem(4).y", "100");
-
- debug("");
- debug("Change last item of path1 list");
- shouldBe("path1.pathSegList.getItem(4).x = 0", "0");
-
- debug("");
- debug("Check final 'pathSegList' value of path1");
- shouldBe("path1.pathSegList.numberOfItems", "5");
- shouldBeEqualToString("path1.pathSegList.getItem(0).toString()", "[object SVGPathSegMovetoAbs]");
- shouldBe("path1.pathSegList.getItem(0).x", "0");
- shouldBe("path1.pathSegList.getItem(0).y", "0");
- shouldBeEqualToString("path1.pathSegList.getItem(1).toString()", "[object SVGPathSegLinetoAbs]");
- shouldBe("path1.pathSegList.getItem(1).x", "100");
- shouldBe("path1.pathSegList.getItem(1).y", "0");
- shouldBeEqualToString("path1.pathSegList.getItem(2).toString()", "[object SVGPathSegLinetoAbs]");
- shouldBe("path1.pathSegList.getItem(2).x", "100");
- shouldBe("path1.pathSegList.getItem(2).y", "100");
- shouldBeEqualToString("path1.pathSegList.getItem(3).toString()", "[object SVGPathSegLinetoAbs]");
- shouldBe("path1.pathSegList.getItem(3).x", "0");
- shouldBe("path1.pathSegList.getItem(3).y", "100");
- shouldBeEqualToString("path1.pathSegList.getItem(4).toString()", "[object SVGPathSegLinetoAbs]");
- shouldBe("path1.pathSegList.getItem(4).x", "0");
- shouldBe("path1.pathSegList.getItem(4).y", "100");
-
-]]>
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698