upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / fast / lists / li-values.html
1 <script src="resources/dump-list.js"></script>
2 <script>
3
4 function finishTest()
5 {
6     document.getElementById("removeMyValue").removeAttribute("value");
7     document.getElementById("changeMyValue").setAttribute("value", "-5");
8     filterListsWithReplacement(document.querySelectorAll("ol"));
9     if (window.layoutTestController)
10         layoutTestController.notifyDone();
11 }
12
13 function init()
14 {
15     if (window.layoutTestController) {
16         layoutTestController.dumpAsText();
17         layoutTestController.waitUntilDone();
18     }
19     setTimeout(finishTest, 0);
20 }
21
22 </script>
23
24 <body onload="init()">
25 <ol>
26     <li value="4" id="removeMyValue">The list marker should show 1 because this item had a value of 4 but it was removed.</li>
27     <li value="-1">The list marker should show -1 (negative values are allowed).</li>
28     <li>The list marker should show 0.</li>
29     <li value="invalid">The list marker should show 1 (invalid values are ignored).</li>
30     <li value="2" id="changeMyValue">The list marker should show -5 (updated programmatically).</li>
31
32     <!-- For the following styles the values are out-of-range, and should fall-back to decimal -->
33     <li value="-1" style="list-style-type: hebrew;">The list marker should fall back to decimal -1 (hebrew: 1-infinite).</li>
34     <li value="0" style="list-style-type: simple-upper-roman;">The list marker should fall back to decimal 0 (simple-upper-roman: 1-4999).</li>
35     <li value="0" style="list-style-type: simple-lower-roman;">The list marker should fall back to decimal 0 (simple-lower-roman: 1-4999).</li>
36     <li value="0" style="list-style-type: upper-roman;">The list marker should fall back to decimal 0 (upper-roman: 1-4999).</li>
37     <li value="0" style="list-style-type: lower-roman;">The list marker should fall back to decimal 0 (lower-roman: 1-4999).</li>
38     <li value="0" style="list-style-type: lower-armenian;">The list marker should fall back to decimal 0 (lower-armenian: 1-9999).</li>
39     <li value="0" style="list-style-type: upper-armenian;">The list marker should fall back to decimal 0 (upper-armenian: 1-9999).</li>
40     <li value="0" style="list-style-type: armenian;">The list marker should fall back to decimal 0 (armenian: 1-9999).</li>
41     <li value="0" style="list-style-type: georgian;">The list marker should fall back to decimal 0 (georgian: 1-19999).</li>
42     <li value="0" style="list-style-type: ancient-tamil;">The list marker should fall back to decimal 0 (ancient-tamil: 1-9999).</li>
43     <!-- FIXME: We don't currently support this list-style-type -> fall back to decimal -->
44     <li value="-1" style="list-style-type: japanese-informal;">The list marker should fall back to cjk-decimal -1 (japanese-informal: 0-9999).</li>
45     <!-- FIXME: We don't currently support this list-style-type -> fall back to decimal -->
46     <li value="-1" style="list-style-type: japanese-formal;">The list marker should fall back to cjk-decimal -1 (japanese-formal: 0-9999).</li>
47     <li value="-1" style="list-style-type: korean-hangul-formal;">The list marker should fall back to decimal -1 (korean-hangul-formal: 0-9999).</li>
48     <li value="-1" style="list-style-type: korean-hanja-informal;">The list marker should fall back to decimal -1 (korean-hanja-informal: 0-9999).</li>
49     <li value="-1" style="list-style-type: korean-hanja-formal;">The list marker should fall back to decimal -1 (korean-hanja-formal: 0-9999).</li>
50     <li value="0" style="list-style-type: greek;">The list marker should fall back to decimal 0 (greek: 1-999).</li>
51 </ol>
52 </body>