blob: e7790f3436256945b8e506a941bfa88496b4037b [file] [log] [blame]
This tests the files attribute in file input forms
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS file1.files = "foo" threw exception TypeError: The HTMLInputElement.files attribute must be an instance of FileList.
PASS file1.files.length is 1
PASS file1.files.item(0).name is "foo.txt"
PASS file1.files.length is 1
PASS file1.files.item(0).name is "foo.txt"
PASS file1.files.length is 1
PASS file1.files.item(0).name is "bar.txt"
PASS successfullyParsed is true
TEST COMPLETE