blob: 818d2db77e5628d9a1a0cc66c179e7dbdc318324 (
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
|
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test.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 == 'Focus' || notification == 'ValueChanged') {
debug(notification + ' ' + element.deprecatedHelpText + '=' + 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>
</body>
</html>
|