Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / img-alt-tag-only-whitespace.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 <script src="../resources/accessibility-helper.js"></script>
6 </head>
7 <body id="body">
8
9 <div tabindex="0" role="group" id="images">
10 <img id="firstimage" alt=" " src="resources/cake.png"><br>
11 <img alt="      " src="resources/cake.png"><br>
12 <img alt="   Image " src="resources/cake.png"><br>
13 </div>
14
15 <p id="description"></p>
16 <div id="console"></div>
17
18 <script>
19
20     description("This tests that images with alt tags that only have white space are ignored.");
21
22     if (window.accessibilityController) {
23
24         document.getElementById("images").focus();
25         var imagesGroup = accessibilityController.focusedElement;
26         shouldBe("imagesGroup.childrenCount", "1");
27         shouldBeEqualToString("platformValueForW3CName(imagesGroup.childAtIndex(0))", "   Image ");
28     }
29
30 </script>
31
32 <script src="../resources/js-test-post.js"></script>
33 </body>
34 </html>