blob: 435535a4638c2cc5a37f3a8bc6de40e4abc1eef8 [file] [log] [blame]
dmazzoni@google.com036a4522012-03-16 18:23:25 +00001<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2<html>
3<head>
mark.lam@apple.coma931ab22013-09-08 01:18:24 +00004<script src="../resources/js-test-pre.js"></script>
dmazzoni@google.com036a4522012-03-16 18:23:25 +00005</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.coma931ab22013-09-08 01:18:24 +000025<script src="../resources/js-test-post.js"></script>
dmazzoni@google.com036a4522012-03-16 18:23:25 +000026</body>
27</html>