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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/storage/domstorage/localstorage/missing-arguments-expected.txt
diff --git a/LayoutTests/storage/domstorage/localstorage/missing-arguments-expected.txt b/LayoutTests/storage/domstorage/localstorage/missing-arguments-expected.txt
index c3aa01137c1f45b8b82f18119f4ba686e2f853c7..72933b350c9b244199ecec4f4b350475c5dc85a1 100644
--- a/LayoutTests/storage/domstorage/localstorage/missing-arguments-expected.txt
+++ b/LayoutTests/storage/domstorage/localstorage/missing-arguments-expected.txt
@@ -3,11 +3,11 @@ Ensures that we get exceptions when we do not include required arguments for loc
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS localStorage.key() threw exception TypeError: Not enough arguments.
-PASS localStorage.getItem() threw exception TypeError: Not enough arguments.
-PASS localStorage.setItem() threw exception TypeError: Not enough arguments.
-PASS localStorage.setItem("a") threw exception TypeError: Not enough arguments.
-PASS localStorage.removeItem() threw exception TypeError: Not enough arguments.
+PASS localStorage.key() threw exception TypeError: Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present..
+PASS localStorage.getItem() threw exception TypeError: Failed to execute 'getItem' on 'Storage': 1 argument required, but only 0 present..
+PASS localStorage.setItem() threw exception TypeError: Failed to execute 'setItem' on 'Storage': 2 arguments required, but only 0 present..
+FAIL localStorage.setItem("a") should throw TypeError: Failed to execute 'setItem' on 'Storage': 2 arguments required, but only 0 present.. Threw exception TypeError: Failed to execute 'setItem' on 'Storage': 2 arguments required, but only 1 present..
+PASS localStorage.removeItem() threw exception TypeError: Failed to execute 'removeItem' on 'Storage': 1 argument required, but only 0 present..
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698