blob: 3bc23866dba7e6b93b876758c4f3b4b595ab040e [file] [log] [blame]
CONSOLE WARNING: line 10: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
Test for slicing a dragged file and sending it via XMLHttpRequest.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Test slicing and sending an empty file.
PASS event.dataTransfer contains a File object on drop.
PASS subfile.size is 0
PASS subfile.type is ""
PASS Expected response data received: OK
Test slicing and sending a small file.
PASS event.dataTransfer contains a File object on drop.
PASS subfile.size is 4
PASS subfile.type is ""
PASS Expected response data received: OK
PASS event.dataTransfer contains a File object on drop.
PASS subfile.size is 8
PASS subfile.type is "type/foo"
PASS Expected response data received: OK
PASS event.dataTransfer contains a File object on drop.
PASS subfile.size is 0
PASS subfile.type is "type/bar"
PASS Expected response data received: OK
Test slicing and sending a big file.
PASS event.dataTransfer contains a File object on drop.
PASS subfile.size is 40
PASS subfile.type is ""
PASS Expected response data received: OK
PASS event.dataTransfer contains a File object on drop.
PASS subfile.size is 3000
PASS subfile.type is ""
PASS Expected response data received: OK
PASS event.dataTransfer contains a File object on drop.
PASS subfile.size is 9242
PASS subfile.type is ""
PASS Expected response data received: OK
Test slicing and sending a file that has been changed right before sending.
PASS event.dataTransfer contains a File object on drop.
PASS subfile.size is 5
PASS subfile.type is ""
PASS Expected response data received: OK
PASS Expected exception thrown: NetworkError
PASS successfullyParsed is true
TEST COMPLETE