1 To manually test, press your browser shortcut for copy and then for paste. Several lines that say 'PASS' should appear below.
5 Tests copy / paste and DataTransferItemList
7 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
10 Running test with Legacy copy handler and Legacy paste handler
11 PASS testDataTransfer.getData("custom-data") is "hello world"
12 PASS testDataTransfer.clearData(nonConvertibleToString) threw exception Exception in toString().
13 PASS testDataTransfer.getData("custom-data") is "hello world"
14 PASS testDataTransfer.types.length is 4
15 PASS testDataTransfer.types.indexOf("text/plain") >= 0 is true
16 PASS testDataTransfer.types.indexOf("text/uri-list") >= 0 is true
17 PASS testDataTransfer.types.indexOf("text/html") >= 0 is true
18 PASS testDataTransfer.types.indexOf("custom-data") >= 0 is true
19 PASS testDataTransfer.getData("text") is "sample"
20 PASS testDataTransfer.getData("url") is "http://www.google.com/"
21 PASS testDataTransfer.getData("text/html") is "<em>Markup</em>"
22 PASS testDataTransfer.getData("custom-data") is "hello world"
23 Running test with Legacy copy handler and DataTransferItemList paste handler
24 PASS testDataTransfer.getData("custom-data") is "hello world"
25 PASS testDataTransfer.clearData(nonConvertibleToString) threw exception Exception in toString().
26 PASS testDataTransfer.getData("custom-data") is "hello world"
27 PASS testDataTransfer.items.length is 4
28 PASS JSON.stringify(expectedTypes) is JSON.stringify(types)
29 PASS testData is expectedTestData
30 PASS testData is expectedTestData
31 PASS testData is expectedTestData
32 PASS testData is expectedTestData
33 Running test with DataTransferItemList copy handler and Legacy paste handler
34 PASS testDataTransfer.items.item is undefined.
35 PASS testDataTransfer.types.length is 4
36 PASS testDataTransfer.types.indexOf("text/plain") >= 0 is true
37 PASS testDataTransfer.types.indexOf("text/uri-list") >= 0 is true
38 PASS testDataTransfer.types.indexOf("text/html") >= 0 is true
39 PASS testDataTransfer.types.indexOf("custom-data") >= 0 is true
40 PASS testDataTransfer.getData("text") is "sample"
41 PASS testDataTransfer.getData("url") is "http://www.google.com/"
42 PASS testDataTransfer.getData("text/html") is "<em>Markup</em>"
43 PASS testDataTransfer.getData("custom-data") is "hello world"
44 Running test with DataTransferItemList copy handler and DataTransferItemList paste handler
45 PASS testDataTransfer.items.item is undefined.
46 PASS testDataTransfer.items.length is 4
47 PASS JSON.stringify(expectedTypes) is JSON.stringify(types)
48 PASS testData is expectedTestData
49 PASS testData is expectedTestData
50 PASS testData is expectedTestData
51 PASS testData is expectedTestData
52 PASS successfullyParsed is true