1 This test examines the order of the elements attribute of a form element.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 - Test for the case where some elements are outside of the form.
7 PASS owner.elements.length is 6
8 PASS owner.elements[0] is before1
9 PASS owner.elements[1] is before2
10 PASS owner.elements[2] is inner1
11 PASS owner.elements[3] is inner2
12 PASS owner.elements[4] is after1
13 PASS owner.elements[5] is after2
15 - Test for changing the value of the form attribute of a element which is located before the form owner.
16 PASS owner.elements.length is 5
17 PASS owner.elements[0] is before1
18 PASS owner.elements[1] is inner1
19 PASS owner.elements[2] is inner2
20 PASS owner.elements[3] is after1
21 PASS owner.elements[4] is after2
22 PASS owner.elements.length is 6
23 PASS owner.elements[0] is before1
24 PASS owner.elements[1] is before2
25 PASS owner.elements[2] is inner1
26 PASS owner.elements[3] is inner2
27 PASS owner.elements[4] is after1
28 PASS owner.elements[5] is after2
30 - Test for changing the value of the form attribute of a element which is located inside of the form owner.
31 PASS owner.elements.length is 5
32 PASS owner.elements[0] is before1
33 PASS owner.elements[1] is before2
34 PASS owner.elements[2] is inner1
35 PASS owner.elements[3] is after1
36 PASS owner.elements[4] is after2
37 PASS owner.elements.length is 6
38 PASS owner.elements[0] is before1
39 PASS owner.elements[1] is before2
40 PASS owner.elements[2] is inner1
41 PASS owner.elements[3] is inner2
42 PASS owner.elements[4] is after1
43 PASS owner.elements[5] is after2
45 - Test for changing the value of the form attribute of a element which is located after the form owner.
46 PASS owner.elements.length is 5
47 PASS owner.elements[0] is before1
48 PASS owner.elements[1] is before2
49 PASS owner.elements[2] is inner1
50 PASS owner.elements[3] is inner2
51 PASS owner.elements[4] is after2
52 PASS owner.elements.length is 6
53 PASS owner.elements[0] is before1
54 PASS owner.elements[1] is before2
55 PASS owner.elements[2] is inner1
56 PASS owner.elements[3] is inner2
57 PASS owner.elements[4] is after1
58 PASS owner.elements[5] is after2
60 - Test for setting form attribute of elements in reverse order.
61 PASS owner.elements.length is 6
62 PASS owner.elements[0] is before1
63 PASS owner.elements[1] is before2
64 PASS owner.elements[2] is inner1
65 PASS owner.elements[3] is inner2
66 PASS owner.elements[4] is after1
67 PASS owner.elements[5] is after2
69 - Test for setting form attribute of elements in random order.
70 PASS owner.elements.length is 6
71 PASS owner.elements[0] is before1
72 PASS owner.elements[1] is before2
73 PASS owner.elements[2] is inner1
74 PASS owner.elements[3] is inner2
75 PASS owner.elements[4] is after1
76 PASS owner.elements[5] is after2
78 - Test for removing/adding elements
79 PASS owner.elements.length is 3
80 PASS owner.elements[0] is before1
81 PASS owner.elements[1] is inner1
82 PASS owner.elements[2] is after2
83 PASS owner.elements.length is 6
84 PASS owner.elements[0] is before1
85 PASS owner.elements[1] is before2
86 PASS owner.elements[2] is inner1
87 PASS owner.elements[3] is inner2
88 PASS owner.elements[4] is after1
89 PASS owner.elements[5] is after2
90 PASS successfullyParsed is true