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

Side by Side Diff: LayoutTests/svg/dom/SVGLengthList-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 unified diff | Download patch
OLDNEW
1 ABC 1 ABC
2 This is a test of the simple SVGLengthList API parts. 2 This is a test of the simple SVGLengthList API parts.
3 3
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
5 5
6 6
7 PASS text1.x.baseVal != text1.x.animVal is true 7 PASS text1.x.baseVal != text1.x.animVal is true
8 PASS text1.x.baseVal.numberOfItems is 3 8 PASS text1.x.baseVal.numberOfItems is 3
9 PASS text1.x.animVal.numberOfItems is 3 9 PASS text1.x.animVal.numberOfItems is 3
10 PASS text1.x.baseVal.getItem(0).value is 500 10 PASS text1.x.baseVal.getItem(0).value is 500
(...skipping 11 matching lines...) Expand all
22 PASS text1.x.baseVal.getItem('aString') is text1.x.baseVal.getItem(0) 22 PASS text1.x.baseVal.getItem('aString') is text1.x.baseVal.getItem(0)
23 PASS text1.x.baseVal.getItem(text1) is text1.x.baseVal.getItem(0) 23 PASS text1.x.baseVal.getItem(text1) is text1.x.baseVal.getItem(0)
24 PASS text1.x.baseVal.getItem(null) is text1.x.baseVal.getItem(0) 24 PASS text1.x.baseVal.getItem(null) is text1.x.baseVal.getItem(0)
25 25
26 Test uncommon arguments for insertItemBefore() 26 Test uncommon arguments for insertItemBefore()
27 PASS text1.x.baseVal.insertItemBefore(30) threw exception TypeError: Failed to e xecute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only 1 p resent.. 27 PASS text1.x.baseVal.insertItemBefore(30) threw exception TypeError: Failed to e xecute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only 1 p resent..
28 PASS text1.x.baseVal.insertItemBefore('aString') threw exception TypeError: Fail ed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but o nly 1 present.. 28 PASS text1.x.baseVal.insertItemBefore('aString') threw exception TypeError: Fail ed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but o nly 1 present..
29 PASS text1.x.baseVal.insertItemBefore(text1) threw exception TypeError: Failed t o execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only 1 present.. 29 PASS text1.x.baseVal.insertItemBefore(text1) threw exception TypeError: Failed t o execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only 1 present..
30 PASS text1.x.baseVal.insertItemBefore(null) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only 1 present.. 30 PASS text1.x.baseVal.insertItemBefore(null) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only 1 present..
31 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 'aString') is text1.x.baseVal.getItem(0) 31 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 'aString') is text1.x.baseVal.getItem(0)
32 PASS text1.x.baseVal.numberOfItems is 3 32 PASS text1.x.baseVal.numberOfItems is 4
33 PASS text1.x.baseVal.getItem(0).value is 1000 33 PASS text1.x.baseVal.getItem(0).value is 1000
34 PASS text1.x.baseVal.getItem(1).value is 500 34 PASS text1.x.baseVal.getItem(1).value is 500
35 PASS text1.x.baseVal.getItem(2).value is 1500 35 PASS text1.x.baseVal.getItem(2).value is 1000
36 PASS text1.getAttribute('x') is "1000 500 1500" 36 PASS text1.x.baseVal.getItem(3).value is 1500
37 PASS text1.getAttribute('x') is "1000 500 1000 1500"
37 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), text1) is text 1.x.baseVal.getItem(0) 38 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), text1) is text 1.x.baseVal.getItem(0)
38 PASS text1.x.baseVal.numberOfItems is 3 39 PASS text1.x.baseVal.numberOfItems is 5
39 PASS text1.x.baseVal.getItem(0).value is 500 40 PASS text1.x.baseVal.getItem(0).value is 500
40 PASS text1.x.baseVal.getItem(1).value is 1000 41 PASS text1.x.baseVal.getItem(1).value is 1000
41 PASS text1.x.baseVal.getItem(2).value is 1500 42 PASS text1.x.baseVal.getItem(2).value is 500
42 PASS text1.getAttribute('x') is "500 1000 1500" 43 PASS text1.x.baseVal.getItem(3).value is 1000
44 PASS text1.x.baseVal.getItem(4).value is 1500
45 PASS text1.getAttribute('x') is "500 1000 500 1000 1500"
43 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), null) is text1 .x.baseVal.getItem(0) 46 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), null) is text1 .x.baseVal.getItem(0)
44 PASS text1.x.baseVal.numberOfItems is 3 47 PASS text1.x.baseVal.numberOfItems is 6
45 PASS text1.x.baseVal.getItem(0).value is 1000 48 PASS text1.x.baseVal.getItem(0).value is 1000
46 PASS text1.x.baseVal.getItem(1).value is 500 49 PASS text1.x.baseVal.getItem(1).value is 500
47 PASS text1.x.baseVal.getItem(2).value is 1500 50 PASS text1.x.baseVal.getItem(2).value is 1000
48 PASS text1.getAttribute('x') is "1000 500 1500" 51 PASS text1.x.baseVal.getItem(3).value is 500
52 PASS text1.x.baseVal.getItem(4).value is 1000
53 PASS text1.x.baseVal.getItem(5).value is 1500
54 PASS text1.getAttribute('x') is "1000 500 1000 500 1000 1500"
49 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 0) is text1.x. baseVal.getItem(0) 55 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 0) is text1.x. baseVal.getItem(0)
50 PASS text1.x.baseVal.numberOfItems is 3 56 PASS text1.x.baseVal.numberOfItems is 7
51 PASS text1.x.baseVal.getItem(0).value is 500 57 PASS text1.x.baseVal.getItem(0).value is 500
52 PASS text1.x.baseVal.getItem(1).value is 1000 58 PASS text1.x.baseVal.getItem(1).value is 1000
53 PASS text1.x.baseVal.getItem(2).value is 1500 59 PASS text1.x.baseVal.getItem(2).value is 500
54 PASS text1.getAttribute('x') is "500 1000 1500" 60 PASS text1.x.baseVal.getItem(3).value is 1000
61 PASS text1.x.baseVal.getItem(4).value is 500
62 PASS text1.x.baseVal.getItem(5).value is 1000
63 PASS text1.x.baseVal.getItem(6).value is 1500
64 PASS text1.getAttribute('x') is "500 1000 500 1000 500 1000 1500"
55 PASS text1.x.baseVal.insertItemBefore(30, 0) threw exception TypeError: Failed t o execute 'insertItemBefore' on 'SVGLengthList': parameter 1 is not of type 'SVG Length'.. 65 PASS text1.x.baseVal.insertItemBefore(30, 0) threw exception TypeError: Failed t o execute 'insertItemBefore' on 'SVGLengthList': parameter 1 is not of type 'SVG Length'..
56 PASS text1.x.baseVal.insertItemBefore('aString', 0) threw exception TypeError: F ailed to execute 'insertItemBefore' on 'SVGLengthList': parameter 1 is not of ty pe 'SVGLength'.. 66 PASS text1.x.baseVal.insertItemBefore('aString', 0) threw exception TypeError: F ailed to execute 'insertItemBefore' on 'SVGLengthList': parameter 1 is not of ty pe 'SVGLength'..
57 PASS text1.x.baseVal.insertItemBefore(text1, 0) threw exception TypeError: Faile d to execute 'insertItemBefore' on 'SVGLengthList': parameter 1 is not of type ' SVGLength'.. 67 PASS text1.x.baseVal.insertItemBefore(text1, 0) threw exception TypeError: Faile d to execute 'insertItemBefore' on 'SVGLengthList': parameter 1 is not of type ' SVGLength'..
58 PASS text1.x.baseVal.insertItemBefore(null, 0) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGLengthList': parameter 1 is not of type 'S VGLength'.. 68 PASS text1.x.baseVal.insertItemBefore(null, 0) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGLengthList': parameter 1 is not of type 'S VGLength'..
59 69
60 Set x='1 2 3 4' for text1 70 Set x='1 2 3 4' for text1
61 PASS text1.setAttribute('x', '1 2 3 4') is undefined. 71 PASS text1.setAttribute('x', '1 2 3 4') is undefined.
62 72
63 Test edge cases for insertItemBefore() 73 Test edge cases for insertItemBefore()
64 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(3), 3) is text1.x. baseVal.getItem(3) 74 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(3), 3) is text1.x. baseVal.getItem(3)
65 PASS text1.getAttribute('x') is "1 2 3 4" 75 PASS text1.getAttribute('x') is "1 2 3 4 4"
66 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 5) is text1.x. baseVal.getItem(3) 76 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 5) is text1.x. baseVal.getItem(5)
67 PASS text1.getAttribute('x') is "1 3 4 2" 77 PASS text1.getAttribute('x') is "1 2 3 4 4 2"
68 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 0) is text1.x. baseVal.getItem(0) 78 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 0) is text1.x. baseVal.getItem(0)
69 PASS text1.getAttribute('x') is "3 1 4 2" 79 PASS text1.getAttribute('x') is "2 1 2 3 4 4 2"
70 80
71 Set x='1 2 3 4' for text1 81 Set x='1 2 3 4' for text1
72 PASS text1.setAttribute('x', '1 2 3 4') is undefined. 82 PASS text1.setAttribute('x', '1 2 3 4') is undefined.
73 PASS text1.x.baseVal.numberOfItems is 4 83 PASS text1.x.baseVal.numberOfItems is 4
74 PASS text1.x.baseVal.getItem(0).value is 1 84 PASS text1.x.baseVal.getItem(0).value is 1
75 PASS text1.x.baseVal.getItem(1).value is 2 85 PASS text1.x.baseVal.getItem(1).value is 2
76 PASS text1.x.baseVal.getItem(2).value is 3 86 PASS text1.x.baseVal.getItem(2).value is 3
77 PASS text1.x.baseVal.getItem(3).value is 4 87 PASS text1.x.baseVal.getItem(3).value is 4
78 PASS text1.getAttribute('x') is "1 2 3 4" 88 PASS text1.getAttribute('x') is "1 2 3 4"
79 89
(...skipping 30 matching lines...) Expand all
110 PASS text1.x.baseVal.numberOfItems is 4 120 PASS text1.x.baseVal.numberOfItems is 4
111 PASS text1.getAttribute('x') is "1 2 3 4" 121 PASS text1.getAttribute('x') is "1 2 3 4"
112 122
113 Set x='1 2 3 4' for text1 123 Set x='1 2 3 4' for text1
114 PASS text1.setAttribute('x', '1 2 3 4') is undefined. 124 PASS text1.setAttribute('x', '1 2 3 4') is undefined.
115 125
116 Test edge cases for replaceItem() 126 Test edge cases for replaceItem()
117 PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(3), 3) is text1.x.baseV al.getItem(3) 127 PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(3), 3) is text1.x.baseV al.getItem(3)
118 PASS text1.x.baseVal.numberOfItems is 4 128 PASS text1.x.baseVal.numberOfItems is 4
119 PASS text1.getAttribute('x') is "1 2 3 4" 129 PASS text1.getAttribute('x') is "1 2 3 4"
120 PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(1), 3) is text1.x.baseV al.getItem(2) 130 PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(1), 3) is text1.x.baseV al.getItem(3)
121 PASS text1.x.baseVal.numberOfItems is 3 131 PASS text1.x.baseVal.numberOfItems is 4
122 PASS text1.getAttribute('x') is "1 3 2" 132 PASS text1.getAttribute('x') is "1 2 3 2"
123 PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(3), 4) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provid ed (3) is greater than or equal to the maximum bound (3).. 133 PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(3), 4) threw exception IndexSizeError: Failed to execute 'replaceItem' on 'SVGLengthList': The index pr ovided (4) is greater than or equal to the maximum bound (4)..
124 134
125 Set x='1 2 3 4' for text1 135 Set x='1 2 3 4' for text1
126 PASS text1.setAttribute('x', '1 2 3 4') is undefined. 136 PASS text1.setAttribute('x', '1 2 3 4') is undefined.
127 137
128 Test uncommon arguments for removeItem() 138 Test uncommon arguments for removeItem()
129 PASS text1.x.baseVal.removeItem(30) threw exception IndexSizeError: Failed to ex ecute 'removeItem' on 'SVGLengthList': The index provided (30) is greater than t he maximum bound (4).. 139 PASS text1.x.baseVal.removeItem(30) threw exception IndexSizeError: Failed to ex ecute 'removeItem' on 'SVGLengthList': The index provided (30) is greater than t he maximum bound (4)..
130 PASS text1.x.baseVal.removeItem(0).value is 1 140 PASS text1.x.baseVal.removeItem(0).value is 1
131 PASS text1.x.baseVal.numberOfItems is 3 141 PASS text1.x.baseVal.numberOfItems is 3
132 PASS text1.x.baseVal.getItem(0).value is 2 142 PASS text1.x.baseVal.getItem(0).value is 2
133 PASS text1.x.baseVal.getItem(1).value is 3 143 PASS text1.x.baseVal.getItem(1).value is 3
(...skipping 11 matching lines...) Expand all
145 PASS text1.x.baseVal.appendItem(text1) threw exception TypeError: Failed to exec ute 'appendItem' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'.. 155 PASS text1.x.baseVal.appendItem(text1) threw exception TypeError: Failed to exec ute 'appendItem' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'..
146 PASS text1.x.baseVal.appendItem(null) threw exception TypeError: Failed to execu te 'appendItem' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'.. 156 PASS text1.x.baseVal.appendItem(null) threw exception TypeError: Failed to execu te 'appendItem' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'..
147 157
148 Testing animVal clear throws 158 Testing animVal clear throws
149 PASS text1.x.animVal.clear() threw exception NoModificationAllowedError: Failed to execute 'clear' on 'SVGLengthList': The object is read-only.. 159 PASS text1.x.animVal.clear() threw exception NoModificationAllowedError: Failed to execute 'clear' on 'SVGLengthList': The object is read-only..
150 PASS text1.x.baseVal.clear() is undefined. 160 PASS text1.x.baseVal.clear() is undefined.
151 PASS successfullyParsed is true 161 PASS successfullyParsed is true
152 162
153 TEST COMPLETE 163 TEST COMPLETE
154 164
OLDNEW
« no previous file with comments | « LayoutTests/svg/dom/SVGLengthList-basics.xhtml ('k') | LayoutTests/svg/dom/SVGLengthList-initialize.xhtml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698