Update device orientation & motion permission native SPI as per latest proposal
[WebKit-https.git] / LayoutTests / accessibility / spinbutton-implicit-values.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7 <span role="spinbutton" tabindex="-1" id="spinbutton1"></span>
8 <span role="spinbutton" tabindex="-1" id="spinbutton2" aria-valuemin=1></span>
9 <span role="spinbutton" tabindex="-1" id="spinbutton3" aria-valuenow=1></span>
10 <span role="spinbutton" tabindex="-1" id="spinbutton4" aria-valuemax=1></span>
11
12 <p id="description"></p>
13 <div id="console"></div>
14
15 <script>
16     description("Verifies the implicit values for aria-value* are correct for the spinbutton role.");
17
18     if (window.accessibilityController) {
19         var spinbutton1 = accessibilityController.accessibleElementById("spinbutton1");
20         shouldBeTrue("spinbutton1.minValue <= Number.MIN_SAFE_INTEGER");
21         shouldBe("spinbutton1.intValue", "0");
22         shouldBeTrue("spinbutton1.maxValue >= Number.MAX_SAFE_INTEGER");
23
24         var spinbutton2 = accessibilityController.accessibleElementById("spinbutton2");
25         shouldBe("spinbutton2.minValue", "1");
26         shouldBe("spinbutton2.intValue", "0");
27         shouldBeTrue("spinbutton2.maxValue >= Number.MAX_SAFE_INTEGER");
28
29         var spinbutton3 = accessibilityController.accessibleElementById("spinbutton3");
30         shouldBeTrue("spinbutton3.minValue <= Number.MIN_SAFE_INTEGER");
31         shouldBe("spinbutton3.intValue", "1");
32         shouldBeTrue("spinbutton3.maxValue >= Number.MAX_SAFE_INTEGER");
33
34         var spinbutton4 = accessibilityController.accessibleElementById("spinbutton4");
35         shouldBeTrue("spinbutton4.minValue <= Number.MIN_SAFE_INTEGER");
36         shouldBe("spinbutton4.intValue", "0");
37         shouldBe("spinbutton4.maxValue", "1");
38     }
39
40 </script>
41
42 <script src="../resources/js-test-post.js"></script>
43 </body>
44 </html>