1 Tests correct behavior of event.dataTransfer.setData/getData for 'URL', 'text/uri-list' and 'text/plain'
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 --- Test set/get 'URL':
7 PASS getDataResultType is "string"
8 PASS getDataResult is "http://test.com/"
9 --- Test set/get 'URL' with multiple URLs:
10 PASS getDataResultType is "string"
11 PASS getDataResult is "http://test.com/"
12 --- Test set/get 'text/uri-list':
13 PASS getDataResultType is "string"
14 PASS getDataResult is "http://test.com\r\nhttp://check.com"
15 --- Test set/get 'text/uri-list' using '\n':
16 PASS getDataResultType is "string"
17 PASS getDataResult is "http://test.com\nhttp://check.com"
18 --- Test set 'text/uri-list', get 'URL':
19 PASS getDataResultType is "string"
20 PASS getDataResult is "http://test.com/"
21 --- Test set 'URL', get 'text/uri-list':
22 PASS getDataResultType is "string"
23 PASS getDataResult is "http://test.com\r\nhttp://check.com"
24 --- Test set 'text/uri-list', get 'URL', using only '\n':
25 PASS getDataResultType is "string"
26 PASS getDataResult is "http://test.com/"
27 --- Test set/get 'text/uri-list' with comments:
28 PASS getDataResultType is "string"
29 PASS getDataResult is "# comment\r\nhttp://test.com\r\nhttp://check.com"
30 --- Test set 'text/uri-list', get 'URL' with comments:
31 PASS getDataResultType is "string"
32 PASS getDataResult is "http://test.com/"
33 --- Test set 'text/uri-list', get 'URL' with only comments:
34 PASS getDataResultType is "string"
35 PASS getDataResult is ""
36 --- Test set/get 'text/plain':
37 PASS getDataResultType is "string"
38 PASS getDataResult is "Lorem ipsum dolor sit amet."
39 --- Test set 'text/plain', get 'text':
40 PASS getDataResultType is "string"
41 PASS getDataResult is "Lorem ipsum dolor sit amet."
42 --- Test set 'text', get 'text/plain':
43 PASS getDataResultType is "string"
44 PASS getDataResult is "Lorem ipsum dolor sit amet."
45 --- Test set/get 'text':
46 PASS getDataResultType is "string"
47 PASS getDataResult is "Lorem ipsum dolor sit amet."
48 PASS successfullyParsed is true