3 <script src="resources/dump-list.js"></script>
7 if (window.layoutTestController)
8 layoutTestController.dumpAsText();
10 var list1 = document.getElementById("list1");
11 document.getElementById("console1").innerHTML = dumpList(list1);
13 var list2 = document.getElementById("list2");
14 document.getElementById("console2").innerHTML = dumpList(list2);
16 var list3 = document.getElementById("list3");
17 document.getElementById("console3").innerHTML = dumpList(list3);
19 var list4 = document.getElementById("list4");
20 document.getElementById("console4").innerHTML = dumpList(list4);
22 var list5 = document.getElementById("list5");
23 document.getElementById("console5").innerHTML = dumpList(list5);
25 var list6 = document.getElementById("list6");
26 document.getElementById("console6").innerHTML = "Value of start attribute of the list is : " + list6.start;
28 // Don't show the actual lists as they are useless in the text-only mode.
29 list1.parentNode.removeChild(list1);
30 list2.parentNode.removeChild(list2);
31 list3.parentNode.removeChild(list3);
32 list4.parentNode.removeChild(list4);
33 list5.parentNode.removeChild(list5);
34 list6.parentNode.removeChild(list6);
38 <body onload="test()">
39 <p>This tests that reversed lists render properly.</p>
40 <ol id="list1" reversed>
43 <div style="display: list-item">Three</div>
49 <p>This tests that reversed lists with a custom start value render properly.</p>
50 <ol id="list2" reversed="reversed" start="10">
59 <p>This tests that reversed lists with explicit item values render properly.</p>
60 <ol id="list3" reversed>
63 <li value="2">Two</li>
69 <p>This tests that reversed lists with a custom start value and explicit item values render properly.</p>
70 <ol id="list4" reversed start="10">
73 <li value="3">Three</li>
76 <li value="3">Three</li>
82 <p>This tests that reversed lists with a negative start value render properly.</p>
83 <ol id="list5" reversed="reversed" start="-5">
92 <p>This tests that reversed lists have the start attribute equals the number of list items when no start value is specified.</p>
93 <ol id="list6" reversed>
100 <p id="console6"></p>