Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / xmlhttprequest / broken-xml-encoding.html
blobc87cfea521db74d75f855f4c77935dad601c377f
1 <p><a href="rdar://problem/6621701">rdar://problem/6621701</a> Test that XML resources with incorrect encoding retrieved via XMLHttpRequest are fully decoded,
2 cf. <a href="https://bugs.webkit.org/show_bug.cgi?id=17079">bug 17079</a>.</p>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 var req = new XMLHttpRequest;
8 req.open("GET", "resources/broken-encoding.xml", false);
9 req.overrideMimeType('text/xml');
10 req.setRequestHeader("Cache-Control", "no-cache");
11 req.send(null);
12 document.write((req.responseXML.documentElement.firstChild.length == 6) ? "PASS" : "FAIL");
13 </script>