[go: nahoru, domu]

blob: 7c8e0fd6fb9f8b4c74373fda762751066c94d0fd [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/js-test.js"></script>
</head>
<body>
<input id="file-input" style="display:run-in;" type="file"/>
<dl>
<p id="description"></p>
<div id="console"></div>
<script>
description("This can cause a crash if AccessibilityRenderObject assumes that a file input element's renderer must be type LayoutFileUploadControl, but in corner cases (display:run-in) this may not be true.");
if (window.accessibilityController) {
document.getElementById("file-input").focus();
var element = accessibilityController.focusedElement;
var title = element.name;
shouldBeNonNull("title");
}
</script>
</body>
</html>