OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <head> | 2 <head> |
3 <title>Test meter min max value attributes</title> | 3 <title>Test meter min max value attributes</title> |
4 <script src="../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 | 7 |
8 <meter id="meter1" value="5" min="0" max="10">5 out of 10</meter> | 8 <meter id="meter1" value="5" min="0" max="10">5 out of 10</meter> |
9 | 9 |
10 <script> | 10 <script> |
11 if (window.testRunner) | 11 if (window.testRunner) |
12 testRunner.dumpAsText(); | 12 testRunner.dumpAsText(); |
13 | 13 |
14 description("This tests that meter element attributes min, max, value are expose
d to accessibility module"); | 14 description("This tests that meter element attributes min, max, value are expose
d to accessibility module"); |
15 | 15 |
16 if (window.accessibilityController) { | 16 if (window.accessibilityController) { |
17 window.axMeter1 = window.accessibilityController.accessibleElementById("mete
r1"); | 17 window.axMeter1 = window.accessibilityController.accessibleElementById("mete
r1"); |
18 | 18 |
19 shouldBe("axMeter1.minValue", "0"); | 19 shouldBe("axMeter1.minValue", "0"); |
20 shouldBe("axMeter1.maxValue", "10"); | 20 shouldBe("axMeter1.maxValue", "10"); |
21 shouldBe("axMeter1.intValue", "5"); | 21 shouldBe("axMeter1.intValue", "5"); |
22 } | 22 } |
23 </script> | 23 </script> |
24 </body> | 24 </body> |
OLD | NEW |