OLD | NEW |
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> | 4 <script> |
5 | 5 |
6 function buildAccessibilityTree(accessibilityObject, indent) { | 6 function buildAccessibilityTree(accessibilityObject, indent) { |
7 var str = ""; | 7 var str = ""; |
8 for (var i = 0; i < indent; i++) | 8 for (var i = 0; i < indent; i++) |
9 str += " "; | 9 str += " "; |
10 str += accessibilityObject.role; | 10 str += accessibilityObject.role; |
(...skipping 29 matching lines...) Expand all Loading... |
40 description("Make sure that a debug assert is not triggered when constructin
g the accessibility tree for this page."); | 40 description("Make sure that a debug assert is not triggered when constructin
g the accessibility tree for this page."); |
41 | 41 |
42 if (window.accessibilityController) { | 42 if (window.accessibilityController) { |
43 // Build the accessibility tree up until 'End of test' is encountered. | 43 // Build the accessibility tree up until 'End of test' is encountered. |
44 document.body.focus(); | 44 document.body.focus(); |
45 buildAccessibilityTree(accessibilityController.focusedElement, 0); | 45 buildAccessibilityTree(accessibilityController.focusedElement, 0); |
46 } | 46 } |
47 | 47 |
48 </script> | 48 </script> |
49 | 49 |
50 <script src="../fast/js/resources/js-test-post.js"></script> | |
51 </body> | 50 </body> |
52 </html> | 51 </html> |
OLD | NEW |