blob: 78910619ac5c257a0f2a567614dd60497cc8e160 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
<script src="../resources/accessibility-helper.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", "1");
shouldBeEqualToString("platformValueForW3CName(imagesGroup.childAtIndex(0))", " Image ");
}
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>