blob: f5fcb0d48c1302323ea0e52fad82ad23f9009c58 [file] [log] [blame]
<!DOCTYPE html>
<script src="/js-test-resources/js-test.js"></script>
<script>
jsTestIsAsync = true;
var xhr = new XMLHttpRequest();
xhr.responseType = 'document';
xhr.onreadystatechange = function () {
if (this.readyState != XMLHttpRequest.DONE)
return;
var html = xhr.responseXML.documentElement.innerHTML;
if (html.indexOf("FAILED") >= 0)
testFailed("response HTML script was executed");
else
testPassed("response HTML script was not executed");
testRunner.notifyDone();
}
xhr.open("GET", "resources/noscript-check.html", true);
xhr.send(null);
</script>