Chromium Code Reviews| Index: LayoutTests/http/tests/xmlhttprequest/responsexml-type.html |
| diff --git a/LayoutTests/http/tests/xmlhttprequest/responsexml-type.html b/LayoutTests/http/tests/xmlhttprequest/responsexml-type.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9114c03abb53f70176043756a34e54c8f72ef11c |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/xmlhttprequest/responsexml-type.html |
| @@ -0,0 +1,30 @@ |
| +<!DOCTYPE html> |
| + |
| +<body> |
| +<script src="/js-test-resources/js-test.js"></script> |
| +<script> |
| +description('This tests that XMLHttpRequest.responseXML returns an XMLDocument.'); |
| +window.jsTestIsAsync = true; |
| + |
| +new Promise(function(resolve, reject) { |
| + var xhr = new XMLHttpRequest(); |
| + xhr.open('GET', 'resources/redirect.php?url=reply2.xml', true); |
| + xhr.responseType = 'document'; |
| + xhr.onreadystatechange = function() { |
| + if (xhr.readyState === 4) { |
| + resolve(xhr); |
| + } |
| + } |
| + xhr.send(); |
| +}).then(function(xhr) { |
| + responseDocument = String(xhr.responseXML); |
| + shouldBeEqualToString('responseDocument', '[object XMLDocument]'); |
| +}).catch(function(reason) { |
| + testFailed(String(reason)); |
| +}).then(finishJSTest, finishJSTest); |
| + |
| +</script> |
| +</body> |
| +</html> |
|
tyoshino (SeeGerritForStatus)
2015/01/05 05:04:34
remove
Paritosh Kumar
2015/01/05 05:34:43
Thanks. Done.
|
| + |
| + |
|
tyoshino (SeeGerritForStatus)
2015/01/05 05:04:34
remove these blank lines
Paritosh Kumar
2015/01/05 05:34:43
Done.
|