summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/http/tests/local/fileapi/send-sliced-dragged-file-expected.txt
blob: a068ec313cefc3a4b7082c8066da000b86c018ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
CONSOLE WARNING: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://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