Index: third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-appendItem.xhtml |
diff --git a/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-appendItem.xhtml b/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-appendItem.xhtml |
deleted file mode 100644 |
index 95c5b6be451789b20fc637fa984b100e1c70f3b2..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-appendItem.xhtml |
+++ /dev/null |
@@ -1,140 +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="200" height="200"> |
- <text id="text1" x="500 50 100 900 1000" y="50">ABC</text> |
- <text id="text2" x="50 100 1000" y="100">ABC</text> |
- <text id="reference" x="50 100 150" y="150">ABC</text> |
-</svg> |
- |
-<p id="description"></p> |
-<div id="console"></div> |
-<script type="text/javascript"> |
-<![CDATA[ |
- description("This is a test of the SVGLengthList::appendItem() API."); |
- |
- var svg = document.getElementById("svg"); |
- var text1 = document.getElementById("text1"); |
- var text2 = document.getElementById("text2"); |
- |
- debug(""); |
- debug("Create a new SVGLength object, with value=150"); |
- var newLength1 = svg.createSVGLength(); |
- newLength1.value = 150; |
- shouldBe("newLength1.value", "150"); |
- |
- debug(""); |
- debug("Check initial list state of text1"); |
- shouldBe("text1.x.baseVal.numberOfItems", "5"); |
- shouldBe("text1.x.baseVal.getItem(0).value", "500"); |
- shouldBe("text1.x.baseVal.getItem(1).value", "50"); |
- shouldBe("text1.x.baseVal.getItem(2).value", "100"); |
- shouldBe("text1.x.baseVal.getItem(3).value", "900"); |
- shouldBe("text1.x.baseVal.getItem(4).value", "1000"); |
- shouldThrow("text1.x.baseVal.getItem(5)"); |
- |
- debug(""); |
- debug("Check initial list state of text2"); |
- shouldBe("text2.x.baseVal.numberOfItems", "3"); |
- shouldBe("text2.x.baseVal.getItem(0).value", "50"); |
- shouldBe("text2.x.baseVal.getItem(1).value", "100"); |
- shouldBe("text2.x.baseVal.getItem(2).value", "1000"); |
- shouldThrow("text2.x.baseVal.getItem(3)"); |
- |
- debug(""); |
- debug("Append fourth item x=900 to the text1 x list"); |
- shouldBe("text1.x.baseVal.appendItem(text1.x.baseVal.getItem(3))", "text1.x.baseVal.getItem(5)"); |
- shouldBe("text1.x.baseVal.numberOfItems", "6"); |
- shouldBe("text1.x.baseVal.getItem(0).value", "500"); |
- shouldBe("text1.x.baseVal.getItem(1).value", "50"); |
- shouldBe("text1.x.baseVal.getItem(2).value", "100"); |
- shouldBe("text1.x.baseVal.getItem(3).value", "900"); |
- shouldBe("text1.x.baseVal.getItem(4).value", "1000"); |
- shouldBe("text1.x.baseVal.getItem(5).value", "900"); |
- shouldThrow("text1.x.baseVal.getItem(6)"); |
- |
- debug(""); |
- debug("Append first item x=500 to the text1 x list"); |
- shouldBe("text1.x.baseVal.appendItem(text1.x.baseVal.getItem(0))", "text1.x.baseVal.getItem(6)"); |
- shouldBe("text1.x.baseVal.numberOfItems", "7"); |
- shouldBe("text1.x.baseVal.getItem(0).value", "500"); |
- shouldBe("text1.x.baseVal.getItem(1).value", "50"); |
- shouldBe("text1.x.baseVal.getItem(2).value", "100"); |
- shouldBe("text1.x.baseVal.getItem(3).value", "900"); |
- shouldBe("text1.x.baseVal.getItem(4).value", "1000"); |
- shouldBe("text1.x.baseVal.getItem(5).value", "900"); |
- shouldBe("text1.x.baseVal.getItem(6).value", "500"); |
- shouldThrow("text1.x.baseVal.getItem(7)"); |
- |
- debug(""); |
- debug("Append 'newLength1' to the text1 x list"); |
- shouldBe("text1.x.baseVal.appendItem(newLength1)", "text1.x.baseVal.getItem(7)"); |
- shouldBe("text1.x.baseVal.numberOfItems", "8"); |
- shouldBe("text1.x.baseVal.getItem(0).value", "500"); |
- shouldBe("text1.x.baseVal.getItem(1).value", "50"); |
- shouldBe("text1.x.baseVal.getItem(2).value", "100"); |
- shouldBe("text1.x.baseVal.getItem(3).value", "900"); |
- shouldBe("text1.x.baseVal.getItem(4).value", "1000"); |
- shouldBe("text1.x.baseVal.getItem(5).value", "900"); |
- shouldBe("text1.x.baseVal.getItem(6).value", "500"); |
- shouldBe("text1.x.baseVal.getItem(7).value", "150"); |
- shouldThrow("text1.x.baseVal.getItem(8)"); |
- |
- debug(""); |
- debug("Append third and fourth item of the text1 x list to the text2 x list"); |
- shouldBe("text2.x.baseVal.appendItem(text1.x.baseVal.getItem(2)).value", "100"); |
- shouldBe("text2.x.baseVal.appendItem(text1.x.baseVal.getItem(3)).value", "900"); |
- shouldBe("text1.x.baseVal.numberOfItems", "8"); |
- shouldBe("text1.x.baseVal.getItem(0).value", "500"); |
- shouldBe("text1.x.baseVal.getItem(1).value", "50"); |
- shouldBe("text1.x.baseVal.getItem(2).value", "100"); |
- shouldBe("text1.x.baseVal.getItem(3).value", "900"); |
- shouldBe("text1.x.baseVal.getItem(4).value", "1000"); |
- shouldBe("text1.x.baseVal.getItem(5).value", "900"); |
- shouldBe("text1.x.baseVal.getItem(6).value", "500"); |
- shouldBe("text1.x.baseVal.getItem(7).value", "150"); |
- shouldThrow("text1.x.baseVal.getItem(8)"); |
- shouldBe("text2.x.baseVal.numberOfItems", "5"); |
- shouldBe("text2.x.baseVal.getItem(0).value", "50"); |
- shouldBe("text2.x.baseVal.getItem(1).value", "100"); |
- shouldBe("text2.x.baseVal.getItem(2).value", "1000"); |
- shouldBe("text2.x.baseVal.getItem(3).value", "100"); |
- shouldBe("text2.x.baseVal.getItem(4).value", "900"); |
- shouldThrow("text2.x.baseVal.getItem(5)"); |
- |
- var newLength2 = svg.createSVGLength(); |
- newLength2.value = 150; |
- shouldBe("newLength2.value", "150"); |
- shouldBeUndefined("text1.x.baseVal.clear()"); |
- |
- debug(""); |
- debug("Shuffle around items in text1 and text2 list using appendItem, to get x=50,100,150,... in both lists"); |
- shouldBe("text1.x.baseVal.appendItem(text2.x.baseVal.getItem(0)).value", "50"); |
- shouldBe("text1.x.baseVal.appendItem(text2.x.baseVal.getItem(1)).value", "100"); |
- shouldBe("text1.x.baseVal.appendItem(newLength2).value", "150"); |
- shouldBeUndefined("text2.x.baseVal.clear()"); |
- shouldBe("text2.x.baseVal.appendItem(text1.x.baseVal.getItem(0)).value", "50"); |
- shouldBe("text2.x.baseVal.appendItem(text1.x.baseVal.getItem(1)).value", "100"); |
- shouldBe("text2.x.baseVal.appendItem(text1.x.baseVal.getItem(2)).value", "150"); |
- shouldBe("text1.x.baseVal.numberOfItems", "3"); |
- shouldBe("text1.x.baseVal.getItem(0).value", "50"); |
- shouldBe("text1.x.baseVal.getItem(1).value", "100"); |
- shouldBe("text1.x.baseVal.getItem(2).value", "150"); |
- shouldThrow("text1.x.baseVal.getItem(4)"); |
- shouldBe("text2.x.baseVal.numberOfItems", "3"); |
- shouldBe("text2.x.baseVal.getItem(0).value", "50"); |
- shouldBe("text2.x.baseVal.getItem(1).value", "100"); |
- shouldBe("text2.x.baseVal.getItem(2).value", "150"); |
- shouldThrow("text2.x.baseVal.getItem(6)"); |
- |
- debug(""); |
- debug("The test passes if you only see 'PASS' messages, and all three text elements on top look the same"); |
- debug(""); |
- |
-]]> |
-</script> |
-</body> |
-</html> |