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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/exceptions-expected.txt

Issue 23041002: Improve 'XMLHttpRequest' exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ExceptionMessages. Created 7 years, 4 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 Test that XMLHttpRequest raises exceptions when it should. 1 Test that XMLHttpRequest raises exceptions when it should.
2 2
3 new XMLHttpRequest() 3 new XMLHttpRequest()
4 PASS: req.setRequestHeader("Foo", "bar") threw exception InvalidStateError: An a ttempt was made to use an object that is not, or is no longer, usable.. 4 PASS: req.setRequestHeader("Foo", "bar") threw exception InvalidStateError: Fail ed to execute 'setRequestHeader' on 'XMLHttpRequest': the object's state must be OPENED..
5 PASS: req.send(null) threw exception InvalidStateError: An attempt was made to u se an object that is not, or is no longer, usable.. 5 PASS: req.send(null) threw exception InvalidStateError: Failed to execute 'send' on 'XMLHttpRequest': the object's state must be OPENED..
6 open() 6 open()
7 PASS: req.setRequestHeader() threw exception TypeError: Not enough arguments. 7 PASS: req.setRequestHeader() threw exception TypeError: Not enough arguments.
8 PASS: req.setRequestHeader("Foo") threw exception TypeError: Not enough argument s. 8 PASS: req.setRequestHeader("Foo") threw exception TypeError: Not enough argument s.
9 PASS: req.status() threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 9 PASS: req.status() threw exception InvalidStateError: Failed to read the 'status ' property from 'XMLHttpRequest': the object's state must not be OPENED..
10 PASS: req.statusText() threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 10 PASS: req.statusText() threw exception InvalidStateError: Failed to read the 'st atusText' property from 'XMLHttpRequest': the object's state must not be OPENED. .
11 send() 11 send()
12 PASS: req.send(null) threw exception InvalidStateError: An attempt was made to u se an object that is not, or is no longer, usable.. 12 PASS: req.send(null) threw exception InvalidStateError: Failed to execute 'send' on 'XMLHttpRequest': the object's state must be OPENED..
13 PASS: req.setRequestHeader("Foo", "bar") threw exception InvalidStateError: An a ttempt was made to use an object that is not, or is no longer, usable.. 13 PASS: req.setRequestHeader("Foo", "bar") threw exception InvalidStateError: Fail ed to execute 'setRequestHeader' on 'XMLHttpRequest': the object's state must be OPENED..
14 PASS: req.getResponseHeader() threw exception TypeError: Not enough arguments. 14 PASS: req.getResponseHeader() threw exception TypeError: Not enough arguments.
15 PASS: req.open() threw exception TypeError: Not enough arguments. 15 PASS: req.open() threw exception TypeError: Not enough arguments.
16 PASS: req.open(null) threw exception TypeError: Not enough arguments. 16 PASS: req.open(null) threw exception TypeError: Not enough arguments.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698