OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../resources/js-test.js"></script> |
| 5 </head> |
| 6 <body> |
| 7 |
| 8 <input id="range1" type="range" min="0" max="100" value="50"> |
| 9 <input id="range2" type="range" min="0" max="10" value="5"> |
| 10 <input id="range3" type="range" min="0" max="50" value="10" step="5"> |
| 11 |
| 12 <script> |
| 13 |
| 14 description("Check whether changing slider's value without step attribute works
properly"); |
| 15 |
| 16 if (window.accessibilityController) { |
| 17 // Checking whether step is greater than one |
| 18 var range1 = accessibilityController.accessibleElementById("range1"); |
| 19 shouldBe("range1.intValue", "50"); |
| 20 range1.increment(); |
| 21 shouldBe("range1.intValue", "51"); |
| 22 range1.increment(); |
| 23 shouldBe("range1.intValue", "52"); |
| 24 range1.decrement(); |
| 25 shouldBe("range1.intValue", "51"); |
| 26 range1.increment(); |
| 27 shouldBe("range1.intValue", "52"); |
| 28 |
| 29 var range2 = accessibilityController.accessibleElementById("range2"); |
| 30 shouldBe("range2.intValue", "5"); |
| 31 range2.increment(); |
| 32 shouldBe("range2.intValue", "6"); |
| 33 range2.increment(); |
| 34 shouldBe("range2.intValue", "7"); |
| 35 range2.decrement(); |
| 36 shouldBe("range2.intValue", "6"); |
| 37 range2.increment(); |
| 38 shouldBe("range2.intValue", "7"); |
| 39 |
| 40 var range3 = accessibilityController.accessibleElementById("range3"); |
| 41 shouldBe("range3.intValue", "10"); |
| 42 range3.increment(); |
| 43 shouldBe("range3.intValue", "15"); |
| 44 range3.increment(); |
| 45 shouldBe("range3.intValue", "20"); |
| 46 range3.decrement(); |
| 47 shouldBe("range3.intValue", "15"); |
| 48 range3.increment(); |
| 49 shouldBe("range3.intValue", "20"); |
| 50 } |
| 51 </script> |
| 52 </body> |
| 53 </html> |
OLD | NEW |