OLD | NEW |
1 To manually test, drag 'Drag Me' to 'Drop Here' and drop. Several lines that say
'PASS' should appear below. | 1 To manually test, drag 'Drag Me' to 'Drop Here' and drop. Several lines that say
'PASS' should appear below. |
2 | 2 |
3 Drag Me | 3 Drag Me |
4 Drop Here | 4 Drop Here |
5 Drag handler: | 5 Drag handler: |
6 Drop handler: | 6 Drop handler: |
7 Tests drag'n drop and well as DataTransferItemList | 7 Tests drag'n drop and well as DataTransferItemList |
8 | 8 |
9 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 9 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 PASS testDataTransfer.items.length is 4 | 23 PASS testDataTransfer.items.length is 4 |
24 PASS testDataTransfer.items.add("test", "text/plain") is null | 24 PASS testDataTransfer.items.add("test", "text/plain") is null |
25 PASS testDataTransfer.items.length is 4 | 25 PASS testDataTransfer.items.length is 4 |
26 PASS JSON.stringify(expectedTypes) is JSON.stringify(types) | 26 PASS JSON.stringify(expectedTypes) is JSON.stringify(types) |
27 PASS testData is expectedTestData | 27 PASS testData is expectedTestData |
28 PASS testData is expectedTestData | 28 PASS testData is expectedTestData |
29 PASS testData is expectedTestData | 29 PASS testData is expectedTestData |
30 PASS testData is expectedTestData | 30 PASS testData is expectedTestData |
31 Running test with DataTransferItemList drag handler and Legacy drop handler | 31 Running test with DataTransferItemList drag handler and Legacy drop handler |
32 PASS testDataTransfer.items.add() threw exception TypeError: Failed to execute '
add' on 'DataTransferItemList': 1 argument required, but only 0 present.. | 32 PASS testDataTransfer.items.add() threw exception TypeError: Failed to execute '
add' on 'DataTransferItemList': 1 argument required, but only 0 present.. |
| 33 PASS testDataTransfer.items.add(undefined) threw exception TypeError: Failed to
execute 'add' on 'DataTransferItemList': parameter 1 is not of type 'File'.. |
33 PASS testDataTransfer.items.add("sample") threw exception TypeError: Failed to e
xecute 'add' on 'DataTransferItemList': parameter 1 is not of type 'File'.. | 34 PASS testDataTransfer.items.add("sample") threw exception TypeError: Failed to e
xecute 'add' on 'DataTransferItemList': parameter 1 is not of type 'File'.. |
| 35 PASS testDataTransfer.items.add(null) threw exception TypeError: Failed to execu
te 'add' on 'DataTransferItemList': parameter 1 is not of type 'File'.. |
34 PASS testItem.kind is "string" | 36 PASS testItem.kind is "string" |
35 PASS testItem.type is "text/plain" | 37 PASS testItem.type is "text/plain" |
36 PASS testItem.kind is "string" | 38 PASS testItem.kind is "string" |
37 PASS testItem.type is "text/uri-list" | 39 PASS testItem.type is "text/uri-list" |
38 PASS testItem.kind is "string" | 40 PASS testItem.kind is "string" |
39 PASS testItem.type is "text/html" | 41 PASS testItem.type is "text/html" |
40 PASS testItem.kind is "string" | 42 PASS testItem.kind is "string" |
41 PASS testItem.type is "custom-data" | 43 PASS testItem.type is "custom-data" |
42 PASS testDataTransfer.types.length is 4 | 44 PASS testDataTransfer.types.length is 4 |
43 PASS testDataTransfer.types.indexOf("text/plain") >= 0 is true | 45 PASS testDataTransfer.types.indexOf("text/plain") >= 0 is true |
44 PASS testDataTransfer.types.indexOf("text/uri-list") >= 0 is true | 46 PASS testDataTransfer.types.indexOf("text/uri-list") >= 0 is true |
45 PASS testDataTransfer.types.indexOf("text/html") >= 0 is true | 47 PASS testDataTransfer.types.indexOf("text/html") >= 0 is true |
46 PASS testDataTransfer.types.indexOf("custom-data") >= 0 is true | 48 PASS testDataTransfer.types.indexOf("custom-data") >= 0 is true |
47 PASS testDataTransfer.getData("text") is "sample" | 49 PASS testDataTransfer.getData("text") is "sample" |
48 PASS testDataTransfer.getData("url") is "http://www.google.com/" | 50 PASS testDataTransfer.getData("url") is "http://www.google.com/" |
49 PASS testDataTransfer.getData("text/html") is "<em>Markup</em>" | 51 PASS testDataTransfer.getData("text/html") is "<em>Markup</em>" |
50 PASS testDataTransfer.getData("custom-data") is "hello world" | 52 PASS testDataTransfer.getData("custom-data") is "hello world" |
51 Running test with DataTransferItemList drag handler and DataTransferItemList dro
p handler | 53 Running test with DataTransferItemList drag handler and DataTransferItemList dro
p handler |
52 PASS testDataTransfer.items.add() threw exception TypeError: Failed to execute '
add' on 'DataTransferItemList': 1 argument required, but only 0 present.. | 54 PASS testDataTransfer.items.add() threw exception TypeError: Failed to execute '
add' on 'DataTransferItemList': 1 argument required, but only 0 present.. |
| 55 PASS testDataTransfer.items.add(undefined) threw exception TypeError: Failed to
execute 'add' on 'DataTransferItemList': parameter 1 is not of type 'File'.. |
53 PASS testDataTransfer.items.add("sample") threw exception TypeError: Failed to e
xecute 'add' on 'DataTransferItemList': parameter 1 is not of type 'File'.. | 56 PASS testDataTransfer.items.add("sample") threw exception TypeError: Failed to e
xecute 'add' on 'DataTransferItemList': parameter 1 is not of type 'File'.. |
| 57 PASS testDataTransfer.items.add(null) threw exception TypeError: Failed to execu
te 'add' on 'DataTransferItemList': parameter 1 is not of type 'File'.. |
54 PASS testItem.kind is "string" | 58 PASS testItem.kind is "string" |
55 PASS testItem.type is "text/plain" | 59 PASS testItem.type is "text/plain" |
56 PASS testItem.kind is "string" | 60 PASS testItem.kind is "string" |
57 PASS testItem.type is "text/uri-list" | 61 PASS testItem.type is "text/uri-list" |
58 PASS testItem.kind is "string" | 62 PASS testItem.kind is "string" |
59 PASS testItem.type is "text/html" | 63 PASS testItem.type is "text/html" |
60 PASS testItem.kind is "string" | 64 PASS testItem.kind is "string" |
61 PASS testItem.type is "custom-data" | 65 PASS testItem.type is "custom-data" |
62 PASS testDataTransfer.items.length is 4 | 66 PASS testDataTransfer.items.length is 4 |
63 PASS testDataTransfer.items.add("test", "text/plain") is null | 67 PASS testDataTransfer.items.add("test", "text/plain") is null |
64 PASS testDataTransfer.items.length is 4 | 68 PASS testDataTransfer.items.length is 4 |
65 PASS JSON.stringify(expectedTypes) is JSON.stringify(types) | 69 PASS JSON.stringify(expectedTypes) is JSON.stringify(types) |
66 PASS testData is expectedTestData | 70 PASS testData is expectedTestData |
67 PASS testData is expectedTestData | 71 PASS testData is expectedTestData |
68 PASS testData is expectedTestData | 72 PASS testData is expectedTestData |
69 PASS testData is expectedTestData | 73 PASS testData is expectedTestData |
70 PASS successfullyParsed is true | 74 PASS successfullyParsed is true |
71 | 75 |
72 TEST COMPLETE | 76 TEST COMPLETE |
73 | 77 |
OLD | NEW |