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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/exceptions-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/http/tests/xmlhttprequest/exceptions-expected.txt
diff --git a/LayoutTests/http/tests/xmlhttprequest/exceptions-expected.txt b/LayoutTests/http/tests/xmlhttprequest/exceptions-expected.txt
index f46d55be51792b2124db2f7b65d5a1aab37c55bf..e6bbfd718c53a0d2baf66b526cb5c98e6e4db3fc 100644
--- a/LayoutTests/http/tests/xmlhttprequest/exceptions-expected.txt
+++ b/LayoutTests/http/tests/xmlhttprequest/exceptions-expected.txt
@@ -4,13 +4,13 @@ new XMLHttpRequest()
PASS: req.setRequestHeader("Foo", "bar") threw exception InvalidStateError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': the object's state must be OPENED..
PASS: req.send(null) threw exception InvalidStateError: Failed to execute 'send' on 'XMLHttpRequest': the object's state must be OPENED..
open()
-PASS: req.setRequestHeader() threw exception TypeError: Not enough arguments.
-PASS: req.setRequestHeader("Foo") threw exception TypeError: Not enough arguments.
+PASS: req.setRequestHeader() threw exception TypeError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': 2 arguments required, but only 0 present..
+PASS: req.setRequestHeader("Foo") threw exception TypeError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': 2 arguments required, but only 1 present..
PASS: req.status() threw exception InvalidStateError: Failed to read the 'status' property from 'XMLHttpRequest': the object's state must not be OPENED..
PASS: req.statusText() threw exception InvalidStateError: Failed to read the 'statusText' property from 'XMLHttpRequest': the object's state must not be OPENED..
send()
PASS: req.send(null) threw exception InvalidStateError: Failed to execute 'send' on 'XMLHttpRequest': the object's state must be OPENED..
PASS: req.setRequestHeader("Foo", "bar") threw exception InvalidStateError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': the object's state must be OPENED..
-PASS: req.getResponseHeader() threw exception TypeError: Not enough arguments.
+PASS: req.getResponseHeader() threw exception TypeError: Failed to execute 'getResponseHeader' on 'XMLHttpRequest': 1 argument required, but only 0 present..
PASS: req.open() threw exception TypeError: Not enough arguments.
PASS: req.open(null) threw exception TypeError: Not enough arguments.

Powered by Google App Engine
This is Rietveld 408576698