Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / xmlhttprequest / response-encoding2.html
blob86bc2a0479a8a3a9b6cce3156d4cd13a70324f1f
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>
11 if (window.testRunner)
12 testRunner.dumpAsText();
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.responseText + "'";
22 </script>
23 </body>
24 </html>