blob: 8036cb30a9303126b5465b47fd0c5e99330db6a7 [file] [log] [blame]
This tests the condition that triggers a 'change' event on file input forms.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Test that the 'change' event is triggered on a single file form when a selected file is changed:
PASS singleFileInput.value is "C:\\fakepath\\foo.txt"
PASS changeDispatched is true
PASS singleFileInput.value is "C:\\fakepath\\bar.txt"
PASS changeDispatched is true
PASS singleFileInput.value is "C:\\fakepath\\bar.txt"
PASS changeDispatched is false
PASS singleFileInput.value is "C:\\fakepath\\foo.txt"
PASS changeDispatched is true
Test that the 'change' event is triggered on a multiple file form when a selected file is changed:
PASS multipleFilesInput.value is "C:\\fakepath\\foo.txt"
PASS changeDispatched is true
PASS multipleFilesInput.value is "C:\\fakepath\\bar.txt"
PASS changeDispatched is true
PASS multipleFilesInput.value is "C:\\fakepath\\bar.txt"
PASS changeDispatched is false
PASS multipleFilesInput.value is "C:\\fakepath\\foo.txt"
PASS changeDispatched is true
Test that the 'change' event is triggered on a multiple file form when selected files are changed:
PASS multipleFilesInput.value is "C:\\fakepath\\foo.txt"
PASS changeDispatched is true
PASS multipleFilesInput.value is "C:\\fakepath\\foo.txt"
PASS changeDispatched is true
PASS multipleFilesInput.value is "C:\\fakepath\\foo.txt"
PASS changeDispatched is true
PASS multipleFilesInput.value is "C:\\fakepath\\foo.txt"
PASS changeDispatched is true
PASS multipleFilesInput.value is "C:\\fakepath\\foo.txt"
PASS changeDispatched is true
PASS multipleFilesInput.value is "C:\\fakepath\\bar.txt"
PASS changeDispatched is true
PASS multipleFilesInput.value is "C:\\fakepath\\bar.txt"
PASS changeDispatched is false
PASS successfullyParsed is true
TEST COMPLETE