<https://webkit.org/b/120032> Add DRT test to ensure that AccessibilityObject::stringValue()
of <input type="file"> is meaningful
Reviewed by Chris Fleizach.
Adds a DRT test to ensure that AccessibilityObject::stringValue() returns a meaningful string
for a single file- and multiple files-file upload control.
* accessibility/file-upload-button-stringvalue.html: Added.
* platform/mac-wk2/accessibility/file-upload-button-stringvalue-expected.txt: Added.
* platform/mac/accessibility/file-upload-button-stringvalue-expected.txt: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154332 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/platform/mac/accessibility/file-upload-button-stringvalue-expected.txt b/LayoutTests/platform/mac/accessibility/file-upload-button-stringvalue-expected.txt
new file mode 100644
index 0000000..9f9ea78
--- /dev/null
+++ b/LayoutTests/platform/mac/accessibility/file-upload-button-stringvalue-expected.txt
@@ -0,0 +1,16 @@
+
+This tests the value of stringValue for a single file- and multiple files-<input type="file"> control.
+
+
+Default value (no files selected):
+accessibilityController.accessibleElementById("singleFileUpload").stringValue: AXValue: no file selected
+accessibilityController.accessibleElementById("multipleFileUpload").stringValue: AXValue: no files selected
+
+Drag and drop a single file:
+accessibilityController.accessibleElementById("singleFileUpload").stringValue: AXValue: file1.txt
+accessibilityController.accessibleElementById("multipleFileUpload").stringValue: AXValue: file1.txt
+
+Drag and drop two files:
+accessibilityController.accessibleElementById("singleFileUpload").stringValue: AXValue: no file selected
+accessibilityController.accessibleElementById("multipleFileUpload").stringValue: AXValue: 2 files
+