blob: ab0f0dcc69e35f08442dc28390b30220f0f27865 [file] [log] [blame]
This tests the basic functionality and properties of DataTransferItems for files with drag and drop. This test requires DRT.
Drop files here if you test this manually
Dragging file: resources/mozilla.gif
Dragging file: resources/drop-file-svg.svg
Dragging file: resources/copy-backslash-euc.html
Dragging file: resources/test_directory
Verifying contents of DataTransferItems...
PASS: "4" == "4"
PASS: "file" == "file"
entry: /mozilla.gif [file]
PASS: "/mozilla.gif" == "/mozilla.gif"
PASS: "false" == "false"
PASS: "file" == "file"
entry: /drop-file-svg.svg [file]
PASS: "/drop-file-svg.svg" == "/drop-file-svg.svg"
PASS: "false" == "false"
PASS: "file" == "file"
entry: /copy-backslash-euc.html [file]
PASS: "/copy-backslash-euc.html" == "/copy-backslash-euc.html"
PASS: "false" == "false"
PASS: "file" == "file"
entry: /test_directory [dir]
PASS: "/test_directory" == "/test_directory"
PASS: "true" == "true"
PASS: "2593" == "2593"
PASS: "109" == "109"
PASS: "478" == "478"