dmazzoni@google.com | 036a452 | 2012-03-16 18:23:25 +0000 | [diff] [blame] | 1 | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 | <html> |
| 3 | <head> |
mark.lam@apple.com | a931ab2 | 2013-09-08 01:18:24 +0000 | [diff] [blame] | 4 | <script src="../resources/js-test-pre.js"></script> |
dmazzoni@google.com | 036a452 | 2012-03-16 18:23:25 +0000 | [diff] [blame] | 5 | </head> |
| 6 | <body> |
| 7 | |
| 8 | <input id="file-input" style="display:run-in;" type="file"/> |
| 9 | <dl> |
| 10 | |
| 11 | <p id="description"></p> |
| 12 | <div id="console"></div> |
| 13 | |
| 14 | <script> |
| 15 | description("This can cause a crash if AccessibilityRenderObject assumes that a file input element's renderer must be type RenderFileUploadControl, but in corner cases (display:run-in) this may not be true."); |
| 16 | |
| 17 | if (window.accessibilityController) { |
| 18 | document.getElementById("file-input").focus(); |
| 19 | var element = accessibilityController.focusedElement; |
| 20 | var title = element.title; |
| 21 | shouldBeNonNull("title"); |
| 22 | } |
| 23 | </script> |
| 24 | |
mark.lam@apple.com | a931ab2 | 2013-09-08 01:18:24 +0000 | [diff] [blame] | 25 | <script src="../resources/js-test-post.js"></script> |
dmazzoni@google.com | 036a452 | 2012-03-16 18:23:25 +0000 | [diff] [blame] | 26 | </body> |
| 27 | </html> |