Chromium Code Reviews| Index: LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-abort.html |
| diff --git a/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-abort.html b/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-abort.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8423e362253a3c9709ecbb52c2689ce6bbe57114 |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-abort.html |
| @@ -0,0 +1,20 @@ |
| +<!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.LOADING) { |
| + xhr.abort(); |
| + requestAnimationFrame(function() { |
| + debug("PASS if no crash or leak."); |
| + testRunner.notifyDone(); |
| + }) |
|
tyoshino (SeeGerritForStatus)
2014/09/01 05:06:05
semicolon
kouhei (in TOK)
2014/09/01 05:16:57
Done.
|
| + } |
| +} |
|
tyoshino (SeeGerritForStatus)
2014/09/01 05:06:05
semicolon
kouhei (in TOK)
2014/09/01 05:16:57
Done.
|
| + |
| +xhr.open("GET", "resources/small-chunks.cgi", true); |
| +xhr.send(null); |
| +</script> |