2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <script src=
"resources/dump-list.js"></script>
9 testRunner.dumpAsText();
11 var list1 = document.getElementById(
"list1");
12 document.getElementById(
"console1").innerHTML = dumpList(list1);
14 var list2 = document.getElementById(
"list2");
15 document.getElementById(
"console2").innerHTML = dumpList(list2);
17 var list3 = document.getElementById(
"list3");
18 document.getElementById(
"console3").innerHTML = dumpList(list3);
20 var list4 = document.getElementById(
"list4");
21 document.getElementById(
"console4").innerHTML = dumpList(list4);
23 var list5 = document.getElementById(
"list5");
24 document.getElementById(
"console5").innerHTML = dumpList(list5);
26 var list6 = document.getElementById(
"list6");
27 document.getElementById(
"console6").innerHTML =
"Value of start attribute of the list is : " + list6.start;
29 // Don't show the actual lists as they are useless in the text-only mode.
30 list1.parentNode.removeChild(list1);
31 list2.parentNode.removeChild(list2);
32 list3.parentNode.removeChild(list3);
33 list4.parentNode.removeChild(list4);
34 list5.parentNode.removeChild(list5);
35 list6.parentNode.removeChild(list6);
39 <body onload=
"test()">
40 <p>This tests that reversed lists render properly.
</p>
41 <ol id=
"list1" reversed=
"reversed">
44 <div style=
"display: list-item">Three
</div>
50 <p>This tests that reversed lists with a custom start value render properly.
</p>
51 <ol id=
"list2" reversed=
"reversed" start=
"10">
60 <p>This tests that reversed lists with explicit item values render properly.
</p>
61 <ol id=
"list3" reversed=
"reversed">
64 <li value=
"2">Two
</li>
70 <p>This tests that reversed lists with a custom start value and explicit item values render properly.
</p>
71 <ol id=
"list4" reversed=
"reversed" start=
"10">
74 <li value=
"3">Three
</li>
77 <li value=
"3">Three
</li>
83 <p>This tests that reversed lists with a negative start value render properly.
</p>
84 <ol id=
"list5" reversed=
"reversed" start=
"-5">
93 <p>This tests that reversed lists have the start attribute equals the number of list items when no start value is specified.
</p>
94 <ol id=
"list6" reversed=
"reversed">
101 <p id=
"console6"></p>