4 <script src=
"../resources/js-test.js"></script>
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">
12 <div id=
"console"></div>
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();