4 <script src=
"../../../resources/js-test.js"></script>
7 <input id=
"test" type=
"datetime-local" value=
"2012-10-09T12:34:56">
9 description('This test checks value changed accessibility notifications.');
11 var testInput
= document
.getElementById('test');
13 if (!window
.accessibilityController
|| !window
.eventSender
)
14 debug('Please run inside DRT or WRT.');
16 accessibilityController
.addNotificationListener(function (element
, notification
) {
17 if (notification
== 'Focus' || notification
== 'ValueChanged') {
18 debug(notification
+ ' ' + element
.helpText
+ '=' + element
.valueDescription
);
23 eventSender
.keyDown('\t');
24 eventSender
.keyDown('4');
25 eventSender
.keyDown('upArrow');
26 eventSender
.keyDown('\t');
27 eventSender
.keyDown('2');
28 eventSender
.keyDown('downArrow');
30 window
.jsTestIsAsync
= true;
32 window
.setTimeout(function() {
34 testInput
.parentNode
.removeChild(testInput
);