OLD | NEW |
| (Empty) |
1 This test ensures that namedItem must return the correct item properties. | |
2 | |
3 Created element of type: div | |
4 | |
5 Test properties.namedItem(name). | |
6 PASS item.properties.namedItem('foo').length is 2 | |
7 PASS item.properties.namedItem('bar').length is 1 | |
8 PASS item.properties.namedItem('baz').length is 1 | |
9 PASS item.properties.namedItem('qux').length is 1 | |
10 PASS item.properties.namedItem('foo')[0] is element.firstChild | |
11 PASS item.properties.namedItem('foo')[1] is item.firstChild | |
12 PASS item.properties.namedItem('bar')[0] is item.firstChild | |
13 PASS item.properties.namedItem('baz')[0] is element.lastChild | |
14 PASS item.properties.namedItem('qux')[0] is element.lastChild.firstChild | |
15 | |
16 Test properties[name]. | |
17 PASS item.properties['foo'].length is 2 | |
18 PASS item.properties['bar'].length is 1 | |
19 PASS item.properties['baz'].length is 1 | |
20 PASS item.properties['qux'].length is 1 | |
21 PASS item.properties['foo'][0] is element.firstChild | |
22 PASS item.properties['foo'][1] is item.firstChild | |
23 PASS item.properties['bar'][0] is item.firstChild | |
24 PASS item.properties['baz'][0] is element.lastChild | |
25 PASS item.properties['qux'][0] is element.lastChild.firstChild | |
26 | |
27 Test properties[index]. | |
28 PASS item.properties[0] is element.firstChild | |
29 PASS item.properties[1] is item.firstChild | |
30 PASS item.properties[2] is element.lastChild | |
31 PASS item.properties[3] is element.lastChild.firstChild | |
32 PASS successfullyParsed is true | |
33 | |
34 TEST COMPLETE | |
35 | |
OLD | NEW |