Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / xmlhttprequest / xmlhttprequest-responseXML-ensure-noscript.html
blobf5fcb0d48c1302323ea0e52fad82ad23f9009c58
1 <!DOCTYPE html>
2 <script src="/js-test-resources/js-test.js"></script>
3 <script>
4 jsTestIsAsync = true;
6 var xhr = new XMLHttpRequest();
7 xhr.responseType = 'document';
8 xhr.onreadystatechange = function () {
9 if (this.readyState != XMLHttpRequest.DONE)
10 return;
12 var html = xhr.responseXML.documentElement.innerHTML;
13 if (html.indexOf("FAILED") >= 0)
14 testFailed("response HTML script was executed");
15 else
16 testPassed("response HTML script was not executed");
18 testRunner.notifyDone();
21 xhr.open("GET", "resources/noscript-check.html", true);
22 xhr.send(null);
23 </script>