Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / xmlhttprequest / xmlhttprequest-responseXML-invalid-xml.html
blob2b50d210020f77a1f6e4578bb458c1c7f9f3ab24
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 <script>
6 description('This tests the XMLHttpRequest responseXML attribute value when given invalid XML data.');
8 window.jsTestIsAsync = true;
9 var xhr = new XMLHttpRequest(),
10 url = 'resources/xmlhttprequest-get-invalid-data.xml';
11 xhr.onload = function() {
12 shouldEvaluateTo('xhr.readyState', 4);
13 shouldBeNull('xhr.responseXML');
14 finishJSTest();
16 xhr.onerror = function() {
17 testFailed('The XHR request to an existing resource failed: "' + url + '"');
18 finishJSTest();
20 xhr.open('GET', url);
21 xhr.responseType = 'document';
22 xhr.send(null);
23 </script>
24 </head>
25 <body>
26 <div id="description"></div>
27 <div id="console"></div>
28 </body>
29 </html>