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

Unified Diff: LayoutTests/editing/pasteboard/data-transfer-items-drag-drop-string-expected.txt

Issue 22604003: Make DataTransferItem.getAsString() argument mandatory and nullable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Take Arv's feedback into consideration 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/editing/pasteboard/data-transfer-items-drag-drop-string-expected.txt
diff --git a/LayoutTests/editing/pasteboard/data-transfer-items-drag-drop-string-expected.txt b/LayoutTests/editing/pasteboard/data-transfer-items-drag-drop-string-expected.txt
index e9ff61ca577416ca4f518d892121b3a0a8e71a8e..5bbd710e7b2704a6f8129a69b5a3dfefb0e158a5 100644
--- a/LayoutTests/editing/pasteboard/data-transfer-items-drag-drop-string-expected.txt
+++ b/LayoutTests/editing/pasteboard/data-transfer-items-drag-drop-string-expected.txt
@@ -1,16 +1,26 @@
This tests the basic functionality and properties of DataTransferItems for string data with drag and drop. This test requires DRT.
-Lorem ipsum
-Drop text here if you test this manually
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
Dragging text in source1: Lorem ipsum
Verifying contents of DataTransferItems...
items.length: 1
items[0].kind: string
items[0].type: text/plain
-PASS: "Lorem ipsum" == "Lorem ipsum"
+PASS currentItem.getAsString() threw exception TypeError: Not enough arguments.
+PASS currentItem.getAsString(null) did not throw exception.
+PASS stringData is "Lorem ipsum"
Dragging text in source2: http://example.com
Verifying contents of DataTransferItems...
items.length: 1
items[0].kind: string
items[0].type: text/plain
-PASS: "http://example.com" == "http://example.com"
+PASS currentItem.getAsString() threw exception TypeError: Not enough arguments.
+PASS currentItem.getAsString(null) did not throw exception.
+PASS stringData is "http://example.com"
+PASS successfullyParsed is true
+TEST COMPLETE
+Lorem ipsum
+Drop text here if you test this manually

Powered by Google App Engine
This is Rietveld 408576698