OLD | NEW |
| (Empty) |
1 Test to ensure that HTMLPropertiesCollection contains all item properties when i
tem is not attached to the DOM tree. | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 Created element of type: div | |
7 Item not attached to the dom tree | |
8 PASS item.properties.length is 4 | |
9 PASS item.properties.item(0) is parent.firstChild | |
10 PASS item.properties[0] is parent.firstChild | |
11 PASS item.properties.item(1) is item.firstChild | |
12 PASS item.properties[1] is item.firstChild | |
13 PASS item.properties.item(2) is parent.childNodes[2] | |
14 PASS item.properties[2] is parent.childNodes[2] | |
15 PASS item.properties.item(3) is parent.childNodes[2].firstChild | |
16 PASS item.properties[3] is parent.childNodes[2].firstChild | |
17 PASS item.properties.names.length is 3 | |
18 PASS item.properties.names.item(0) is 'foo' | |
19 PASS item.properties.names[0] is 'foo' | |
20 PASS item.properties.names.item(1) is 'bar' | |
21 PASS item.properties.names[1] is 'bar' | |
22 PASS item.properties.names.item(2) is 'baz' | |
23 PASS item.properties.names[2] is 'baz' | |
24 PASS item.properties.namedItem('foo').length is 2 | |
25 PASS item.properties.namedItem('foo').item(0) is parent.firstChild | |
26 PASS item.properties.namedItem('foo')[0] is parent.firstChild | |
27 PASS item.properties.namedItem('foo').item(1) is parent.childNodes[2] | |
28 PASS item.properties.namedItem('foo')[1] is parent.childNodes[2] | |
29 PASS item.properties.namedItem('bar').length is 1 | |
30 PASS item.properties.namedItem('bar').item(0) is item.firstChild | |
31 PASS item.properties.namedItem('bar')[0] is item.firstChild | |
32 PASS item.properties.namedItem('baz').length is 1 | |
33 PASS item.properties.namedItem('baz').item(0) is parent.childNodes[2].firstChild | |
34 PASS item.properties.namedItem('baz')[0] is parent.childNodes[2].firstChild | |
35 | |
36 Item added to the dom tree | |
37 PASS item.properties.length is 4 | |
38 PASS item.properties.item(0) is parent.firstChild | |
39 PASS item.properties[0] is parent.firstChild | |
40 PASS item.properties.item(1) is item.firstChild | |
41 PASS item.properties[1] is item.firstChild | |
42 PASS item.properties.item(2) is parent.childNodes[2] | |
43 PASS item.properties[2] is parent.childNodes[2] | |
44 PASS item.properties.item(3) is parent.childNodes[2].firstChild | |
45 PASS item.properties[3] is parent.childNodes[2].firstChild | |
46 PASS item.properties.names.length is 3 | |
47 PASS item.properties.names.item(0) is 'foo' | |
48 PASS item.properties.names[0] is 'foo' | |
49 PASS item.properties.names.item(1) is 'bar' | |
50 PASS item.properties.names[1] is 'bar' | |
51 PASS item.properties.names.item(2) is 'baz' | |
52 PASS item.properties.names[2] is 'baz' | |
53 PASS item.properties.namedItem('foo').length is 2 | |
54 PASS item.properties.namedItem('foo').item(0) is parent.firstChild | |
55 PASS item.properties.namedItem('foo')[0] is parent.firstChild | |
56 PASS item.properties.namedItem('foo').item(1) is parent.childNodes[2] | |
57 PASS item.properties.namedItem('foo')[1] is parent.childNodes[2] | |
58 PASS item.properties.namedItem('bar').length is 1 | |
59 PASS item.properties.namedItem('bar').item(0) is item.firstChild | |
60 PASS item.properties.namedItem('bar')[0] is item.firstChild | |
61 PASS item.properties.namedItem('baz').length is 1 | |
62 PASS item.properties.namedItem('baz').item(0) is parent.childNodes[2].firstChild | |
63 PASS item.properties.namedItem('baz')[0] is parent.childNodes[2].firstChild | |
64 | |
65 Item detached from the dom tree | |
66 PASS item.properties.length is 4 | |
67 PASS item.properties.item(0) is parent.firstChild | |
68 PASS item.properties[0] is parent.firstChild | |
69 PASS item.properties.item(1) is item.firstChild | |
70 PASS item.properties[1] is item.firstChild | |
71 PASS item.properties.item(2) is parent.childNodes[2] | |
72 PASS item.properties[2] is parent.childNodes[2] | |
73 PASS item.properties.item(3) is parent.childNodes[2].firstChild | |
74 PASS item.properties[3] is parent.childNodes[2].firstChild | |
75 PASS item.properties.names.length is 3 | |
76 PASS item.properties.names.item(0) is 'foo' | |
77 PASS item.properties.names[0] is 'foo' | |
78 PASS item.properties.names.item(1) is 'bar' | |
79 PASS item.properties.names[1] is 'bar' | |
80 PASS item.properties.names.item(2) is 'baz' | |
81 PASS item.properties.names[2] is 'baz' | |
82 PASS item.properties.namedItem('foo').length is 2 | |
83 PASS item.properties.namedItem('foo').item(0) is parent.firstChild | |
84 PASS item.properties.namedItem('foo')[0] is parent.firstChild | |
85 PASS item.properties.namedItem('foo').item(1) is parent.childNodes[2] | |
86 PASS item.properties.namedItem('foo')[1] is parent.childNodes[2] | |
87 PASS item.properties.namedItem('bar').length is 1 | |
88 PASS item.properties.namedItem('bar').item(0) is item.firstChild | |
89 PASS item.properties.namedItem('bar')[0] is item.firstChild | |
90 PASS item.properties.namedItem('baz').length is 1 | |
91 PASS item.properties.namedItem('baz').item(0) is parent.childNodes[2].firstChild | |
92 PASS item.properties.namedItem('baz')[0] is parent.childNodes[2].firstChild | |
93 PASS successfullyParsed is true | |
94 | |
95 TEST COMPLETE | |
96 | |
OLD | NEW |