[go: nahoru, domu]

blob: bd5da91ff40159abb8df48340439e3b20ea110b4 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/js-test.js"></script>
</head>
<body id="body">
<div tabindex="0" role="group" id="images">
<img id="firstimage" alt=" " src="resources/cake.png"><br>
<img alt=" " src="resources/cake.png"><br>
<img alt=" Image " src="resources/cake.png"><br>
</div>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that images with alt tags that only have white space are not ignored.");
if (window.accessibilityController) {
document.getElementById("images").focus();
var imagesGroup = accessibilityController.focusedElement;
shouldBe("imagesGroup.childrenCount", "6");
console.log("Image description: " + imagesGroup.childAtIndex(4).name);
}
</script>
</body>
</html>