blob: 5a57e284b895d8e5a2eade8d8e5eaaa459553782 [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 ignored.");
if (window.accessibilityController) {
document.getElementById("images").focus();
var imagesGroup = accessibilityController.focusedElement;
shouldBe("imagesGroup.childrenCount", "4");
console.log("Image description: " + imagesGroup.childAtIndex(2).name);
}
</script>
</body>
</html>