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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/events/clipboard-dataTransferItemList-expected.txt
diff --git a/LayoutTests/fast/events/clipboard-dataTransferItemList-expected.txt b/LayoutTests/fast/events/clipboard-dataTransferItemList-expected.txt
index f6e8b93e8f1914e62e1212b5db2d833f3f7a4399..2d2f26115503a3a3664d5f4ba23e9b1cc7aa94b1 100644
--- a/LayoutTests/fast/events/clipboard-dataTransferItemList-expected.txt
+++ b/LayoutTests/fast/events/clipboard-dataTransferItemList-expected.txt
@@ -2,30 +2,48 @@ To manually test, press your browser shortcut for copy and then for paste. Sever
Copy handler:
Paste handler:
+Tests copy / paste and DataTransferItemList
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
Running test with Legacy copy handler and Legacy paste handler
-PASS: 4 === 4
-PASS: sample === sample
-PASS: http://www.google.com/ === http://www.google.com/
-PASS: <em>Markup</em> === <em>Markup</em>
-PASS: hello world === hello world
+PASS testDataTransfer.types.length is 4
+PASS testDataTransfer.types.indexOf("text/plain") >= 0 is true
+PASS testDataTransfer.types.indexOf("text/uri-list") >= 0 is true
+PASS testDataTransfer.types.indexOf("text/html") >= 0 is true
+PASS testDataTransfer.types.indexOf("custom-data") >= 0 is true
+PASS testDataTransfer.getData("text") is "sample"
+PASS testDataTransfer.getData("url") is "http://www.google.com/"
+PASS testDataTransfer.getData("text/html") is "<em>Markup</em>"
+PASS testDataTransfer.getData("custom-data") is "hello world"
Running test with Legacy copy handler and DataTransferItemList paste handler
-PASS: 4 === 4
-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/html"},{"kind":"string","type":"text/plain"},{"kind":"string","type":"text/uri-list"}]
-PASS: hello world === hello world
-PASS: <em>Markup</em> === <em>Markup</em>
-PASS: sample === sample
-PASS: http://www.google.com/ === http://www.google.com/
+PASS testDataTransfer.items.length is 4
+PASS JSON.stringify(expectedTypes) is JSON.stringify(types)
+PASS data is expectedData
+PASS data is expectedData
+PASS data is expectedData
+PASS data is expectedData
Running test with DataTransferItemList copy handler and Legacy paste handler
-PASS: 4 === 4
-PASS: sample === sample
-PASS: http://www.google.com/ === http://www.google.com/
-PASS: <em>Markup</em> === <em>Markup</em>
-PASS: hello world === hello world
+PASS testDataTransfer.items.item is undefined.
+PASS testDataTransfer.types.length is 4
+PASS testDataTransfer.types.indexOf("text/plain") >= 0 is true
+PASS testDataTransfer.types.indexOf("text/uri-list") >= 0 is true
+PASS testDataTransfer.types.indexOf("text/html") >= 0 is true
+PASS testDataTransfer.types.indexOf("custom-data") >= 0 is true
+PASS testDataTransfer.getData("text") is "sample"
+PASS testDataTransfer.getData("url") is "http://www.google.com/"
+PASS testDataTransfer.getData("text/html") is "<em>Markup</em>"
+PASS testDataTransfer.getData("custom-data") is "hello world"
Running test with DataTransferItemList copy handler and DataTransferItemList paste handler
-PASS: 4 === 4
-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/html"},{"kind":"string","type":"text/plain"},{"kind":"string","type":"text/uri-list"}]
-PASS: hello world === hello world
-PASS: <em>Markup</em> === <em>Markup</em>
-PASS: sample === sample
-PASS: http://www.google.com/ === http://www.google.com/
+PASS testDataTransfer.items.item is undefined.
+PASS testDataTransfer.items.length is 4
+PASS JSON.stringify(expectedTypes) is JSON.stringify(types)
+PASS data is expectedData
+PASS data is expectedData
+PASS data is expectedData
+PASS data is expectedData
+PASS successfullyParsed is true
+
+TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698