chromium/third_party/blink/web_tests/http/tests/xmlhttprequest/exceptions-expected.txt

Test that XMLHttpRequest raises exceptions when it should.

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: 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..
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: Failed to execute 'getResponseHeader' on 'XMLHttpRequest': 1 argument required, but only 0 present..
PASS: req.open() threw exception TypeError: Failed to execute 'open' on 'XMLHttpRequest': 2 arguments required, but only 0 present..
PASS: req.open(null) threw exception TypeError: Failed to execute 'open' on 'XMLHttpRequest': 2 arguments required, but only 1 present..