blob: 2facb6f3bdfc27224ddf74cdc490d7e64a0af7cd [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/js-test.js"></script>
<script src="../resources/accessibility-helper.js"></script>
</head>
<body>
<input id="empty_colorwell" type="color">
<input id="good_colorwell" type="color" value="#ff0000">
<input id="bad_colorwell" type="color" value="purple">
<script>
description("This test checks the role of ColorWellRolean input with type=color");
if (window.accessibilityController) {
let axColorwell = accessibilityController.accessibleElementById("empty_colorwell");
debug("Role of input type=color is: " + axColorwell.role);
debug("Value of empty color well: " + axColorwell.stringValue);
axColorwell = accessibilityController.accessibleElementById("good_colorwell");
debug("Value of good color well: " + axColorwell.stringValue);
axColorwell = accessibilityController.accessibleElementById("bad_colorwell");
debug("Value of bad color well: " + axColorwell.stringValue);
}
</script>
</body>
</html>