blob: a1cb4c68939b8016ad8226cc837248dad5d7ef30 (
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
|
<html>
<html>
<head>
<script src="../fast/js/resources/js-test-pre.js"></script>
</head>
<body id="body">
<input type="image" alt="Submit" src="resources/cake.png" width=100 height=100 id="image1">
<p id="description"></p>
<div id="console"></div>
<script>
if (window.accessibilityController) {
description("This test makes sure that an input image returns its alt tag as the description");
var image1 = document.getElementById("image1").focus();
var img = accessibilityController.focusedElement;
shouldBe("img.description", "'AXDescription: Submit'");
}
</script>
<script src="../fast/js/resources/js-test-post.js"></script>
</body>
</html>
|