Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / week-multiple-fields / week-multiple-fields-ax-value-changed-notification.html
blob6cfc7b1b11a5b79cabc18e22b9f1b263fe90bce4
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <input id="test" type="week" value="2012-W10">
8 <script>
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.");
15 else {
16 accessibilityController.addNotificationListener(function (element, notification) {
17 if (notification == 'Focus' || notification == 'ValueChanged') {
18 debug(notification + ' ' + element.helpText + '=' + element.valueDescription);
20 });
22 testInput.focus();
23 eventSender.keyDown('\t');
24 eventSender.keyDown('4');
25 eventSender.keyDown('upArrow');
27 window.jsTestIsAsync = true;
29 window.setTimeout(function() {
30 debug('');
31 testInput.remove();
32 finishJSTest();
33 }, 1);
35 </script>
36 </body>
37 </html>