| 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 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 Dragging text in source1: Lorem ipsum | 6 Dragging text in source1: Lorem ipsum |
| 7 Verifying contents of DataTransferItems... | 7 Verifying contents of DataTransferItems... |
| 8 items.length: 1 | 8 items.length: 1 |
| 9 items[0].kind: string | 9 items[0].kind: string |
| 10 items[0].type: text/plain | 10 items[0].type: text/plain |
| 11 PASS currentItem.getAsString() threw exception TypeError: Not enough arguments. | 11 PASS currentItem.getAsString() threw exception TypeError: Failed to execute 'get
AsString' on 'DataTransferItem': 1 argument required, but only 0 present.. |
| 12 PASS currentItem.getAsString(null) did not throw exception. | 12 PASS currentItem.getAsString(null) did not throw exception. |
| 13 PASS stringData is "Lorem ipsum" | 13 PASS stringData is "Lorem ipsum" |
| 14 Dragging text in source2: http://example.com | 14 Dragging text in source2: http://example.com |
| 15 Verifying contents of DataTransferItems... | 15 Verifying contents of DataTransferItems... |
| 16 items.length: 1 | 16 items.length: 1 |
| 17 items[0].kind: string | 17 items[0].kind: string |
| 18 items[0].type: text/plain | 18 items[0].type: text/plain |
| 19 PASS currentItem.getAsString() threw exception TypeError: Not enough arguments. | 19 PASS currentItem.getAsString() threw exception TypeError: Failed to execute 'get
AsString' on 'DataTransferItem': 1 argument required, but only 0 present.. |
| 20 PASS currentItem.getAsString(null) did not throw exception. | 20 PASS currentItem.getAsString(null) did not throw exception. |
| 21 PASS stringData is "http://example.com" | 21 PASS stringData is "http://example.com" |
| 22 PASS successfullyParsed is true | 22 PASS successfullyParsed is true |
| 23 | 23 |
| 24 TEST COMPLETE | 24 TEST COMPLETE |
| 25 Lorem ipsum | 25 Lorem ipsum |
| 26 Drop text here if you test this manually | 26 Drop text here if you test this manually |
| OLD | NEW |