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