blob: 9b99a01afd475d3f18a0819ee0489c4c6b70beca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test.js"></script>
</head>
<body>
<input id="test" type="datetime-local" value="2012-10-09T12:34:56">
<script>
description('This test checks value changed accessibility notifications.');
var testInput = document.getElementById('test');
if (!window.accessibilityController || !window.eventSender)
debug('Please run inside DRT or WRT.');
else {
accessibilityController.addNotificationListener(function (element, notification) {
if (notification == 'Focus' || notification == 'ValueChanged') {
debug(notification + ' ' + element.description + '=' + element.valueDescription);
}
});
testInput.focus();
eventSender.keyDown('\t');
eventSender.keyDown('4');
eventSender.keyDown('upArrow');
eventSender.keyDown('\t');
eventSender.keyDown('2');
eventSender.keyDown('downArrow');
window.jsTestIsAsync = true;
window.setTimeout(function() {
debug('');
testInput.parentNode.removeChild(testInput);
finishJSTest();
}, 1);
}
</script>
</body>
</html>
|