blob: 9ee74ff2576542e116c6f44adba9f6b6b7fdd03b [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test.js"></script>
<script src="../resources/multiple-fields-ax-aria-attributes.js"></script>
</head>
<body>
<input id="test" type="month" value="2012-10">
<script>
description('This test checks aria-help attribute of fields in multiple fields week input UI.');
var testInput = document.getElementById('test');
if (!window.accessibilityController || !window.eventSender)
debug('Please run inside DRT or WTR.');
else {
debug('Non-empty value');
testInput.focus();
checkFocusedElementAXAttributes('Month, AXValueDescription: October, intValue:10, range:1-12');
eventSender.keyDown('\t');
checkFocusedElementAXAttributes('Year, AXValueDescription: 2012, intValue:2012, range:1-275760');
debug('Empty value');
eventSender.keyDown('Backspace');
checkFocusedElementAXAttributes('Year, AXValueDescription: blank, intValue:0, range:1-275760');
eventSender.keyDown('\t', ['shiftKey']);
eventSender.keyDown('Backspace');
checkFocusedElementAXAttributes('Month, AXValueDescription: blank, intValue:0, range:1-12');
debug('');
testInput.remove();
}
</script>
</body>
</html>