blob: a34bf3cdefb50e617a4d085d3aed69d68ea96b39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
CONSOLE ERROR: Refused to connect to 'http://not.example.com/' because it violates the following Content Security Policy directive: "connect-src http://example.com".
This tests that exceptions thrown by XHR.open() have reasonable messages.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS xhrException.message is "Failed to execute 'open' on 'XMLHttpRequest': 'TRACE' HTTP method is unsupported."
PASS xhrException.message is "Failed to execute 'open' on 'XMLHttpRequest': Refused to connect to 'http://not.example.com/' because it violates the document's Content Security Policy."
PASS xhr.readyState is XMLHttpRequest.UNSENT
PASS xhr.open('GET', 'resources/xmlhttprequest-get-data.xml', true, badString, 'password'); threw exception Exception in toString().
PASS xhr.readyState is XMLHttpRequest.UNSENT
PASS xhr.open('GET', 'resources/xmlhttprequest-get-data.xml', true, 'username', badString); threw exception Exception in toString().
PASS xhr.readyState is XMLHttpRequest.UNSENT
PASS successfullyParsed is true
TEST COMPLETE
|