| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
| 5 </head> |
| 6 <body> |
| 7 <p>Test that XHR response text is not normalized.</p> |
| 8 <div id="result">FAIL: script didn't run to completion.</div> |
| 9 <script> |
| 10 |
| 11 if (window.testRunner) |
| 12 testRunner.dumpAsText(); |
| 13 |
| 14 var xhr = new XMLHttpRequest; |
| 15 xhr.open("GET", "resources/response-encoding2-reply.txt", false); |
| 16 xhr.send(null); |
| 17 if (xhr.responseText == "n\u0303") |
| 18 document.getElementById("result").firstChild.data = "SUCCESS"; |
| 19 else |
| 20 document.getElementById("result").firstChild.data = "FAILURE: '" + xhr.r
esponseText + "'"; |
| 21 |
| 22 </script> |
| 23 </body> |
| 24 </html> |
| OLD | NEW |