blob: 3d91563e2e7cbbb3594c73699449ef5eef5fba29 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body id="body">
<input type="file" id="fileupload">
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that a file upload button will have a specific subrole and a title that matches the files selected.");
if (window.accessibilityController) {
var uploadButton = accessibilityController.accessibleElementById("fileupload");
shouldBe("uploadButton.subrole", "'AXSubrole: AXFileUploadButton'");
shouldBe("uploadButton.roleDescription", "'AXRoleDescription: file upload button'");
shouldBe("uploadButton.title", "'AXTitle: no file selected'");
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>