Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / xmlhttprequest / xmlhttprequest-responseXML-ensure-noscript.html
1 <!DOCTYPE html>
2 <script src="/js-test-resources/js-test.js"></script>
3 <script>
4 jsTestIsAsync = true;
5
6 var xhr = new XMLHttpRequest();
7 xhr.responseType = 'document';
8 xhr.onreadystatechange = function () {
9     if (this.readyState != XMLHttpRequest.DONE)
10         return;
11
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");
17
18     testRunner.notifyDone();
19 }
20
21 xhr.open("GET", "resources/noscript-check.html", true);
22 xhr.send(null);
23 </script>