Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: LayoutTests/fast/events/clipboard-dataTransferItemList-expected.txt

Issue 22850002: Make DataTransferItemList indexed getter anonymous (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nits Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 To manually test, press your browser shortcut for copy and then for paste. Sever al lines that say 'PASS' should appear below. 1 To manually test, press your browser shortcut for copy and then for paste. Sever al lines that say 'PASS' should appear below.
2 2
3 Copy handler: 3 Copy handler:
4 Paste handler: 4 Paste handler:
5 Tests copy / paste and DataTransferItemList
6
7 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
8
9
5 Running test with Legacy copy handler and Legacy paste handler 10 Running test with Legacy copy handler and Legacy paste handler
6 PASS: 4 === 4 11 PASS testDataTransfer.types.length is 4
7 PASS: sample === sample 12 PASS testDataTransfer.types.indexOf("text/plain") >= 0 is true
8 PASS: http://www.google.com/ === http://www.google.com/ 13 PASS testDataTransfer.types.indexOf("text/uri-list") >= 0 is true
9 PASS: <em>Markup</em> === <em>Markup</em> 14 PASS testDataTransfer.types.indexOf("text/html") >= 0 is true
10 PASS: hello world === hello world 15 PASS testDataTransfer.types.indexOf("custom-data") >= 0 is true
16 PASS testDataTransfer.getData("text") is "sample"
17 PASS testDataTransfer.getData("url") is "http://www.google.com/"
18 PASS testDataTransfer.getData("text/html") is "<em>Markup</em>"
19 PASS testDataTransfer.getData("custom-data") is "hello world"
11 Running test with Legacy copy handler and DataTransferItemList paste handler 20 Running test with Legacy copy handler and DataTransferItemList paste handler
12 PASS: 4 === 4 21 PASS testDataTransfer.items.length is 4
13 PASS: [{"kind":"string","type":"custom-data"},{"kind":"string","type":"text/html "},{"kind":"string","type":"text/plain"},{"kind":"string","type":"text/uri-list" }] === [{"kind":"string","type":"custom-data"},{"kind":"string","type":"text/htm l"},{"kind":"string","type":"text/plain"},{"kind":"string","type":"text/uri-list "}] 22 PASS JSON.stringify(expectedTypes) is JSON.stringify(types)
14 PASS: hello world === hello world 23 PASS testData is expectedTestData
15 PASS: <em>Markup</em> === <em>Markup</em> 24 PASS testData is expectedTestData
16 PASS: sample === sample 25 PASS testData is expectedTestData
17 PASS: http://www.google.com/ === http://www.google.com/ 26 PASS testData is expectedTestData
18 Running test with DataTransferItemList copy handler and Legacy paste handler 27 Running test with DataTransferItemList copy handler and Legacy paste handler
19 PASS: 4 === 4 28 PASS testDataTransfer.items.item is undefined.
20 PASS: sample === sample 29 PASS testDataTransfer.types.length is 4
21 PASS: http://www.google.com/ === http://www.google.com/ 30 PASS testDataTransfer.types.indexOf("text/plain") >= 0 is true
22 PASS: <em>Markup</em> === <em>Markup</em> 31 PASS testDataTransfer.types.indexOf("text/uri-list") >= 0 is true
23 PASS: hello world === hello world 32 PASS testDataTransfer.types.indexOf("text/html") >= 0 is true
33 PASS testDataTransfer.types.indexOf("custom-data") >= 0 is true
34 PASS testDataTransfer.getData("text") is "sample"
35 PASS testDataTransfer.getData("url") is "http://www.google.com/"
36 PASS testDataTransfer.getData("text/html") is "<em>Markup</em>"
37 PASS testDataTransfer.getData("custom-data") is "hello world"
24 Running test with DataTransferItemList copy handler and DataTransferItemList pas te handler 38 Running test with DataTransferItemList copy handler and DataTransferItemList pas te handler
25 PASS: 4 === 4 39 PASS testDataTransfer.items.item is undefined.
26 PASS: [{"kind":"string","type":"custom-data"},{"kind":"string","type":"text/html "},{"kind":"string","type":"text/plain"},{"kind":"string","type":"text/uri-list" }] === [{"kind":"string","type":"custom-data"},{"kind":"string","type":"text/htm l"},{"kind":"string","type":"text/plain"},{"kind":"string","type":"text/uri-list "}] 40 PASS testDataTransfer.items.length is 4
27 PASS: hello world === hello world 41 PASS JSON.stringify(expectedTypes) is JSON.stringify(types)
28 PASS: <em>Markup</em> === <em>Markup</em> 42 PASS testData is expectedTestData
29 PASS: sample === sample 43 PASS testData is expectedTestData
30 PASS: http://www.google.com/ === http://www.google.com/ 44 PASS testData is expectedTestData
45 PASS testData is expectedTestData
46 PASS successfullyParsed is true
31 47
48 TEST COMPLETE
49
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/clipboard-dataTransferItemList.html ('k') | Source/core/dom/DataTransferItemList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698