Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 | |
| 3 <body> | |
| 4 <script src="/js-test-resources/js-test.js"></script> | |
| 5 <script> | |
| 6 description('This tests that XMLHttpRequest.responseXML returns an XMLDocument.' ); | |
| 7 window.jsTestIsAsync = true; | |
| 8 | |
| 9 new Promise(function(resolve, reject) { | |
| 10 var xhr = new XMLHttpRequest(); | |
| 11 xhr.open('GET', 'resources/redirect.php?url=reply2.xml', true); | |
| 12 xhr.responseType = 'document'; | |
| 13 xhr.onreadystatechange = function() { | |
| 14 if (xhr.readyState === 4) { | |
| 15 resolve(xhr); | |
| 16 } | |
| 17 } | |
| 18 xhr.send(); | |
| 19 }).then(function(xhr) { | |
| 20 responseDocument = String(xhr.responseXML); | |
| 21 shouldBeEqualToString('responseDocument', '[object XMLDocument]'); | |
| 22 }).catch(function(reason) { | |
| 23 testFailed(String(reason)); | |
| 24 }).then(finishJSTest, finishJSTest); | |
| 25 | |
| 26 </script> | |
| 27 </body> | |
| 28 </html> | |
|
tyoshino (SeeGerritForStatus)
2015/01/05 05:04:34
remove
Paritosh Kumar
2015/01/05 05:34:43
Thanks. Done.
| |
| 29 | |
| 30 | |
|
tyoshino (SeeGerritForStatus)
2015/01/05 05:04:34
remove these blank lines
Paritosh Kumar
2015/01/05 05:34:43
Done.
| |
| OLD | NEW |