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

Unified Diff: LayoutTests/fast/events/drag-dataTransferItemList-expected.txt

Issue 22790003: Make DataTransferItemList.add(data, type) arguments mandatory (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/events/drag-dataTransferItemList.html ('k') | Source/core/dom/DataTransferItemList.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/drag-dataTransferItemList-expected.txt
diff --git a/LayoutTests/fast/events/drag-dataTransferItemList-expected.txt b/LayoutTests/fast/events/drag-dataTransferItemList-expected.txt
index 76f2752e646efa0d6eddde361e2bc4128ba58015..59e68a84e84b5a1c9a7e971d9f9f5971c63d3ded 100644
--- a/LayoutTests/fast/events/drag-dataTransferItemList-expected.txt
+++ b/LayoutTests/fast/events/drag-dataTransferItemList-expected.txt
@@ -4,30 +4,50 @@ Drag Me
Drop Here
Drag handler:
Drop handler:
+Tests drag'n drop and well as DataTransferItemList
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
Running test with Legacy drag handler and Legacy drop 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 drag handler and DataTransferItemList drop 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 testData is expectedTestData
+PASS testData is expectedTestData
+PASS testData is expectedTestData
+PASS testData is expectedTestData
Running test with DataTransferItemList drag handler and Legacy drop 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.add() threw exception TypeError: Not enough arguments.
+PASS testDataTransfer.items.add("sample") threw exception TypeError: Type error.
+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 drag handler and DataTransferItemList drop 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.add() threw exception TypeError: Not enough arguments.
+PASS testDataTransfer.items.add("sample") threw exception TypeError: Type error.
+PASS testDataTransfer.items.length is 4
+PASS JSON.stringify(expectedTypes) is JSON.stringify(types)
+PASS testData is expectedTestData
+PASS testData is expectedTestData
+PASS testData is expectedTestData
+PASS testData is expectedTestData
+PASS successfullyParsed is true
+
+TEST COMPLETE
« no previous file with comments | « LayoutTests/fast/events/drag-dataTransferItemList.html ('k') | Source/core/dom/DataTransferItemList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698