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 |
11 | 11 |
12 Running test with Legacy drag handler and Legacy drop handler | 12 Running test with Legacy drag handler and Legacy drop handler |
13 PASS testDataTransfer.types.length is 4 | 13 PASS testDataTransfer.types.length is 4 |
14 PASS testDataTransfer.types.indexOf("text/plain") >= 0 is true | 14 PASS testDataTransfer.types.indexOf("text/plain") >= 0 is true |
15 PASS testDataTransfer.types.indexOf("text/uri-list") >= 0 is true | 15 PASS testDataTransfer.types.indexOf("text/uri-list") >= 0 is true |
16 PASS testDataTransfer.types.indexOf("text/html") >= 0 is true | 16 PASS testDataTransfer.types.indexOf("text/html") >= 0 is true |
17 PASS testDataTransfer.types.indexOf("custom-data") >= 0 is true | 17 PASS testDataTransfer.types.indexOf("custom-data") >= 0 is true |
18 PASS testDataTransfer.getData("text") is "sample" | 18 PASS testDataTransfer.getData("text") is "sample" |
19 PASS testDataTransfer.getData("url") is "http://www.google.com/" | 19 PASS testDataTransfer.getData("url") is "http://www.google.com/" |
20 PASS testDataTransfer.getData("text/html") is "<em>Markup</em>" | 20 PASS testDataTransfer.getData("text/html") is "<em>Markup</em>" |
21 PASS testDataTransfer.getData("custom-data") is "hello world" | 21 PASS testDataTransfer.getData("custom-data") is "hello world" |
22 Running test with Legacy drag handler and DataTransferItemList drop handler | 22 Running test with Legacy drag handler and DataTransferItemList drop handler |
23 PASS testDataTransfer.items.length is 4 | 23 PASS testDataTransfer.items.length is 4 |
| 24 PASS testDataTransfer.items.add("test", "text/plain") is null |
| 25 PASS testDataTransfer.items.length is 4 |
24 PASS JSON.stringify(expectedTypes) is JSON.stringify(types) | 26 PASS JSON.stringify(expectedTypes) is JSON.stringify(types) |
25 PASS testData is expectedTestData | 27 PASS testData is expectedTestData |
26 PASS testData is expectedTestData | 28 PASS testData is expectedTestData |
27 PASS testData is expectedTestData | 29 PASS testData is expectedTestData |
28 PASS testData is expectedTestData | 30 PASS testData is expectedTestData |
29 Running test with DataTransferItemList drag handler and Legacy drop handler | 31 Running test with DataTransferItemList drag handler and Legacy drop handler |
30 PASS testDataTransfer.items.add() threw exception TypeError: Not enough argument
s. | 32 PASS testDataTransfer.items.add() threw exception TypeError: Not enough argument
s. |
31 PASS testDataTransfer.items.add("sample") threw exception TypeError: Type error. | 33 PASS testDataTransfer.items.add("sample") threw exception TypeError: Type error. |
| 34 PASS testItem.kind is "string" |
| 35 PASS testItem.type is "text/plain" |
| 36 PASS testItem.kind is "string" |
| 37 PASS testItem.type is "text/uri-list" |
| 38 PASS testItem.kind is "string" |
| 39 PASS testItem.type is "text/html" |
| 40 PASS testItem.kind is "string" |
| 41 PASS testItem.type is "custom-data" |
32 PASS testDataTransfer.types.length is 4 | 42 PASS testDataTransfer.types.length is 4 |
33 PASS testDataTransfer.types.indexOf("text/plain") >= 0 is true | 43 PASS testDataTransfer.types.indexOf("text/plain") >= 0 is true |
34 PASS testDataTransfer.types.indexOf("text/uri-list") >= 0 is true | 44 PASS testDataTransfer.types.indexOf("text/uri-list") >= 0 is true |
35 PASS testDataTransfer.types.indexOf("text/html") >= 0 is true | 45 PASS testDataTransfer.types.indexOf("text/html") >= 0 is true |
36 PASS testDataTransfer.types.indexOf("custom-data") >= 0 is true | 46 PASS testDataTransfer.types.indexOf("custom-data") >= 0 is true |
37 PASS testDataTransfer.getData("text") is "sample" | 47 PASS testDataTransfer.getData("text") is "sample" |
38 PASS testDataTransfer.getData("url") is "http://www.google.com/" | 48 PASS testDataTransfer.getData("url") is "http://www.google.com/" |
39 PASS testDataTransfer.getData("text/html") is "<em>Markup</em>" | 49 PASS testDataTransfer.getData("text/html") is "<em>Markup</em>" |
40 PASS testDataTransfer.getData("custom-data") is "hello world" | 50 PASS testDataTransfer.getData("custom-data") is "hello world" |
41 Running test with DataTransferItemList drag handler and DataTransferItemList dro
p handler | 51 Running test with DataTransferItemList drag handler and DataTransferItemList dro
p handler |
42 PASS testDataTransfer.items.add() threw exception TypeError: Not enough argument
s. | 52 PASS testDataTransfer.items.add() threw exception TypeError: Not enough argument
s. |
43 PASS testDataTransfer.items.add("sample") threw exception TypeError: Type error. | 53 PASS testDataTransfer.items.add("sample") threw exception TypeError: Type error. |
| 54 PASS testItem.kind is "string" |
| 55 PASS testItem.type is "text/plain" |
| 56 PASS testItem.kind is "string" |
| 57 PASS testItem.type is "text/uri-list" |
| 58 PASS testItem.kind is "string" |
| 59 PASS testItem.type is "text/html" |
| 60 PASS testItem.kind is "string" |
| 61 PASS testItem.type is "custom-data" |
| 62 PASS testDataTransfer.items.length is 4 |
| 63 PASS testDataTransfer.items.add("test", "text/plain") is null |
44 PASS testDataTransfer.items.length is 4 | 64 PASS testDataTransfer.items.length is 4 |
45 PASS JSON.stringify(expectedTypes) is JSON.stringify(types) | 65 PASS JSON.stringify(expectedTypes) is JSON.stringify(types) |
46 PASS testData is expectedTestData | 66 PASS testData is expectedTestData |
47 PASS testData is expectedTestData | 67 PASS testData is expectedTestData |
48 PASS testData is expectedTestData | 68 PASS testData is expectedTestData |
49 PASS testData is expectedTestData | 69 PASS testData is expectedTestData |
50 PASS successfullyParsed is true | 70 PASS successfullyParsed is true |
51 | 71 |
52 TEST COMPLETE | 72 TEST COMPLETE |
53 | 73 |
OLD | NEW |