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

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

Issue 24203002: Improve generated "Not enough arguments." TypeError exceptions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline Created 7 years, 3 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 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 Dragging text in source1: Lorem ipsum 6 Dragging text in source1: Lorem ipsum
7 Verifying contents of DataTransferItems... 7 Verifying contents of DataTransferItems...
8 items.length: 1 8 items.length: 1
9 items[0].kind: string 9 items[0].kind: string
10 items[0].type: text/plain 10 items[0].type: text/plain
11 PASS currentItem.getAsString() threw exception TypeError: Not enough arguments. 11 PASS currentItem.getAsString() threw exception TypeError: Failed to execute 'get AsString' on 'DataTransferItem': 1 argument required, but only 0 present..
12 PASS currentItem.getAsString(null) did not throw exception. 12 PASS currentItem.getAsString(null) did not throw exception.
13 PASS stringData is "Lorem ipsum" 13 PASS stringData is "Lorem ipsum"
14 Dragging text in source2: http://example.com 14 Dragging text in source2: http://example.com
15 Verifying contents of DataTransferItems... 15 Verifying contents of DataTransferItems...
16 items.length: 1 16 items.length: 1
17 items[0].kind: string 17 items[0].kind: string
18 items[0].type: text/plain 18 items[0].type: text/plain
19 PASS currentItem.getAsString() threw exception TypeError: Not enough arguments. 19 PASS currentItem.getAsString() threw exception TypeError: Failed to execute 'get AsString' on 'DataTransferItem': 1 argument required, but only 0 present..
20 PASS currentItem.getAsString(null) did not throw exception. 20 PASS currentItem.getAsString(null) did not throw exception.
21 PASS stringData is "http://example.com" 21 PASS stringData is "http://example.com"
22 PASS successfullyParsed is true 22 PASS successfullyParsed is true
23 23
24 TEST COMPLETE 24 TEST COMPLETE
25 Lorem ipsum 25 Lorem ipsum
26 Drop text here if you test this manually 26 Drop text here if you test this manually
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698