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

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

Issue 12288020: Merge 142759 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « LayoutTests/svg/dom/SVGLengthList-basics.xhtml ('k') | LayoutTests/svg/dom/SVGNumberList-basics.xhtml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/dom/SVGLengthList-basics-expected.txt
===================================================================
--- LayoutTests/svg/dom/SVGLengthList-basics-expected.txt (revision 143078)
+++ LayoutTests/svg/dom/SVGLengthList-basics-expected.txt (working copy)
@@ -59,6 +59,17 @@
Set x='1 2 3 4' for text1
PASS text1.setAttribute('x', '1 2 3 4') is undefined.
+
+Test edge cases for insertItemBefore()
+PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(3), 3) is text1.x.baseVal.getItem(3)
+PASS text1.getAttribute('x') is "1 2 3 4"
+PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 5) is text1.x.baseVal.getItem(3)
+PASS text1.getAttribute('x') is "1 3 4 2"
+PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 0) is text1.x.baseVal.getItem(0)
+PASS text1.getAttribute('x') is "3 1 4 2"
+
+Set x='1 2 3 4' for text1
+PASS text1.setAttribute('x', '1 2 3 4') is undefined.
PASS text1.x.baseVal.numberOfItems is 4
PASS text1.x.baseVal.getItem(0).value is 1
PASS text1.x.baseVal.getItem(1).value is 2
@@ -76,26 +87,38 @@
PASS text1.x.baseVal.replaceItem(text1, 0) threw exception TypeError: Type error.
PASS text1.x.baseVal.replaceItem(null, 0) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), 0) is text1.x.baseVal.getItem(0)
-PASS text1.x.baseVal.numberOfItems is 3
+PASS text1.x.baseVal.numberOfItems is 4
PASS text1.x.baseVal.getItem(0).value is 1
-PASS text1.x.baseVal.getItem(1).value is 3
-PASS text1.x.baseVal.getItem(2).value is 4
-PASS text1.getAttribute('x') is "1 3 4"
+PASS text1.x.baseVal.getItem(1).value is 2
+PASS text1.x.baseVal.getItem(2).value is 3
+PASS text1.x.baseVal.getItem(3).value is 4
+PASS text1.getAttribute('x') is "1 2 3 4"
PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), 'aString') is text1.x.baseVal.getItem(0)
-PASS text1.x.baseVal.numberOfItems is 2
+PASS text1.x.baseVal.numberOfItems is 4
PASS text1.x.baseVal.getItem(0).value is 1
-PASS text1.x.baseVal.getItem(1).value is 4
-PASS text1.getAttribute('x') is "1 4"
+PASS text1.x.baseVal.getItem(1).value is 2
+PASS text1.x.baseVal.getItem(2).value is 3
+PASS text1.x.baseVal.getItem(3).value is 4
+PASS text1.getAttribute('x') is "1 2 3 4"
PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), text1) is text1.x.baseVal.getItem(0)
-PASS text1.x.baseVal.numberOfItems is 1
-PASS text1.getAttribute('x') is "1"
-PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), null) threw exception Error: IndexSizeError: DOM Exception 1.
-PASS text1.x.baseVal.numberOfItems is 0
-PASS text1.getAttribute('x') is ""
+PASS text1.x.baseVal.numberOfItems is 4
+PASS text1.getAttribute('x') is "1 2 3 4"
Set x='1 2 3 4' for text1
PASS text1.setAttribute('x', '1 2 3 4') is undefined.
+Test edge cases for replaceItem()
+PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(3), 3) is text1.x.baseVal.getItem(3)
+PASS text1.x.baseVal.numberOfItems is 4
+PASS text1.getAttribute('x') is "1 2 3 4"
+PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(1), 3) is text1.x.baseVal.getItem(2)
+PASS text1.x.baseVal.numberOfItems is 3
+PASS text1.getAttribute('x') is "1 3 2"
+PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(3), 4) threw exception Error: IndexSizeError: DOM Exception 1.
+
+Set x='1 2 3 4' for text1
+PASS text1.setAttribute('x', '1 2 3 4') is undefined.
+
Test uncommon arguments for removeItem()
PASS text1.x.baseVal.removeItem(30) threw exception Error: IndexSizeError: DOM Exception 1.
PASS text1.x.baseVal.removeItem(0).value is 1
« no previous file with comments | « LayoutTests/svg/dom/SVGLengthList-basics.xhtml ('k') | LayoutTests/svg/dom/SVGNumberList-basics.xhtml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698