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

Side by Side 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: 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 This tests the basic functionality and properties of DataTransferItems for strin g data with drag and drop. This test requires DRT. 1 This tests the basic functionality and properties of DataTransferItems for strin g data with drag and drop. This test requires DRT.
2 Lorem ipsum 2
3 Drop text here if you test this manually 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
4 Dragging text in source1: Lorem ipsum 6 Dragging text in source1: Lorem ipsum
5 Verifying contents of DataTransferItems... 7 Verifying contents of DataTransferItems...
6 items.length: 1 8 items.length: 1
7 items[0].kind: string 9 items[0].kind: string
8 items[0].type: text/plain 10 items[0].type: text/plain
9 PASS: "Lorem ipsum" == "Lorem ipsum" 11 PASS currentItem.getAsString() threw exception TypeError: Not enough arguments.
12 PASS currentItem.getAsString(null) did not throw exception.
13 PASS stringData is "Lorem ipsum"
10 Dragging text in source2: http://example.com 14 Dragging text in source2: http://example.com
11 Verifying contents of DataTransferItems... 15 Verifying contents of DataTransferItems...
12 items.length: 1 16 items.length: 1
13 items[0].kind: string 17 items[0].kind: string
14 items[0].type: text/plain 18 items[0].type: text/plain
15 PASS: "http://example.com" == "http://example.com" 19 PASS currentItem.getAsString() threw exception TypeError: Not enough arguments.
20 PASS currentItem.getAsString(null) did not throw exception.
21 PASS stringData is "http://example.com"
22 PASS successfullyParsed is true
16 23
24 TEST COMPLETE
25 Lorem ipsum
26 Drop text here if you test this manually
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698