blob: a524c9b19980de8b5e9c84157619ea3813ecedb3 [file] [log] [blame]
Test that XMLHttpRequest raises exceptions when it should.
new XMLHttpRequest()
PASS: req.setRequestHeader("Foo", "bar") threw exception InvalidStateError: The object is in an invalid state..
PASS: req.send(null) threw exception InvalidStateError: The object is in an invalid state..
open()
PASS: req.setRequestHeader() threw exception TypeError: Not enough arguments.
PASS: req.setRequestHeader("Foo") threw exception TypeError: Not enough arguments.
send()
PASS: req.send(null) threw exception InvalidStateError: The object is in an invalid state..
PASS: req.overrideMimeType("text/plain") threw exception InvalidStateError: The object is in an invalid state..
PASS: req.setRequestHeader("Foo", "bar") threw exception InvalidStateError: The object is in an invalid state..
PASS: req.getResponseHeader() threw exception TypeError: Not enough arguments.
PASS: req.open() threw exception TypeError: Not enough arguments.
PASS: req.open(null) threw exception TypeError: Not enough arguments.