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