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

Side by Side Diff: LayoutTests/fast/events/clipboard-dataTransferItemList-remove-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 Checks that DataTransferItemList.remove() is working 1 Checks that DataTransferItemList.remove() is working
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 * copy event 6 * copy event
7 PASS dataTansferItemList.length is 4 7 PASS dataTansferItemList.length is 4
8 PASS dataTansferItemList[0].type is "text/plain" 8 PASS dataTansferItemList[0].type is "text/plain"
9 PASS dataTansferItemList[1].type is "text/uri-list" 9 PASS dataTansferItemList[1].type is "text/uri-list"
10 PASS dataTansferItemList[2].type is "text/html" 10 PASS dataTansferItemList[2].type is "text/html"
11 PASS dataTansferItemList[3].type is "custom-data" 11 PASS dataTansferItemList[3].type is "custom-data"
12 PASS dataTansferItemList.remove() threw exception TypeError: Not enough argument s. 12 PASS dataTansferItemList.remove() threw exception TypeError: Failed to execute ' remove' on 'DataTransferItemList': 1 argument required, but only 0 present..
13 PASS dataTansferItemList.remove(-1) did not throw exception. 13 PASS dataTansferItemList.remove(-1) did not throw exception.
14 PASS dataTansferItemList.length is 4 14 PASS dataTansferItemList.length is 4
15 PASS dataTansferItemList.remove(999) did not throw exception. 15 PASS dataTansferItemList.remove(999) did not throw exception.
16 PASS dataTansferItemList.length is 4 16 PASS dataTansferItemList.length is 4
17 PASS dataTansferItemList.remove(0) did not throw exception. 17 PASS dataTansferItemList.remove(0) did not throw exception.
18 PASS dataTansferItemList.length is 3 18 PASS dataTansferItemList.length is 3
19 PASS dataTansferItemList[0].type is "text/uri-list" 19 PASS dataTansferItemList[0].type is "text/uri-list"
20 PASS dataTansferItemList[1].type is "text/html" 20 PASS dataTansferItemList[1].type is "text/html"
21 PASS dataTansferItemList.remove(-4294967295) did not throw exception. 21 PASS dataTansferItemList.remove(-4294967295) did not throw exception.
22 PASS dataTansferItemList.length is 2 22 PASS dataTansferItemList.length is 2
23 PASS dataTansferItemList[1].type is "custom-data" 23 PASS dataTansferItemList[1].type is "custom-data"
24 * paste event 24 * paste event
25 PASS dataTansferItemList.length is 2 25 PASS dataTansferItemList.length is 2
26 PASS dataTansferItemList.remove(0) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 26 PASS dataTansferItemList.remove(0) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
27 PASS dataTansferItemList.length is 2 27 PASS dataTansferItemList.length is 2
28 PASS successfullyParsed is true 28 PASS successfullyParsed is true
29 29
30 TEST COMPLETE 30 TEST COMPLETE
31 31
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698