OLD | NEW |
1 CONSOLE ERROR: Refused to get unsafe header "SeT-COoKie" | 1 CONSOLE ERROR: Refused to get unsafe header "SeT-COoKie" |
2 CONSOLE ERROR: Refused to get unsafe header "sEt-coOkIE2" | 2 CONSOLE ERROR: Refused to get unsafe header "sEt-coOkIE2" |
3 CONSOLE ERROR: Refused to get unsafe header "SeT-COoKie" | 3 CONSOLE ERROR: Refused to get unsafe header "SeT-COoKie" |
4 CONSOLE ERROR: Refused to get unsafe header "sEt-coOkIE2" | 4 CONSOLE ERROR: Refused to get unsafe header "sEt-coOkIE2" |
5 CONSOLE ERROR: Refused to get unsafe header "SeT-COoKie" | 5 CONSOLE ERROR: Refused to get unsafe header "SeT-COoKie" |
6 CONSOLE ERROR: Refused to get unsafe header "sEt-coOkIE2" | 6 CONSOLE ERROR: Refused to get unsafe header "sEt-coOkIE2" |
7 Test page for bug 15356 and bug 29121 | 7 Test the required behavior of XMLHttpRequest.getResponseHeader() |
8 | 8 |
9 Assertion: Invoking the getResponseHeader method when readyState >= 2 (HEADERS_R
ECEIVED) returns a header value if the header exists. | 9 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
10 | 10 |
11 Assertion: Invoking the getResponseHeader method with the parameter satisfying t
he following conditions causes getResponseHeader to return null: | |
12 | 11 |
13 1a. The parameter case-insensitively matches Set-Cookie; | 12 PASS {state: 0}; headerValue = xhr.getResponseHeader('Content-Type'); did not th
row exception. |
14 1b. The parameter case-insensitively matches Set-Cookie2; | 13 PASS headerValue is null |
15 2. The parameter does not match any header in the response; | 14 PASS {state: 1}; headerValue = xhr.getResponseHeader('Content-Type'); did not th
row exception. |
16 3a. The parameter is null (it is not a valid header name); | 15 PASS headerValue is null |
17 3b. The parameter is "Content-Type:" (it is not a valid header name). | 16 PASS Header 'Content-Type' is null in ready state 1. |
18 PASSED 0 Content-Type: exception thrown. | 17 PASS xhr.open("GET", "resources/1251.html", true); did not throw exception. |
19 PASSED 1 Content-Type: exception thrown | 18 PASS {state: 1}; headerValue = xhr.getResponseHeader('Content-Type'); did not th
row exception. |
20 PASSED 2 Content-Type: ResponseHeader(Content-Type) returned a value. | 19 PASS headerValue is null |
21 PASSED 2 SeT-COoKie: getResponseHeader(SeT-COoKie) returned null. | 20 PASS xhr.send(null); did not throw exception. |
22 PASSED 2 sEt-coOkIE2: getResponseHeader(sEt-coOkIE2) returned null. | 21 PASS {state: 2}; headerValue = xhr.getResponseHeader('Content-Type'); did not th
row exception. |
23 PASSED 2 xxx-mytest-headerabc: getResponseHeader(xxx-mytest-headerabc) returned
null. | 22 PASS headerValue is non-null. |
24 PASSED 2 null: getResponseHeader(null) returned null. | 23 PASS {state: 2}; headerValue = xhr.getResponseHeader('SeT-COoKie'); did not thro
w exception. |
25 PASSED 2 Content-Type:: getResponseHeader(Content-Type:) returned null. | 24 PASS headerValue is null |
26 PASSED 3 Content-Type: Content-Type | 25 PASS {state: 2}; headerValue = xhr.getResponseHeader('sEt-coOkIE2'); did not thr
ow exception. |
27 PASSED 3 SeT-COoKie: getResponseHeader(SeT-COoKie) returned null. | 26 PASS headerValue is null |
28 PASSED 3 sEt-coOkIE2: getResponseHeader(sEt-coOkIE2) returned null. | 27 PASS {state: 2}; headerValue = xhr.getResponseHeader('xxx-mytest-headerabc'); di
d not throw exception. |
29 PASSED 3 xxx-mytest-headerabc: getResponseHeader(xxx-mytest-headerabc) returned
null. | 28 PASS headerValue is null |
30 PASSED 3 null: getResponseHeader(null) returned null. | 29 PASS {state: 2}; headerValue = xhr.getResponseHeader('null'); did not throw exce
ption. |
31 PASSED 3 Content-Type:: getResponseHeader(Content-Type:) returned null. | 30 PASS headerValue is null |
32 PASSED 4 Content-Type: Content-Type | 31 PASS {state: 2}; headerValue = xhr.getResponseHeader('Content-Type:'); did not t
hrow exception. |
33 PASSED 4 SeT-COoKie: getResponseHeader(SeT-COoKie) returned null. | 32 PASS headerValue is null |
34 PASSED 4 sEt-coOkIE2: getResponseHeader(sEt-coOkIE2) returned null. | 33 PASS {state: 3}; headerValue = xhr.getResponseHeader('Content-Type'); did not th
row exception. |
35 PASSED 4 xxx-mytest-headerabc: getResponseHeader(xxx-mytest-headerabc) returned
null. | 34 PASS headerValue is non-null. |
36 PASSED 4 null: getResponseHeader(null) returned null. | 35 PASS result is savedHeader |
37 PASSED 4 Content-Type:: getResponseHeader(Content-Type:) returned null. | 36 PASS {state: 3}; headerValue = xhr.getResponseHeader('SeT-COoKie'); did not thro
w exception. |
| 37 PASS headerValue is null |
| 38 PASS {state: 3}; headerValue = xhr.getResponseHeader('sEt-coOkIE2'); did not thr
ow exception. |
| 39 PASS headerValue is null |
| 40 PASS {state: 3}; headerValue = xhr.getResponseHeader('xxx-mytest-headerabc'); di
d not throw exception. |
| 41 PASS headerValue is null |
| 42 PASS {state: 3}; headerValue = xhr.getResponseHeader('null'); did not throw exce
ption. |
| 43 PASS headerValue is null |
| 44 PASS {state: 3}; headerValue = xhr.getResponseHeader('Content-Type:'); did not t
hrow exception. |
| 45 PASS headerValue is null |
| 46 PASS {state: 4}; headerValue = xhr.getResponseHeader('Content-Type'); did not th
row exception. |
| 47 PASS headerValue is non-null. |
| 48 PASS result is savedHeader |
| 49 PASS {state: 4}; headerValue = xhr.getResponseHeader('SeT-COoKie'); did not thro
w exception. |
| 50 PASS headerValue is null |
| 51 PASS {state: 4}; headerValue = xhr.getResponseHeader('sEt-coOkIE2'); did not thr
ow exception. |
| 52 PASS headerValue is null |
| 53 PASS {state: 4}; headerValue = xhr.getResponseHeader('xxx-mytest-headerabc'); di
d not throw exception. |
| 54 PASS headerValue is null |
| 55 PASS {state: 4}; headerValue = xhr.getResponseHeader('null'); did not throw exce
ption. |
| 56 PASS headerValue is null |
| 57 PASS {state: 4}; headerValue = xhr.getResponseHeader('Content-Type:'); did not t
hrow exception. |
| 58 PASS headerValue is null |
| 59 PASS successfullyParsed is true |
38 | 60 |
| 61 TEST COMPLETE |
| 62 |
OLD | NEW |