Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1366)

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/responsexml-type.html

Issue 802123003: Adding LayoutTest for testing XMLHttpRequest.responseXML returns an XMLDocument. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/responsexml-type-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/responsexml-type-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698