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

Side by Side Diff: LayoutTests/storage/domstorage/localstorage/missing-arguments-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 Ensures that we get exceptions when we do not include required arguments for loc alStorage methods. 1 Ensures that we get exceptions when we do not include required arguments for loc alStorage methods.
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 PASS localStorage.key() threw exception TypeError: Not enough arguments. 6 PASS localStorage.key() threw exception TypeError: Failed to execute 'key' on 'S torage': 1 argument required, but only 0 present..
7 PASS localStorage.getItem() threw exception TypeError: Not enough arguments. 7 PASS localStorage.getItem() threw exception TypeError: Failed to execute 'getIte m' on 'Storage': 1 argument required, but only 0 present..
8 PASS localStorage.setItem() threw exception TypeError: Not enough arguments. 8 PASS localStorage.setItem() threw exception TypeError: Failed to execute 'setIte m' on 'Storage': 2 arguments required, but only 0 present..
9 PASS localStorage.setItem("a") threw exception TypeError: Not enough arguments. 9 FAIL localStorage.setItem("a") should throw TypeError: Failed to execute 'setIte m' on 'Storage': 2 arguments required, but only 0 present.. Threw exception Type Error: Failed to execute 'setItem' on 'Storage': 2 arguments required, but only 1 present..
10 PASS localStorage.removeItem() threw exception TypeError: Not enough arguments. 10 PASS localStorage.removeItem() threw exception TypeError: Failed to execute 'rem oveItem' on 'Storage': 1 argument required, but only 0 present..
11 PASS successfullyParsed is true 11 PASS successfullyParsed is true
12 12
13 TEST COMPLETE 13 TEST COMPLETE
14 14
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698