2 <script src=
"/js-test-resources/js-test.js"></script>
6 var xhr
= new XMLHttpRequest();
7 xhr
.responseType
= 'document';
8 xhr
.onreadystatechange = function () {
9 if (this.readyState
!= XMLHttpRequest
.DONE
)
12 var html
= xhr
.responseXML
.documentElement
.innerHTML
;
13 if (html
.indexOf("FAILED") >= 0)
14 testFailed("response HTML script was executed");
16 testPassed("response HTML script was not executed");
18 testRunner
.notifyDone();
21 xhr
.open("GET", "resources/noscript-check.html", true);