Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / input-aria-required.html
blobfc502a4e1321d48d05b98bdb69dfdb7f0091bd01
1 <!DOCTYPE HTML>
2 <html>
3 <body>
4 <script src="../resources/js-test.js"></script>
5 <div>
6 <input id="text1" type="text" required value="Value">
7 <input id="text2" type="text" aria-required="true">
8 <input id="text3" type="text" aria-required="false">
9 <input id="text4" type="text" required aria-required="false">
10 <input id="text5" type="text" value="Value">
11 </div>
12 <div id="console"></div>
13 <script>
14 description("This tests required and aria-required on input type.");
16 if (window.accessibilityController) {
17 var input1 = accessibilityController.accessibleElementById("text1");
18 shouldBe("input1.isRequired", "true");
20 var input2 = accessibilityController.accessibleElementById("text2");
21 shouldBe("input2.isRequired", "true");
23 var input3 = accessibilityController.accessibleElementById("text3");
24 shouldBe("input3.isRequired", "false");
26 var input4 = accessibilityController.accessibleElementById("text4");
27 shouldBe("input4.isRequired", "true");
29 var input5 = accessibilityController.accessibleElementById("text5");
30 shouldBe("input5.isRequired", "false");
32 document.querySelector("div").remove();
34 </script>
36 </body>
37 </html>