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