blob: 209c8804a8eeb6ef4a2ef960a37d725f8b9b68c1 (
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
|
<!DOCTYPE html>
<html>
<head>
<script src="../../../fast/js/resources/js-test-pre.js"></script>
</head>
<body>
<input id="test" type="week" value="2012-W10">
<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 == 'FocusedUIElementChanged' || notification == 'ValueChanged') {
debug(notification + ' ' + element.helpText + '=' + element.valueDescription);
}
});
testInput.focus();
eventSender.keyDown('\t');
eventSender.keyDown('4');
eventSender.keyDown('upArrow');
window.jsTestIsAsync = true;
window.setTimeout(function() {
debug('');
testInput.remove();
finishJSTest();
}, 1);
}
</script>
<script src="../../../fast/js/resources/js-test-post.js"></script>
</body>
</html>
|