OLD | NEW |
1 Test page for bug 15356 and bug 29121 | 1 Test the required behavior of XMLHttpRequest.getAllResponseHeaders() |
2 | 2 |
3 Assertion: Invoking getAllResponseHeaders method when readyState >= 2 (HEADERS_R
ECEIVED) should return a conforming list of headers. | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 PASSED 0 | |
6 PASSED 1 | |
7 PASSED 2: getAllResponseHeaders returned what looks like a conforming headerlist
. | |
8 PASSED 3 | |
9 PASSED 4 | |
10 | 5 |
| 6 PASS {state: 0}; headerValues = xhr.getAllResponseHeaders(); did not throw excep
tion. |
| 7 PASS headerValues is the empty string |
| 8 PASS {state: 1}; headerValues = xhr.getAllResponseHeaders(); did not throw excep
tion. |
| 9 PASS headerValues is the empty string |
| 10 PASS getAllResponseHeaders() result is empty in ready state 1. |
| 11 PASS xhr.open("GET", "resources/1251.html", true); did not throw exception. |
| 12 PASS {state: 1}; headerValues = xhr.getAllResponseHeaders(); did not throw excep
tion. |
| 13 PASS headerValues is the empty string |
| 14 PASS xhr.send(null); did not throw exception. |
| 15 PASS {state: 2}; headerValues = xhr.getAllResponseHeaders(); did not throw excep
tion. |
| 16 PASS headerValues is not the empty string |
| 17 PASS Header values appears to be conforming. |
| 18 PASS {state: 3}; headerValues = xhr.getAllResponseHeaders(); did not throw excep
tion. |
| 19 PASS headerValues is not the empty string |
| 20 PASS responseHeaders is savedHeaders |
| 21 PASS {state: 4}; headerValues = xhr.getAllResponseHeaders(); did not throw excep
tion. |
| 22 PASS headerValues is not the empty string |
| 23 PASS responseHeaders is savedHeaders |
| 24 PASS successfullyParsed is true |
| 25 |
| 26 TEST COMPLETE |
| 27 |
OLD | NEW |