| <!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> |