Index: third_party/WebKit/LayoutTests/svg/dom/SVGPathSegList-appendItem.xhtml |
diff --git a/third_party/WebKit/LayoutTests/svg/dom/SVGPathSegList-appendItem.xhtml b/third_party/WebKit/LayoutTests/svg/dom/SVGPathSegList-appendItem.xhtml |
deleted file mode 100644 |
index eefb80cf7d4cf8c99a4c3fa86a33f41783673b82..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/svg/dom/SVGPathSegList-appendItem.xhtml |
+++ /dev/null |
@@ -1,126 +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 100 100" fill="green"/> |
- <path transform="translate(110, 0)" id="path2" d="M 0 0 L 50 100 h 100 h 100 v 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::appendItem() API."); |
- |
- var svg = document.getElementById("svg"); |
- var path1 = document.getElementById("path1"); |
- var path2 = document.getElementById("path2"); |
- |
- debug(""); |
- debug("Check initial 'pathSegList' value of path1"); |
- shouldBe("path1.pathSegList.numberOfItems", "3"); |
- 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"); |
- |
- debug(""); |
- debug("Check initial 'pathSegList' value of path2"); |
- shouldBe("path2.pathSegList.numberOfItems", "5"); |
- shouldBeEqualToString("path2.pathSegList.getItem(0).toString()", "[object SVGPathSegMovetoAbs]"); |
- shouldBe("path2.pathSegList.getItem(0).x", "0"); |
- shouldBe("path2.pathSegList.getItem(0).y", "0"); |
- shouldBeEqualToString("path2.pathSegList.getItem(1).toString()", "[object SVGPathSegLinetoAbs]"); |
- shouldBe("path2.pathSegList.getItem(1).x", "50"); |
- shouldBe("path2.pathSegList.getItem(1).y", "100"); |
- shouldBeEqualToString("path2.pathSegList.getItem(2).toString()", "[object SVGPathSegLinetoHorizontalRel]"); |
- shouldBe("path2.pathSegList.getItem(2).x", "100"); |
- shouldBeEqualToString("path2.pathSegList.getItem(3).toString()", "[object SVGPathSegLinetoHorizontalRel]"); |
- shouldBe("path2.pathSegList.getItem(3).x", "100"); |
- shouldBeEqualToString("path2.pathSegList.getItem(4).toString()", "[object SVGPathSegLinetoVerticalRel]"); |
- shouldBe("path2.pathSegList.getItem(4).y", "100"); |
- |
- debug(""); |
- debug("Negate x value of fourth segment in path2"); |
- shouldBe("path2.pathSegList.getItem(3).x = -path2.pathSegList.getItem(3).x", "-100"); |
- |
- debug("") |
- debug("Append second item from path1 to path2 list"); |
- shouldBeEqualToString("path2.pathSegList.appendItem(path2.pathSegList.getItem(3)).toString()", "[object SVGPathSegLinetoHorizontalRel]"); |
- shouldBe("path2.pathSegList.numberOfItems", "6"); |
- shouldBeEqualToString("path2.pathSegList.getItem(0).toString()", "[object SVGPathSegMovetoAbs]"); |
- shouldBe("path2.pathSegList.getItem(0).x", "0"); |
- shouldBe("path2.pathSegList.getItem(0).y", "0"); |
- shouldBeEqualToString("path2.pathSegList.getItem(1).toString()", "[object SVGPathSegLinetoAbs]"); |
- shouldBe("path2.pathSegList.getItem(1).x", "50"); |
- shouldBe("path2.pathSegList.getItem(1).y", "100"); |
- shouldBeEqualToString("path2.pathSegList.getItem(2).toString()", "[object SVGPathSegLinetoHorizontalRel]"); |
- shouldBe("path2.pathSegList.getItem(2).x", "100"); |
- shouldBeEqualToString("path2.pathSegList.getItem(3).toString()", "[object SVGPathSegLinetoHorizontalRel]"); |
- shouldBe("path2.pathSegList.getItem(3).x", "-100"); |
- shouldBeEqualToString("path2.pathSegList.getItem(4).toString()", "[object SVGPathSegLinetoVerticalRel]"); |
- shouldBe("path2.pathSegList.getItem(4).y", "100"); |
- shouldBeEqualToString("path2.pathSegList.getItem(5).toString()", "[object SVGPathSegLinetoHorizontalRel]"); |
- shouldBe("path2.pathSegList.getItem(5).x", "-100"); |
- |
- debug(""); |
- debug("Append second item from path2 to path1 list"); |
- shouldBeEqualToString("path1.pathSegList.appendItem(path2.pathSegList.getItem(1)).toString()", "[object SVGPathSegLinetoAbs]"); |
- |
- debug(""); |
- debug("Change last item of path1 list, that came from path2 list, assure it's updating path1"); |
- shouldBe("path1.pathSegList.getItem(3).x -= 50", "0"); |
- |
- debug(""); |
- debug("Reset points attribute to M 0 0 L 100 0 v 100"); |
- shouldBeUndefined("path2.setAttribute('d', 'M 0 0 L 100 0 v 100')"); |
- |
- debug("") |
- debug("Append fourth item from path1 to path2 list - now should look like a rectangle"); |
- shouldBeEqualToString("path2.pathSegList.appendItem(path1.pathSegList.getItem(3)).toString()", "[object SVGPathSegLinetoAbs]"); |
- |
- debug(""); |
- debug("Check final '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", "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"); |
- |
- debug(""); |
- debug("Check final 'pathSegList' value of path2"); |
- shouldBe("path2.pathSegList.numberOfItems", "4"); |
- shouldBeEqualToString("path2.pathSegList.getItem(0).toString()", "[object SVGPathSegMovetoAbs]"); |
- shouldBe("path2.pathSegList.getItem(0).x", "0"); |
- shouldBe("path2.pathSegList.getItem(0).y", "0"); |
- shouldBeEqualToString("path2.pathSegList.getItem(1).toString()", "[object SVGPathSegLinetoAbs]"); |
- shouldBe("path2.pathSegList.getItem(1).x", "100"); |
- shouldBe("path1.pathSegList.getItem(1).y", "0"); |
- shouldBeEqualToString("path2.pathSegList.getItem(2).toString()", "[object SVGPathSegLinetoVerticalRel]"); |
- shouldBe("path2.pathSegList.getItem(2).y", "100"); |
- shouldBeEqualToString("path2.pathSegList.getItem(3).toString()", "[object SVGPathSegLinetoAbs]"); |
- shouldBe("path2.pathSegList.getItem(3).x", "0"); |
- shouldBe("path1.pathSegList.getItem(3).y", "100"); |
- |
-]]> |
-</script> |
-</body> |
-</html> |