tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / platform / mac / accessibility / range-alter-by-step.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
8 <input type="range" min="0" max="100" value="25" step="25" id="range1"/>
9
10 <p id="description"></p>
11 <div id="console"></div>
12
13 <script>
14
15     description("This test makes sure that if a range type has a step value, that increment and decrement work.");
16
17     if (window.accessibilityController) {
18
19           // ARIA determinate progressbar
20           document.getElementById("range1").focus();
21           var obj = accessibilityController.focusedElement;
22           
23           shouldBe("obj.intValue", "25");
24
25           obj.increment();
26           shouldBe("obj.intValue", "50");
27
28           obj.increment();
29           shouldBe("obj.intValue", "75");
30
31           obj.increment();
32           shouldBe("obj.intValue", "100");
33
34           obj.increment();
35           shouldBe("obj.intValue", "100");
36
37           obj.decrement();
38           shouldBe("obj.intValue", "75");
39
40           obj.decrement();
41           shouldBe("obj.intValue", "50");
42
43           obj.decrement();
44           shouldBe("obj.intValue", "25");
45
46           obj.decrement();
47           shouldBe("obj.intValue", "0");
48
49           obj.decrement();
50           shouldBe("obj.intValue", "0");
51     }
52
53 </script>
54
55 <script src="../../../fast/js/resources/js-test-post.js"></script>
56 </body>
57 </html>