OLD | NEW |
(Empty) | |
| 1 Test that open() converts only special request methods to uppercase, per http://
xhr.spec.whatwg.org/#dom-xmlhttprequest-open |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 Known methods to be converted to upper-case |
| 7 PASS req.getResponseHeader('x-request-method') is "DELETE" |
| 8 PASS req.responseText is "DELETE" |
| 9 PASS req.getResponseHeader('x-request-method') is "GET" |
| 10 PASS req.responseText is "GET" |
| 11 PASS req.getResponseHeader('x-request-method') is "HEAD" |
| 12 PASS req.getResponseHeader('x-request-method') is "OPTIONS" |
| 13 PASS req.responseText is "OPTIONS" |
| 14 PASS req.getResponseHeader('x-request-method') is "POST" |
| 15 PASS req.responseText is "POST" |
| 16 PASS req.getResponseHeader('x-request-method') is "PUT" |
| 17 PASS req.responseText is "PUT" |
| 18 Other methods should be sent as-is |
| 19 PASS req.getResponseHeader('x-request-method') is "pAtCH" |
| 20 PASS req.responseText is "pAtCH" |
| 21 PASS req.getResponseHeader('x-request-method') is "XuniCORn" |
| 22 PASS req.responseText is "XuniCORn" |
| 23 PASS req.getResponseHeader('x-request-method') is "LOck" |
| 24 PASS req.responseText is "LOck" |
| 25 PASS req.getResponseHeader('x-request-method') is "LOck" |
| 26 PASS req.responseText is "LOck" |
| 27 PASS req.getResponseHeader('x-request-method') is "unLOCK" |
| 28 PASS req.responseText is "unLOCK" |
| 29 PASS req.getResponseHeader('x-request-method') is "m-post" |
| 30 PASS req.responseText is "m-post" |
| 31 PASS req.getResponseHeader('x-request-method') is "iNdex" |
| 32 PASS req.responseText is "iNdex" |
| 33 PASS successfullyParsed is true |
| 34 |
| 35 TEST COMPLETE |
| 36 |
OLD | NEW |