Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: LayoutTests/accessibility/img-alt-tag-only-whitespace.html

Issue 820203002: Support html br element in AX Tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: LineBreakRole Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/accessibility/img-alt-tag-only-whitespace-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body id="body"> 6 <body id="body">
7 7
8 <div tabindex="0" role="group" id="images"> 8 <div tabindex="0" role="group" id="images">
9 <img id="firstimage" alt=" " src="resources/cake.png"><br> 9 <img id="firstimage" alt=" " src="resources/cake.png"><br>
10 <img alt=" " src="resources/cake.png"><br> 10 <img alt=" " src="resources/cake.png"><br>
11 <img alt=" Image " src="resources/cake.png"><br> 11 <img alt=" Image " src="resources/cake.png"><br>
12 </div> 12 </div>
13 13
14 <p id="description"></p> 14 <p id="description"></p>
15 <div id="console"></div> 15 <div id="console"></div>
16 16
17 <script> 17 <script>
18 18
19 description("This tests that images with alt tags that only have white space are ignored."); 19 description("This tests that images with alt tags that only have white space are ignored.");
20 20
21 if (window.accessibilityController) { 21 if (window.accessibilityController) {
22 22
23 document.getElementById("images").focus(); 23 document.getElementById("images").focus();
24 var imagesGroup = accessibilityController.focusedElement; 24 var imagesGroup = accessibilityController.focusedElement;
25 shouldBe("imagesGroup.childrenCount", "1"); 25 shouldBe("imagesGroup.childrenCount", "4");
26 console.log("Image description: " + imagesGroup.childAtIndex(0).descript ion); 26 console.log("Image description: " + imagesGroup.childAtIndex(2).descript ion);
27 } 27 }
28 28
29 </script> 29 </script>
30 30
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/accessibility/img-alt-tag-only-whitespace-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698