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

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

Issue 22837006: Have DataTransferItemList.add() methods return the added item (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/drag-dataTransferItemList-expected.txt
diff --git a/LayoutTests/fast/events/drag-dataTransferItemList-expected.txt b/LayoutTests/fast/events/drag-dataTransferItemList-expected.txt
index 59e68a84e84b5a1c9a7e971d9f9f5971c63d3ded..b81f61bf199b9ee2613633569dbc164fb6014c16 100644
--- a/LayoutTests/fast/events/drag-dataTransferItemList-expected.txt
+++ b/LayoutTests/fast/events/drag-dataTransferItemList-expected.txt
@@ -21,6 +21,8 @@ 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 testDataTransfer.items.length is 4
+PASS testDataTransfer.items.add("test", "text/plain") is null
+PASS testDataTransfer.items.length is 4
PASS JSON.stringify(expectedTypes) is JSON.stringify(types)
PASS testData is expectedTestData
PASS testData is expectedTestData
@@ -29,6 +31,14 @@ PASS testData is expectedTestData
Running test with DataTransferItemList drag handler and Legacy drop handler
PASS testDataTransfer.items.add() threw exception TypeError: Not enough arguments.
PASS testDataTransfer.items.add("sample") threw exception TypeError: Type error.
+PASS testItem.kind is "string"
+PASS testItem.type is "text/plain"
+PASS testItem.kind is "string"
+PASS testItem.type is "text/uri-list"
+PASS testItem.kind is "string"
+PASS testItem.type is "text/html"
+PASS testItem.kind is "string"
+PASS testItem.type is "custom-data"
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
@@ -41,6 +51,16 @@ PASS testDataTransfer.getData("custom-data") is "hello world"
Running test with DataTransferItemList drag handler and DataTransferItemList drop handler
PASS testDataTransfer.items.add() threw exception TypeError: Not enough arguments.
PASS testDataTransfer.items.add("sample") threw exception TypeError: Type error.
+PASS testItem.kind is "string"
+PASS testItem.type is "text/plain"
+PASS testItem.kind is "string"
+PASS testItem.type is "text/uri-list"
+PASS testItem.kind is "string"
+PASS testItem.type is "text/html"
+PASS testItem.kind is "string"
+PASS testItem.type is "custom-data"
+PASS testDataTransfer.items.length is 4
+PASS testDataTransfer.items.add("test", "text/plain") is null
PASS testDataTransfer.items.length is 4
PASS JSON.stringify(expectedTypes) is JSON.stringify(types)
PASS testData is expectedTestData

Powered by Google App Engine
This is Rietveld 408576698