| OLD | NEW |
| (Empty) |
| 1 ABC | |
| 2 This is a test of the simple SVGLengthList API parts. | |
| 3 | |
| 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 5 | |
| 6 | |
| 7 PASS text1.x.baseVal != text1.x.animVal is true | |
| 8 PASS text1.x.baseVal.numberOfItems is 3 | |
| 9 PASS text1.x.animVal.numberOfItems is 3 | |
| 10 PASS text1.x.baseVal.getItem(0).value is 500 | |
| 11 PASS text1.x.baseVal.getItem(1).value is 1000 | |
| 12 PASS text1.x.baseVal.getItem(2).value is 1500 | |
| 13 | |
| 14 Test uncommon arguments for initialize() | |
| 15 PASS text1.x.baseVal.initialize(30) threw exception TypeError: Failed to execute
'initialize' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'.. | |
| 16 PASS text1.x.baseVal.initialize('aString') threw exception TypeError: Failed to
execute 'initialize' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'.
. | |
| 17 PASS text1.x.baseVal.initialize(text1) threw exception TypeError: Failed to exec
ute 'initialize' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'.. | |
| 18 PASS text1.x.baseVal.initialize(null) threw exception TypeError: Failed to execu
te 'initialize' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'.. | |
| 19 | |
| 20 Test uncommon arguments for getItem() | |
| 21 PASS text1.x.baseVal.getItem(30) threw exception IndexSizeError: Failed to execu
te 'getItem' on 'SVGLengthList': The index provided (30) is greater than the max
imum bound (3).. | |
| 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) | |
| 24 PASS text1.x.baseVal.getItem(null) is text1.x.baseVal.getItem(0) | |
| 25 | |
| 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.. | |
| 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.. | |
| 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) | |
| 32 PASS text1.x.baseVal.numberOfItems is 4 | |
| 33 PASS text1.x.baseVal.getItem(0).value is 1000 | |
| 34 PASS text1.x.baseVal.getItem(1).value is 500 | |
| 35 PASS text1.x.baseVal.getItem(2).value is 1000 | |
| 36 PASS text1.x.baseVal.getItem(3).value is 1500 | |
| 37 PASS text1.getAttribute('x') is "1000 500 1000 1500" | |
| 38 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), text1) is text
1.x.baseVal.getItem(0) | |
| 39 PASS text1.x.baseVal.numberOfItems is 5 | |
| 40 PASS text1.x.baseVal.getItem(0).value is 500 | |
| 41 PASS text1.x.baseVal.getItem(1).value is 1000 | |
| 42 PASS text1.x.baseVal.getItem(2).value is 500 | |
| 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" | |
| 46 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), null) is text1
.x.baseVal.getItem(0) | |
| 47 PASS text1.x.baseVal.numberOfItems is 6 | |
| 48 PASS text1.x.baseVal.getItem(0).value is 1000 | |
| 49 PASS text1.x.baseVal.getItem(1).value is 500 | |
| 50 PASS text1.x.baseVal.getItem(2).value is 1000 | |
| 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" | |
| 55 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 0) is text1.x.
baseVal.getItem(0) | |
| 56 PASS text1.x.baseVal.numberOfItems is 7 | |
| 57 PASS text1.x.baseVal.getItem(0).value is 500 | |
| 58 PASS text1.x.baseVal.getItem(1).value is 1000 | |
| 59 PASS text1.x.baseVal.getItem(2).value is 500 | |
| 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" | |
| 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'.. | |
| 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'.. | |
| 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'.. | |
| 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'.. | |
| 69 | |
| 70 Set x='1 2 3 4' for text1 | |
| 71 PASS text1.setAttribute('x', '1 2 3 4') is undefined. | |
| 72 | |
| 73 Test edge cases for insertItemBefore() | |
| 74 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(3), 3) is text1.x.
baseVal.getItem(3) | |
| 75 PASS text1.getAttribute('x') is "1 2 3 4 4" | |
| 76 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 5) is text1.x.
baseVal.getItem(5) | |
| 77 PASS text1.getAttribute('x') is "1 2 3 4 4 2" | |
| 78 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 0) is text1.x.
baseVal.getItem(0) | |
| 79 PASS text1.getAttribute('x') is "2 1 2 3 4 4 2" | |
| 80 | |
| 81 Set x='1 2 3 4' for text1 | |
| 82 PASS text1.setAttribute('x', '1 2 3 4') is undefined. | |
| 83 PASS text1.x.baseVal.numberOfItems is 4 | |
| 84 PASS text1.x.baseVal.getItem(0).value is 1 | |
| 85 PASS text1.x.baseVal.getItem(1).value is 2 | |
| 86 PASS text1.x.baseVal.getItem(2).value is 3 | |
| 87 PASS text1.x.baseVal.getItem(3).value is 4 | |
| 88 PASS text1.getAttribute('x') is "1 2 3 4" | |
| 89 | |
| 90 Test uncommon arguments for replaceItem() | |
| 91 PASS text1.x.baseVal.replaceItem(30) threw exception TypeError: Failed to execut
e 'replaceItem' on 'SVGLengthList': 2 arguments required, but only 1 present.. | |
| 92 PASS text1.x.baseVal.replaceItem('aString') threw exception TypeError: Failed to
execute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only 1 pres
ent.. | |
| 93 PASS text1.x.baseVal.replaceItem(text1) threw exception TypeError: Failed to exe
cute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only 1 present.
. | |
| 94 PASS text1.x.baseVal.replaceItem(null) threw exception TypeError: Failed to exec
ute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only 1 present.. | |
| 95 PASS text1.x.baseVal.replaceItem(30, 0) threw exception TypeError: Failed to exe
cute 'replaceItem' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'.. | |
| 96 PASS text1.x.baseVal.replaceItem('aString', 0) threw exception TypeError: Failed
to execute 'replaceItem' on 'SVGLengthList': parameter 1 is not of type 'SVGLen
gth'.. | |
| 97 PASS text1.x.baseVal.replaceItem(text1, 0) threw exception TypeError: Failed to
execute 'replaceItem' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'
.. | |
| 98 PASS text1.x.baseVal.replaceItem(null, 0) threw exception TypeError: Failed to e
xecute 'replaceItem' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'.
. | |
| 99 | |
| 100 Test uncommon values for indexed setter | |
| 101 PASS text1.x.baseVal[0] = 30 threw exception TypeError: Failed to set an indexed
property on 'SVGLengthList': The provided value is not of type 'SVGLength'.. | |
| 102 PASS text1.x.baseVal[0] = 'aString' threw exception TypeError: Failed to set an
indexed property on 'SVGLengthList': The provided value is not of type 'SVGLengt
h'.. | |
| 103 PASS text1.x.baseVal[0] = text1 threw exception TypeError: Failed to set an inde
xed property on 'SVGLengthList': The provided value is not of type 'SVGLength'.. | |
| 104 PASS text1.x.baseVal[0] = null threw exception TypeError: Failed to set an index
ed property on 'SVGLengthList': The provided value is not of type 'SVGLength'.. | |
| 105 PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), 0) is text1.x.baseV
al.getItem(0) | |
| 106 PASS text1.x.baseVal.numberOfItems is 4 | |
| 107 PASS text1.x.baseVal.getItem(0).value is 1 | |
| 108 PASS text1.x.baseVal.getItem(1).value is 2 | |
| 109 PASS text1.x.baseVal.getItem(2).value is 3 | |
| 110 PASS text1.x.baseVal.getItem(3).value is 4 | |
| 111 PASS text1.getAttribute('x') is "1 2 3 4" | |
| 112 PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), 'aString') is text1
.x.baseVal.getItem(0) | |
| 113 PASS text1.x.baseVal.numberOfItems is 4 | |
| 114 PASS text1.x.baseVal.getItem(0).value is 1 | |
| 115 PASS text1.x.baseVal.getItem(1).value is 2 | |
| 116 PASS text1.x.baseVal.getItem(2).value is 3 | |
| 117 PASS text1.x.baseVal.getItem(3).value is 4 | |
| 118 PASS text1.getAttribute('x') is "1 2 3 4" | |
| 119 PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), text1) is text1.x.b
aseVal.getItem(0) | |
| 120 PASS text1.x.baseVal.numberOfItems is 4 | |
| 121 PASS text1.getAttribute('x') is "1 2 3 4" | |
| 122 | |
| 123 Set x='1 2 3 4' for text1 | |
| 124 PASS text1.setAttribute('x', '1 2 3 4') is undefined. | |
| 125 | |
| 126 Test edge cases for replaceItem() | |
| 127 PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(3), 3) is text1.x.baseV
al.getItem(3) | |
| 128 PASS text1.x.baseVal.numberOfItems is 4 | |
| 129 PASS text1.getAttribute('x') is "1 2 3 4" | |
| 130 PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(1), 3) is text1.x.baseV
al.getItem(3) | |
| 131 PASS text1.x.baseVal.numberOfItems is 4 | |
| 132 PASS text1.getAttribute('x') is "1 2 3 2" | |
| 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).. | |
| 134 | |
| 135 Set x='1 2 3 4' for text1 | |
| 136 PASS text1.setAttribute('x', '1 2 3 4') is undefined. | |
| 137 | |
| 138 Test uncommon arguments for removeItem() | |
| 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).. | |
| 140 PASS text1.x.baseVal.removeItem(0).value is 1 | |
| 141 PASS text1.x.baseVal.numberOfItems is 3 | |
| 142 PASS text1.x.baseVal.getItem(0).value is 2 | |
| 143 PASS text1.x.baseVal.getItem(1).value is 3 | |
| 144 PASS text1.x.baseVal.getItem(2).value is 4 | |
| 145 PASS text1.getAttribute('x') is "2 3 4" | |
| 146 PASS text1.x.baseVal.removeItem(text1).value is 2 | |
| 147 PASS text1.x.baseVal.numberOfItems is 2 | |
| 148 PASS text1.x.baseVal.getItem(0).value is 3 | |
| 149 PASS text1.x.baseVal.getItem(1).value is 4 | |
| 150 PASS text1.getAttribute('x') is "3 4" | |
| 151 | |
| 152 Test uncommon arguments for appendItem() | |
| 153 PASS text1.x.baseVal.appendItem(30) threw exception TypeError: Failed to execute
'appendItem' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'.. | |
| 154 PASS text1.x.baseVal.appendItem('aString') threw exception TypeError: Failed to
execute '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'.. | |
| 156 PASS text1.x.baseVal.appendItem(null) threw exception TypeError: Failed to execu
te 'appendItem' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'.. | |
| 157 | |
| 158 Testing animVal clear throws | |
| 159 PASS text1.x.animVal.clear() threw exception NoModificationAllowedError: Failed
to execute 'clear' on 'SVGLengthList': The object is read-only.. | |
| 160 PASS text1.x.baseVal.clear() is undefined. | |
| 161 PASS successfullyParsed is true | |
| 162 | |
| 163 TEST COMPLETE | |
| 164 | |
| OLD | NEW |