1 This file tests the basic functionality and properties of DataTransferItems. This test requires DRT.
2 Populating DataTransferItems...
3 Caught exception "NotSupportedError: Failed to execute 'add' on 'DataTransferItemList': An item already exists for type 'text/plain'." as expected.
4 Verifying contents of DataTransferItems...
7 items[0].type: text/plain
9 items[1].type: text/html
10 Checking if items past the end of the collection can be indexed:
11 items[2] is undefined: undefined
12 Checking that a read-only DataTransferItems cannot be mutated...
15 items[0].type: text/plain
17 items[1].type: text/html
18 items[2] is undefined: undefined
19 Testing if DataTransferItems can be accessed outside an event handler...
20 DataTransferItem accessed outside event handler!
21 copy: items[0] value: Hello World!
22 copy: items[1] value: <b>Hello World!
23 paste: items[0] value: This file tests the basic functionality and properties of DataTransferItems. This test requires DRT.
24 paste: items[1] value: <span style="color: rgb(0, 0, 0); font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;">This file tests the basic functionality and properties of DataTransferItems. This test requires DRT.</span>