2 This is a test of the simple SVGLengthList API parts.
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
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
14 Test uncommon arguments for initialize()
15 PASS text1.x.baseVal.initialize(30) threw exception TypeError: Type error.
16 PASS text1.x.baseVal.initialize('aString') threw exception TypeError: Type error.
17 PASS text1.x.baseVal.initialize(text1) threw exception TypeError: Type error.
18 PASS text1.x.baseVal.initialize(null) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
20 Test uncommon arguments for getItem()
21 PASS text1.x.baseVal.getItem(30) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
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)
26 Test uncommon arguments for insertItemBefore()
27 PASS text1.x.baseVal.insertItemBefore(30) threw exception TypeError: Not enough arguments.
28 PASS text1.x.baseVal.insertItemBefore('aString') threw exception TypeError: Not enough arguments.
29 PASS text1.x.baseVal.insertItemBefore(text1) threw exception TypeError: Not enough arguments.
30 PASS text1.x.baseVal.insertItemBefore(null) threw exception TypeError: Not enough arguments.
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
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 1500
36 PASS text1.getAttribute('x') is "1000 500 1500"
37 PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), text1) is text1.x.baseVal.getItem(0)
38 PASS text1.x.baseVal.numberOfItems is 3
39 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(2).value is 1500
42 PASS text1.getAttribute('x') is "500 1000 1500"
43 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
45 PASS text1.x.baseVal.getItem(0).value is 1000
46 PASS text1.x.baseVal.getItem(1).value is 500
47 PASS text1.x.baseVal.getItem(2).value is 1500
48 PASS text1.getAttribute('x') is "1000 500 1500"
49 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
51 PASS text1.x.baseVal.getItem(0).value is 500
52 PASS text1.x.baseVal.getItem(1).value is 1000
53 PASS text1.x.baseVal.getItem(2).value is 1500
54 PASS text1.getAttribute('x') is "500 1000 1500"
55 PASS text1.x.baseVal.insertItemBefore(30, 0) threw exception TypeError: Type error.
56 PASS text1.x.baseVal.insertItemBefore('aString', 0) threw exception TypeError: Type error.
57 PASS text1.x.baseVal.insertItemBefore(text1, 0) threw exception TypeError: Type error.
58 PASS text1.x.baseVal.insertItemBefore(null, 0) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
60 Set x='1 2 3 4' for text1
61 PASS text1.setAttribute('x', '1 2 3 4') is undefined.
62 PASS text1.x.baseVal.numberOfItems is 4
63 PASS text1.x.baseVal.getItem(0).value is 1
64 PASS text1.x.baseVal.getItem(1).value is 2
65 PASS text1.x.baseVal.getItem(2).value is 3
66 PASS text1.x.baseVal.getItem(3).value is 4
67 PASS text1.getAttribute('x') is "1 2 3 4"
69 Test uncommon arguments for replaceItem()
70 PASS text1.x.baseVal.replaceItem(30) threw exception TypeError: Not enough arguments.
71 PASS text1.x.baseVal.replaceItem('aString') threw exception TypeError: Not enough arguments.
72 PASS text1.x.baseVal.replaceItem(text1) threw exception TypeError: Not enough arguments.
73 PASS text1.x.baseVal.replaceItem(null) threw exception TypeError: Not enough arguments.
74 PASS text1.x.baseVal.replaceItem(30, 0) threw exception TypeError: Type error.
75 PASS text1.x.baseVal.replaceItem('aString', 0) threw exception TypeError: Type error.
76 PASS text1.x.baseVal.replaceItem(text1, 0) threw exception TypeError: Type error.
77 PASS text1.x.baseVal.replaceItem(null, 0) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
78 PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), 0) is text1.x.baseVal.getItem(0)
79 PASS text1.x.baseVal.numberOfItems is 3
80 PASS text1.x.baseVal.getItem(0).value is 1
81 PASS text1.x.baseVal.getItem(1).value is 3
82 PASS text1.x.baseVal.getItem(2).value is 4
83 PASS text1.getAttribute('x') is "1 3 4"
84 PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), 'aString') is text1.x.baseVal.getItem(0)
85 PASS text1.x.baseVal.numberOfItems is 2
86 PASS text1.x.baseVal.getItem(0).value is 1
87 PASS text1.x.baseVal.getItem(1).value is 4
88 PASS text1.getAttribute('x') is "1 4"
89 PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), text1) is text1.x.baseVal.getItem(0)
90 PASS text1.x.baseVal.numberOfItems is 1
91 PASS text1.getAttribute('x') is "1"
92 PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), null) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
93 PASS text1.x.baseVal.numberOfItems is 0
94 PASS text1.getAttribute('x') is ""
96 Set x='1 2 3 4' for text1
97 PASS text1.setAttribute('x', '1 2 3 4') is undefined.
99 Test uncommon arguments for removeItem()
100 PASS text1.x.baseVal.removeItem(30) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
101 PASS text1.x.baseVal.removeItem(0).value is 1
102 PASS text1.x.baseVal.numberOfItems is 3
103 PASS text1.x.baseVal.getItem(0).value is 2
104 PASS text1.x.baseVal.getItem(1).value is 3
105 PASS text1.x.baseVal.getItem(2).value is 4
106 PASS text1.getAttribute('x') is "2 3 4"
107 PASS text1.x.baseVal.removeItem(text1).value is 2
108 PASS text1.x.baseVal.numberOfItems is 2
109 PASS text1.x.baseVal.getItem(0).value is 3
110 PASS text1.x.baseVal.getItem(1).value is 4
111 PASS text1.getAttribute('x') is "3 4"
113 Test uncommon arguments for appendItem()
114 PASS text1.x.baseVal.appendItem(30) threw exception TypeError: Type error.
115 PASS text1.x.baseVal.appendItem('aString') threw exception TypeError: Type error.
116 PASS text1.x.baseVal.appendItem(text1) threw exception TypeError: Type error.
117 PASS text1.x.baseVal.appendItem(null) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
119 Testing animVal clear throws
120 PASS text1.x.animVal.clear() threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
121 PASS text1.x.baseVal.clear() is undefined.
122 PASS successfullyParsed is true