OLD | NEW |
1 This tests the basic functionality and properties of DataTransferItems for strin
g data with drag and drop. This test requires DRT. | 1 This tests the basic functionality and properties of DataTransferItems for strin
g data with drag and drop. This test requires DRT. |
2 Lorem ipsum | 2 |
3 Drop text here if you test this manually | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
4 Dragging text in source1: Lorem ipsum | 6 Dragging text in source1: Lorem ipsum |
5 Verifying contents of DataTransferItems... | 7 Verifying contents of DataTransferItems... |
6 items.length: 1 | 8 items.length: 1 |
7 items[0].kind: string | 9 items[0].kind: string |
8 items[0].type: text/plain | 10 items[0].type: text/plain |
9 PASS: "Lorem ipsum" == "Lorem ipsum" | 11 PASS currentItem.getAsString() threw exception TypeError: Not enough arguments. |
| 12 PASS currentItem.getAsString(null) did not throw exception. |
| 13 PASS stringData is "Lorem ipsum" |
10 Dragging text in source2: http://example.com | 14 Dragging text in source2: http://example.com |
11 Verifying contents of DataTransferItems... | 15 Verifying contents of DataTransferItems... |
12 items.length: 1 | 16 items.length: 1 |
13 items[0].kind: string | 17 items[0].kind: string |
14 items[0].type: text/plain | 18 items[0].type: text/plain |
15 PASS: "http://example.com" == "http://example.com" | 19 PASS currentItem.getAsString() threw exception TypeError: Not enough arguments. |
| 20 PASS currentItem.getAsString(null) did not throw exception. |
| 21 PASS stringData is "http://example.com" |
| 22 PASS successfullyParsed is true |
16 | 23 |
| 24 TEST COMPLETE |
| 25 Lorem ipsum |
| 26 Drop text here if you test this manually |
OLD | NEW |