| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="/js-test-resources/js-test-pre.js"></script> | 3 <script src="/js-test-resources/js-test-pre.js"></script> |
| 4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
| 5 description('This test verifies that XMLHttpRequest properly handles list-va
lued headers.'); | 5 description('This test verifies that XMLHttpRequest properly handles list-va
lued headers.'); |
| 6 window.jsTestIsAsync = true; | 6 window.jsTestIsAsync = true; |
| 7 | 7 |
| 8 var xhr; | 8 var xhr; |
| 9 | 9 |
| 10 if (window.XMLHttpRequest) { | 10 if (window.XMLHttpRequest) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 if(xhr.readyState == 4) { | 24 if(xhr.readyState == 4) { |
| 25 shouldBeGreaterThanOrEqual("xhr.getResponseHeader(\"CONTENT-TYPE\").
indexOf(\"text/plain\")", "0"); | 25 shouldBeGreaterThanOrEqual("xhr.getResponseHeader(\"CONTENT-TYPE\").
indexOf(\"text/plain\")", "0"); |
| 26 shouldBeEqualToString("xhr.getResponseHeader(\"x-custom-header-singl
e\")", "single"); | 26 shouldBeEqualToString("xhr.getResponseHeader(\"x-custom-header-singl
e\")", "single"); |
| 27 shouldBeEmptyString("xhr.getResponseHeader(\"x-custom-header-empty\"
)"); | 27 shouldBeEmptyString("xhr.getResponseHeader(\"x-custom-header-empty\"
)"); |
| 28 shouldBeEqualToString("xhr.getResponseHeader(\"x-custom-header-list\
")", "one, two"); | 28 shouldBeEqualToString("xhr.getResponseHeader(\"x-custom-header-list\
")", "one, two"); |
| 29 finishJSTest(); | 29 finishJSTest(); |
| 30 } | 30 } |
| 31 } | 31 } |
| 32 | 32 |
| 33 </script> | 33 </script> |
| 34 <script src="/js-test-resources/js-test-post.js"></script> | |
| 35 </head> | 34 </head> |
| 36 | 35 |
| 37 <body> | 36 <body> |
| 38 </body> | 37 </body> |
| 39 </html> | 38 </html> |
| OLD | NEW |