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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/inline-text-input.html

Issue 1435113003: Make use of new AX name calc in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix issue with ariaTextAlternative Created 5 years, 1 month 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
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> 6 <body>
7 7
8 <input type="text" id="input" value="Value"> 8 <input type="text" id="input" value="Value">
9 9
10 <p id="description"></p> 10 <p id="description"></p>
(...skipping 13 matching lines...) Expand all
24 for (var i = 0; i < axObject.childrenCount; i++) 24 for (var i = 0; i < axObject.childrenCount; i++)
25 result = result.concat(findAllDescendantsWithRole(axObject.child AtIndex(i), role)); 25 result = result.concat(findAllDescendantsWithRole(axObject.child AtIndex(i), role));
26 return result; 26 return result;
27 } 27 }
28 28
29 var axInput = accessibilityController.accessibleElementById('input'); 29 var axInput = accessibilityController.accessibleElementById('input');
30 var axDiv = axInput.childAtIndex(0); 30 var axDiv = axInput.childAtIndex(0);
31 var axStaticText = axDiv.childAtIndex(0); 31 var axStaticText = axDiv.childAtIndex(0);
32 var axInlineTextBox = axStaticText.childAtIndex(0); 32 var axInlineTextBox = axStaticText.childAtIndex(0);
33 shouldBe("axInlineTextBox.role", "'AXRole: AXInlineTextBox'"); 33 shouldBe("axInlineTextBox.role", "'AXRole: AXInlineTextBox'");
34 shouldBe("axInlineTextBox.stringValue", "'AXValue: Value'"); 34 shouldBe("axInlineTextBox.name", "'Value'");
35 } 35 }
36 </script> 36 </script>
37 37
38 </body> 38 </body>
39 </html> 39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698