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 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 id="file-input" style="display:run-in;" type="file"/> | 8 <input id="file-input" style="display:run-in;" type="file"/> |
9 <dl> | 9 <dl> |
10 | 10 |
11 <p id="description"></p> | 11 <p id="description"></p> |
12 <div id="console"></div> | 12 <div id="console"></div> |
13 | 13 |
14 <script> | 14 <script> |
15 description("This can cause a crash if AccessibilityRenderObject assumes tha
t a file input element's renderer must be type LayoutFileUploadControl, but in c
orner cases (display:run-in) this may not be true."); | 15 description("This can cause a crash if AccessibilityRenderObject assumes tha
t a file input element's renderer must be type LayoutFileUploadControl, but in c
orner cases (display:run-in) this may not be true."); |
16 | 16 |
17 if (window.accessibilityController) { | 17 if (window.accessibilityController) { |
18 document.getElementById("file-input").focus(); | 18 document.getElementById("file-input").focus(); |
19 var element = accessibilityController.focusedElement; | 19 var element = accessibilityController.focusedElement; |
20 var title = element.deprecatedTitle; | 20 var title = element.name; |
21 shouldBeNonNull("title"); | 21 shouldBeNonNull("title"); |
22 } | 22 } |
23 </script> | 23 </script> |
24 | 24 |
25 </body> | 25 </body> |
26 </html> | 26 </html> |
OLD | NEW |