4 <script src=
"../resources/js-test.js"></script>
8 <input id=
"empty_colorwell" type=
"color">
9 <input id=
"valid_colorwell" type=
"color" value=
"#ff0000">
10 <input id=
"invalid_colorwell" type=
"color" value=
"purple">
13 description("This test ensures that the correct accessibility properties can be retrieved from input elements of type color.");
15 if (window
.accessibilityController
) {
16 var colorwell
= document
.getElementById("empty_colorwell");
18 var axColorwell
= accessibilityController
.focusedElement
;
19 shouldBeEqualToString("axColorwell.role", "AXRole: AXColorWell");
20 shouldBeEqualToNumber("axColorwell.colorValue", 0xff000000);
21 shouldBeEqualToString("axColorwell.stringValue", "AXValue: rgba(0, 0, 0, 1)");
23 colorwell
= document
.getElementById("valid_colorwell");
25 axColorwell
= accessibilityController
.focusedElement
;
26 shouldBeEqualToString("axColorwell.role", "AXRole: AXColorWell");
27 shouldBeEqualToNumber("axColorwell.colorValue", 0xffff0000);
28 shouldBeEqualToString("axColorwell.stringValue", "AXValue: rgba(255, 0, 0, 1)");
30 colorwell
= document
.getElementById("invalid_colorwell");
32 axColorwell
= accessibilityController
.focusedElement
;
33 shouldBeEqualToString("axColorwell.role", "AXRole: AXColorWell");
34 shouldBeEqualToNumber("axColorwell.colorValue", 0xff000000);
35 shouldBeEqualToString("axColorwell.stringValue", "AXValue: rgba(0, 0, 0, 1)");