Index: LayoutTests/svg/dom/SVGNumberList-basics.xhtml |
=================================================================== |
--- LayoutTests/svg/dom/SVGNumberList-basics.xhtml (revision 143078) |
+++ LayoutTests/svg/dom/SVGNumberList-basics.xhtml (working copy) |
@@ -14,6 +14,9 @@ |
<![CDATA[ |
description("This is a test of the simple SVGNumberList API parts."); |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
var text1 = document.getElementById("text1"); |
// Spec: The object referenced by animVal will always be distinct from the one referenced by baseVal, even when the attribute is not animated. |
@@ -98,25 +101,28 @@ |
shouldThrow("text1.rotate.baseVal.replaceItem(null, 0)"); |
shouldBe("text1.rotate.baseVal.replaceItem(text1.rotate.baseVal.getItem(0), 0)", "text1.rotate.baseVal.getItem(0)"); |
- shouldBe("text1.rotate.baseVal.numberOfItems", "3"); |
+ shouldBe("text1.rotate.baseVal.numberOfItems", "4"); |
shouldBe("text1.rotate.baseVal.getItem(0).value", "1"); |
- shouldBe("text1.rotate.baseVal.getItem(1).value", "3"); |
- shouldBe("text1.rotate.baseVal.getItem(2).value", "4"); |
- shouldBeEqualToString("text1.getAttribute('rotate')", "1 3 4"); |
+ shouldBe("text1.rotate.baseVal.getItem(1).value", "2"); |
+ shouldBe("text1.rotate.baseVal.getItem(2).value", "3"); |
+ shouldBe("text1.rotate.baseVal.getItem(3).value", "4"); |
+ shouldBeEqualToString("text1.getAttribute('rotate')", "1 2 3 4"); |
shouldBe("text1.rotate.baseVal.replaceItem(text1.rotate.baseVal.getItem(0), 'aString')", "text1.rotate.baseVal.getItem(0)"); |
- shouldBe("text1.rotate.baseVal.numberOfItems", "2"); |
+ shouldBe("text1.rotate.baseVal.numberOfItems", "4"); |
shouldBe("text1.rotate.baseVal.getItem(0).value", "1"); |
- shouldBe("text1.rotate.baseVal.getItem(1).value", "4"); |
- shouldBeEqualToString("text1.getAttribute('rotate')", "1 4"); |
+ shouldBe("text1.rotate.baseVal.getItem(1).value", "2"); |
+ shouldBe("text1.rotate.baseVal.getItem(2).value", "3"); |
+ shouldBe("text1.rotate.baseVal.getItem(3).value", "4"); |
+ shouldBeEqualToString("text1.getAttribute('rotate')", "1 2 3 4"); |
shouldBe("text1.rotate.baseVal.replaceItem(text1.rotate.baseVal.getItem(0), text1)", "text1.rotate.baseVal.getItem(0)"); |
- shouldBe("text1.rotate.baseVal.numberOfItems", "1"); |
- shouldBeEqualToString("text1.getAttribute('rotate')", "1"); |
+ shouldBe("text1.rotate.baseVal.numberOfItems", "4"); |
+ shouldBeEqualToString("text1.getAttribute('rotate')", "1 2 3 4"); |
- shouldThrow("text1.rotate.baseVal.replaceItem(text1.rotate.baseVal.getItem(0), null)"); |
- shouldBe("text1.rotate.baseVal.numberOfItems", "0"); |
- shouldBeEqualToString("text1.getAttribute('rotate')", ""); |
+ shouldBe("text1.rotate.baseVal.replaceItem(text1.rotate.baseVal.getItem(0), null)", "text1.rotate.baseVal.getItem(0)"); |
+ shouldBe("text1.rotate.baseVal.numberOfItems", "4"); |
+ shouldBeEqualToString("text1.getAttribute('rotate')", "1 2 3 4"); |
debug(""); |
debug("Set rotate='1 2 3 4' for text1"); |