OLD | NEW |
(Empty) | |
| 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 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/script.html", true); |
| 22 xhr.send(null); |
| 23 </script> |
OLD | NEW |