[go: nahoru, domu]

blob: 5f2c8bbf233a7d9240ae878d3ea248a67c46c51e [file] [log] [blame]
<!DOCTYPE HTML>
<script src="../resources/gc.js"></script>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<input id="dateInput" type="date">
<input id="timeInput" type="time">
<script>
test(function(t) {
const axInputElement =
accessibilityController.accessibleElementById("dateInput");
const axButton = axInputElement.childAtIndex(0).childAtIndex(1);
assert_true(axButton.hasDefaultAction());
}, "Test there is a default action for the button in input type=date");
test(function(t) {
const axInputElement =
accessibilityController.accessibleElementById("timeInput");
const axButton = axInputElement.childAtIndex(0).childAtIndex(1);
assert_true(axButton.hasDefaultAction());
}, "Test there is a default action for the button in input type=time");
</script>