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

Unified Diff: LayoutTests/svg/dom/SVGTransformList-basics-expected.txt

Issue 1177303004: Updated SVGListPropertyHelper as per SVG2 Spec (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed presubmit error Created 5 years, 6 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: LayoutTests/svg/dom/SVGTransformList-basics-expected.txt
diff --git a/LayoutTests/svg/dom/SVGTransformList-basics-expected.txt b/LayoutTests/svg/dom/SVGTransformList-basics-expected.txt
index 38387947fad6a82fb6843c10b5b32322d17326f1..13f5a4c9d3e10bf417e67d0cc3df8a2e176c2dcb 100644
--- a/LayoutTests/svg/dom/SVGTransformList-basics-expected.txt
+++ b/LayoutTests/svg/dom/SVGTransformList-basics-expected.txt
@@ -6,137 +6,147 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
PASS circle1.transform.baseVal != circle1.transform.animVal is true
PASS circle1.transform.baseVal.numberOfItems is 2
PASS circle1.transform.animVal.numberOfItems is 2
-PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS transformList.getItem(0).toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.getItem(1).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
Test uncommon arguments for initialize()
-PASS circle1.transform.baseVal.initialize(30) threw exception TypeError: Failed to execute 'initialize' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
-PASS circle1.transform.baseVal.initialize('aString') threw exception TypeError: Failed to execute 'initialize' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
-PASS circle1.transform.baseVal.initialize(circle1) threw exception TypeError: Failed to execute 'initialize' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
-PASS circle1.transform.baseVal.initialize(null) threw exception TypeError: Failed to execute 'initialize' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
+PASS transformList.initialize(30) threw exception TypeError: Failed to execute 'initialize' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
+PASS transformList.initialize('aString') threw exception TypeError: Failed to execute 'initialize' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
+PASS transformList.initialize(circle1) threw exception TypeError: Failed to execute 'initialize' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
+PASS transformList.initialize(null) threw exception TypeError: Failed to execute 'initialize' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
Test uncommon arguments for getItem()
-PASS circle1.transform.baseVal.getItem(30) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGTransformList': The index provided (30) is greater than the maximum bound (2)..
-PASS circle1.transform.baseVal.getItem('aString') is circle1.transform.baseVal.getItem(0)
-PASS circle1.transform.baseVal.getItem(circle1) is circle1.transform.baseVal.getItem(0)
-PASS circle1.transform.baseVal.getItem(null) is circle1.transform.baseVal.getItem(0)
+PASS transformList.getItem(30) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGTransformList': The index provided (30) is greater than the maximum bound (2)..
+PASS transformList.getItem('aString').toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.getItem(circle1).toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.getItem(null).toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
Test uncommon arguments for insertItemBefore()
-PASS circle1.transform.baseVal.insertItemBefore(30) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only 1 present..
-PASS circle1.transform.baseVal.insertItemBefore('aString') threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only 1 present..
-PASS circle1.transform.baseVal.insertItemBefore(circle1) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only 1 present..
-PASS circle1.transform.baseVal.insertItemBefore(null) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only 1 present..
-PASS circle1.transform.baseVal.insertItemBefore(circle1.transform.baseVal.getItem(1), 'aString') is circle1.transform.baseVal.getItem(0)
-PASS circle1.transform.baseVal.numberOfItems is 2
-PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
-PASS circle1.getAttribute('transform') is "translate(10 10) scale(2 2)"
-PASS circle1.transform.baseVal.insertItemBefore(circle1.transform.baseVal.getItem(1), circle1) is circle1.transform.baseVal.getItem(0)
-PASS circle1.transform.baseVal.numberOfItems is 2
-PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
-PASS circle1.getAttribute('transform') is "scale(2 2) translate(10 10)"
-PASS circle1.transform.baseVal.insertItemBefore(circle1.transform.baseVal.getItem(1), null) is circle1.transform.baseVal.getItem(0)
-PASS circle1.transform.baseVal.numberOfItems is 2
-PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
-PASS circle1.getAttribute('transform') is "translate(10 10) scale(2 2)"
-PASS circle1.transform.baseVal.insertItemBefore(circle1.transform.baseVal.getItem(1), 0) is circle1.transform.baseVal.getItem(0)
-PASS circle1.transform.baseVal.numberOfItems is 2
-PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
-PASS circle1.getAttribute('transform') is "scale(2 2) translate(10 10)"
-PASS circle1.transform.baseVal.insertItemBefore(30, 0) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
-PASS circle1.transform.baseVal.insertItemBefore('aString', 0) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
-PASS circle1.transform.baseVal.insertItemBefore(circle1, 0) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
-PASS circle1.transform.baseVal.insertItemBefore(null, 0) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
+PASS transformList.insertItemBefore(30) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only 1 present..
+PASS transformList.insertItemBefore('aString') threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only 1 present..
+PASS transformList.insertItemBefore(circle1) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only 1 present..
+PASS transformList.insertItemBefore(null) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only 1 present..
+PASS transformList.insertItemBefore(transformList.getItem(1), 'aString').toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS transformList.numberOfItems is 3
+PASS transformList.getItem(0).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS transformList.getItem(1).toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.getItem(2).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS circle1.getAttribute('transform') is "translate(10 10) scale(2 2) translate(10 10)"
+PASS transformList.insertItemBefore(transformList.getItem(1), circle1).toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.numberOfItems is 4
+PASS transformList.getItem(0).toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.getItem(1).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS transformList.getItem(2).toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.getItem(3).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS circle1.getAttribute('transform') is "scale(2 2) translate(10 10) scale(2 2) translate(10 10)"
+PASS transformList.insertItemBefore(transformList.getItem(1), null).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS transformList.numberOfItems is 5
+PASS transformList.getItem(0).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS transformList.getItem(1).toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.getItem(2).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS transformList.getItem(3).toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.getItem(4).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS circle1.getAttribute('transform') is "translate(10 10) scale(2 2) translate(10 10) scale(2 2) translate(10 10)"
+PASS transformList.insertItemBefore(transformList.getItem(1), 0).toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.numberOfItems is 6
+PASS transformList.getItem(0).toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.getItem(1).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS transformList.getItem(2).toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.getItem(3).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS transformList.getItem(4).toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.getItem(5).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS circle1.getAttribute('transform') is "scale(2 2) translate(10 10) scale(2 2) translate(10 10) scale(2 2) translate(10 10)"
+PASS transformList.insertItemBefore(30, 0) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
+PASS transformList.insertItemBefore('aString', 0) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
+PASS transformList.insertItemBefore(circle1, 0) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
+PASS transformList.insertItemBefore(null, 0) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
Set transform='rotate(90) scale(2 2) translate(10 10) skewX(45)' for circle1
PASS circle1.setAttribute('transform', 'rotate(90) scale(2 2) translate(10 10) skewX(45)') is undefined.
-PASS circle1.transform.baseVal.numberOfItems is 4
-PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(2)) is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(3)) is "type=SVG_TRANSFORM_SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]"
+PASS transformList.numberOfItems is 4
+PASS transformList.getItem(0).toString() is "type=SVG_TRANSFORM_ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]"
+PASS transformList.getItem(1).toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.getItem(2).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS transformList.getItem(3).toString() is "type=SVG_TRANSFORM_SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]"
PASS circle1.getAttribute('transform') is "rotate(90) scale(2 2) translate(10 10) skewX(45)"
Test uncommon arguments for replaceItem()
-PASS circle1.transform.baseVal.replaceItem(30) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only 1 present..
-PASS circle1.transform.baseVal.replaceItem('aString') threw exception TypeError: Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only 1 present..
-PASS circle1.transform.baseVal.replaceItem(circle1) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only 1 present..
-PASS circle1.transform.baseVal.replaceItem(null) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only 1 present..
-PASS circle1.transform.baseVal.replaceItem(30, 0) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
-PASS circle1.transform.baseVal.replaceItem('aString', 0) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
-PASS circle1.transform.baseVal.replaceItem(circle1, 0) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
-PASS circle1.transform.baseVal.replaceItem(null, 0) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
+PASS transformList.replaceItem(30) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only 1 present..
+PASS transformList.replaceItem('aString') threw exception TypeError: Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only 1 present..
+PASS transformList.replaceItem(circle1) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only 1 present..
+PASS transformList.replaceItem(null) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only 1 present..
+PASS transformList.replaceItem(30, 0) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
+PASS transformList.replaceItem('aString', 0) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
+PASS transformList.replaceItem(circle1, 0) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
+PASS transformList.replaceItem(null, 0) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
Test uncommon values for indexed setter
-PASS circle1.transform.baseVal[0] = 30 threw exception TypeError: Failed to set an indexed property on 'SVGTransformList': The provided value is not of type 'SVGTransform'..
-PASS circle1.transform.baseVal[0] = 'aString' threw exception TypeError: Failed to set an indexed property on 'SVGTransformList': The provided value is not of type 'SVGTransform'..
-PASS circle1.transform.baseVal[0] = circle1 threw exception TypeError: Failed to set an indexed property on 'SVGTransformList': The provided value is not of type 'SVGTransform'..
-PASS circle1.transform.baseVal[0] = null threw exception TypeError: Failed to set an indexed property on 'SVGTransformList': The provided value is not of type 'SVGTransform'..
-PASS circle1.transform.baseVal.replaceItem(circle1.transform.baseVal.getItem(0), 0) is circle1.transform.baseVal.getItem(0)
-PASS circle1.transform.baseVal.numberOfItems is 4
-PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(2)) is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(3)) is "type=SVG_TRANSFORM_SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]"
+PASS transformList[0] = 30 threw exception TypeError: Failed to set an indexed property on 'SVGTransformList': The provided value is not of type 'SVGTransform'..
+PASS transformList[0] = 'aString' threw exception TypeError: Failed to set an indexed property on 'SVGTransformList': The provided value is not of type 'SVGTransform'..
+PASS transformList[0] = circle1 threw exception TypeError: Failed to set an indexed property on 'SVGTransformList': The provided value is not of type 'SVGTransform'..
+PASS transformList[0] = null threw exception TypeError: Failed to set an indexed property on 'SVGTransformList': The provided value is not of type 'SVGTransform'..
+PASS transformList.replaceItem(transformList.getItem(0), 0).toString() is "type=SVG_TRANSFORM_ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]"
+PASS transformList.numberOfItems is 4
+PASS transformList.getItem(0).toString() is "type=SVG_TRANSFORM_ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]"
+PASS transformList.getItem(1).toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.getItem(2).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS transformList.getItem(3).toString() is "type=SVG_TRANSFORM_SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]"
PASS circle1.getAttribute('transform') is "rotate(90) scale(2 2) translate(10 10) skewX(45)"
-PASS circle1.transform.baseVal.replaceItem(circle1.transform.baseVal.getItem(0), 'aString') is circle1.transform.baseVal.getItem(0)
-PASS circle1.transform.baseVal.numberOfItems is 4
-PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(2)) is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(3)) is "type=SVG_TRANSFORM_SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]"
+PASS transformList.replaceItem(transformList.getItem(0), 'aString').toString() is "type=SVG_TRANSFORM_ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]"
+PASS transformList.numberOfItems is 4
+PASS transformList.getItem(0).toString() is "type=SVG_TRANSFORM_ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]"
+PASS transformList.getItem(1).toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.getItem(2).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS transformList.getItem(3).toString() is "type=SVG_TRANSFORM_SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]"
PASS circle1.getAttribute('transform') is "rotate(90) scale(2 2) translate(10 10) skewX(45)"
-PASS circle1.transform.baseVal.replaceItem(circle1.transform.baseVal.getItem(0), circle1) is circle1.transform.baseVal.getItem(0)
-PASS circle1.transform.baseVal.numberOfItems is 4
-PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(2)) is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(3)) is "type=SVG_TRANSFORM_SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]"
+PASS transformList.replaceItem(transformList.getItem(0), circle1).toString() is "type=SVG_TRANSFORM_ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]"
+PASS transformList.numberOfItems is 4
+PASS transformList.getItem(0).toString() is "type=SVG_TRANSFORM_ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]"
+PASS transformList.getItem(1).toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.getItem(2).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS transformList.getItem(3).toString() is "type=SVG_TRANSFORM_SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]"
PASS circle1.getAttribute('transform') is "rotate(90) scale(2 2) translate(10 10) skewX(45)"
-PASS circle1.transform.baseVal.replaceItem(circle1.transform.baseVal.getItem(0), null) is circle1.transform.baseVal.getItem(0)
-PASS circle1.transform.baseVal.numberOfItems is 4
+PASS transformList.replaceItem(transformList.getItem(0), null).toString() is "type=SVG_TRANSFORM_ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]"
+PASS transformList.numberOfItems is 4
PASS circle1.getAttribute('transform') is "rotate(90) scale(2 2) translate(10 10) skewX(45)"
Set transform='rotate(90) scale(2 2) translate(10 10) skewX(45)' for circle1
PASS circle1.setAttribute('transform', 'rotate(90) scale(2 2) translate(10 10) skewX(45)') is undefined.
Test uncommon arguments for removeItem()
-PASS circle1.transform.baseVal.removeItem(30) threw exception IndexSizeError: Failed to execute 'removeItem' on 'SVGTransformList': The index provided (30) is greater than the maximum bound (4)..
-PASS dumpTransform(circle1.transform.baseVal.removeItem(0)) is "type=SVG_TRANSFORM_ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]"
-PASS circle1.transform.baseVal.numberOfItems is 3
-PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(2)) is "type=SVG_TRANSFORM_SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]"
+PASS transformList.removeItem(30) threw exception IndexSizeError: Failed to execute 'removeItem' on 'SVGTransformList': The index provided (30) is greater than the maximum bound (4)..
+PASS transformList.removeItem(0).toString() is "type=SVG_TRANSFORM_ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]"
+PASS transformList.numberOfItems is 3
+PASS transformList.getItem(0).toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.getItem(1).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS transformList.getItem(2).toString() is "type=SVG_TRANSFORM_SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]"
PASS circle1.getAttribute('transform') is "scale(2 2) translate(10 10) skewX(45)"
-PASS dumpTransform(circle1.transform.baseVal.removeItem('aString')) is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
-PASS circle1.transform.baseVal.numberOfItems is 2
-PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
-PASS dumpTransform(circle1.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]"
+PASS transformList.removeItem('aString').toString() is "type=SVG_TRANSFORM_SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]"
+PASS transformList.numberOfItems is 2
+PASS transformList.getItem(0).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS transformList.getItem(1).toString() is "type=SVG_TRANSFORM_SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]"
PASS circle1.getAttribute('transform') is "translate(10 10) skewX(45)"
-PASS dumpTransform(circle1.transform.baseVal.removeItem(circle1)) is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
-PASS circle1.transform.baseVal.numberOfItems is 1
-PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]"
+PASS transformList.removeItem(circle1).toString() is "type=SVG_TRANSFORM_TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]"
+PASS transformList.numberOfItems is 1
+PASS transformList.getItem(0).toString() is "type=SVG_TRANSFORM_SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]"
PASS circle1.getAttribute('transform') is "skewX(45)"
Test uncommon arguments for appendItem()
-PASS circle1.transform.baseVal.appendItem(30) threw exception TypeError: Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
-PASS circle1.transform.baseVal.appendItem('aString') threw exception TypeError: Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
-PASS circle1.transform.baseVal.appendItem(circle1) threw exception TypeError: Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
-PASS circle1.transform.baseVal.appendItem(null) threw exception TypeError: Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
+PASS transformList.appendItem(30) threw exception TypeError: Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
+PASS transformList.appendItem('aString') threw exception TypeError: Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
+PASS transformList.appendItem(circle1) threw exception TypeError: Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
+PASS transformList.appendItem(null) threw exception TypeError: Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'..
Testing animVal clear throws
PASS circle1.transform.animVal.clear() threw exception NoModificationAllowedError: Failed to execute 'clear' on 'SVGTransformList': The object is read-only..
-PASS circle1.transform.baseVal.clear() is undefined.
+PASS transformList.clear() is undefined.
Creating new SVGTransform, with 45 deg rotation about x=50, y=100 and append it to the transform list
-PASS dumpTransform(transform = svg.createSVGTransform()) is "type=SVG_TRANSFORM_MATRIX matrix=[1.0 0.0 0.0 1.0 0.0 0.0]"
+PASS (transform = svg.createSVGTransform()).toString() is "type=SVG_TRANSFORM_MATRIX matrix=[1.0 0.0 0.0 1.0 0.0 0.0]"
PASS transform.setRotate(45, 50, 100) is undefined.
-PASS dumpTransform(circle1.transform.baseVal.appendItem(transform)) is "type=SVG_TRANSFORM_ROTATE matrix=[0.7 0.7 -0.7 0.7 85.4 -6.1]"
-PASS circle1.transform.baseVal.numberOfItems is 1
-PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_ROTATE matrix=[0.7 0.7 -0.7 0.7 85.4 -6.1]"
+PASS transformList.appendItem(transform).toString() is "type=SVG_TRANSFORM_ROTATE matrix=[0.7 0.7 -0.7 0.7 85.4 -6.1]"
+PASS transformList.numberOfItems is 1
+PASS transformList.getItem(0).toString() is "type=SVG_TRANSFORM_ROTATE matrix=[0.7 0.7 -0.7 0.7 85.4 -6.1]"
PASS circle1.getAttribute('transform') is "rotate(45 50 100)"
PASS successfullyParsed is true
« no previous file with comments | « LayoutTests/svg/dom/SVGTransformList-basics.xhtml ('k') | LayoutTests/svg/dom/SVGTransformList-with-existing-item.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698