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> | |
5 | |
6 function buildAccessibilityTree(accessibilityObject) { | |
7 accessibilityObject.isEnabled | |
8 | |
9 var count = accessibilityObject.childrenCount; | |
10 for (var i = 0; i < count; ++i) | |
11 buildAccessibilityTree(accessibilityObject.childAtIndex(i)); | |
12 } | |
13 </script> | |
14 <script src="../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
| 5 <script src="../resources/accessibility-helper.js"></script> |
15 </head> | 6 </head> |
16 <body> | 7 <body> |
17 | 8 |
18 <table summary="table"> | 9 <table summary="table"> |
19 <thead> | 10 <thead> |
20 </thead> | 11 </thead> |
21 <tr><td>1</td><td>2</td></tr> | 12 <tr><td>1</td><td>2</td></tr> |
22 </table> | 13 </table> |
23 | 14 |
| 15 <p>End of test</p> |
24 <p id="description"></p> | 16 <p id="description"></p> |
25 <div id="console"></div> | 17 <div id="console"></div> |
26 | 18 |
27 <script> | 19 <script> |
28 description("Construct accessibility objects for a table with an empty threa
d tag. This can cause a crash."); | 20 description("Construct accessibility objects for a table with an empty threa
d tag. This can cause a crash."); |
29 | 21 |
30 if (window.accessibilityController) { | 22 if (window.accessibilityController) { |
31 document.body.focus(); | 23 document.body.focus(); |
32 buildAccessibilityTree(accessibilityController.focusedElement); | 24 buildAccessibilityTree(accessibilityController.focusedElement, 0, 0, ['A
XColumn', 'AXTableHeaderContainer']); |
33 } | 25 } |
34 | 26 |
35 </script> | 27 </script> |
36 | 28 |
37 </body> | 29 </body> |
38 </html> | 30 </html> |
OLD | NEW |