Auto merge of #8828 - Ronak6892:docResp, r=eefriedman

M1503/M1504 : Support for missing XMLHttpRequestAPIs and Document response handling

Hi,
This is for NCSU Fall 15 project M1503 and M1504:
M1503: Integrate XML Parser (Step 3 of 4): Support for Document response handling and calling the appropriate parser.
M1504: Support for missing XMLHttpRequest APIs
https://github.com/servo/servo/wiki/Integrate-xml5ever
It includes changes to handle document response for XMLHttpRequest.
Kindly review.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8828)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-12-10 09:00:19 +05:30
commit bd8af8e234
17 changed files with 166 additions and 106 deletions

View file

@ -0,0 +1,5 @@
[abort-after-send.htm]
type: testharness
[XMLHttpRequest: abort() after send()]
expected: FAIL

View file

@ -1,6 +0,0 @@
[overridemimetype-open-state-force-xml.htm]
type: testharness
expected: TIMEOUT
[XMLHttpRequest: overrideMimeType() in open state, XML MIME type with UTF-8 charset]
expected: TIMEOUT

View file

@ -3,3 +3,6 @@
[XMLHttpRequest: responseXML basic test]
expected: FAIL
[responseXML on empty response documents]
expected: FAIL

View file

@ -12,12 +12,6 @@
[referrer]
expected: FAIL
[title]
expected: FAIL
[contentType]
expected: FAIL
[readyState]
expected: FAIL
@ -33,30 +27,15 @@
[images]
expected: FAIL
[doctype]
expected: FAIL
[forms]
expected: FAIL
[all]
expected: FAIL
[links]
expected: FAIL
[cookie]
expected: FAIL
[lastModified set according to HTTP header]
expected: FAIL
[cookie (after setting it)]
expected: FAIL
[styleSheets]
expected: FAIL
[implementation]
expected: FAIL

View file

@ -1,26 +0,0 @@
[responsexml-media-type.htm]
type: testharness
[XMLHttpRequest: responseXML MIME type tests ('', should parse)]
expected: FAIL
[XMLHttpRequest: responseXML MIME type tests ('bogus', should parse)]
expected: FAIL
[XMLHttpRequest: responseXML MIME type tests ('bogus+xml', should parse)]
expected: FAIL
[XMLHttpRequest: responseXML MIME type tests ('video/x-awesome+xml', should parse)]
expected: FAIL
[XMLHttpRequest: responseXML MIME type tests ('text/xml', should parse)]
expected: FAIL
[XMLHttpRequest: responseXML MIME type tests ('application', should parse)]
expected: FAIL
[XMLHttpRequest: responseXML MIME type tests ('application/xhtml+xml', should parse)]
expected: FAIL
[XMLHttpRequest: responseXML MIME type tests ('image/svg+xml', should parse)]
expected: FAIL

View file

@ -1,14 +0,0 @@
[responsexml-non-document-types.htm]
type: testharness
[XMLHttpRequest: responseXML/responseText on other responseType (arraybuffer)]
expected: FAIL
[XMLHttpRequest: responseXML/responseText on other responseType (blob)]
expected: FAIL
[XMLHttpRequest: responseXML/responseText on other responseType (json)]
expected: FAIL
[XMLHttpRequest: responseXML/responseText on other responseType (text)]
expected: FAIL

View file

@ -0,0 +1,23 @@
[responsexml-non-well-formed.htm]
type: testharness
[XMLHttpRequest: responseXML non well-formed tests]
expected: FAIL
[XMLHttpRequest: responseXML non well-formed tests 1]
expected: FAIL
[XMLHttpRequest: responseXML non well-formed tests 2]
expected: FAIL
[XMLHttpRequest: responseXML non well-formed tests 3]
expected: FAIL
[XMLHttpRequest: responseXML non well-formed tests 4]
expected: FAIL
[XMLHttpRequest: responseXML non well-formed tests 5]
expected: FAIL
[XMLHttpRequest: responseXML non well-formed tests 6]
expected: FAIL

View file

@ -1,14 +0,0 @@
[send-redirect-no-location.htm]
type: testharness
[XMLHttpRequest: send() - Redirects (no Location header) (301)]
expected: FAIL
[XMLHttpRequest: send() - Redirects (no Location header) (302)]
expected: FAIL
[XMLHttpRequest: send() - Redirects (no Location header) (303)]
expected: FAIL
[XMLHttpRequest: send() - Redirects (no Location header) (307)]
expected: FAIL

View file

@ -1,8 +0,0 @@
[status-async.htm]
type: testharness
[XMLHttpRequest: status/statusText - various responses 7 (GET 402)]
expected: FAIL
[XMLHttpRequest: status/statusText - various responses 9 (CHICKEN 402)]
expected: FAIL

View file

@ -1,8 +0,0 @@
[status-basic.htm]
type: testharness
[XMLHttpRequest: status/statusText - various responses 7 (GET 402)]
expected: FAIL
[XMLHttpRequest: status/statusText - various responses 9 (CHICKEN 402)]
expected: FAIL

View file

@ -0,0 +1,5 @@
[xmlhttprequest-network-error-sync.htm]
type: testharness
[XMLHttpRequest: members during network errors (sync)]
expected: FAIL

View file

@ -0,0 +1,5 @@
[xmlhttprequest-network-error.htm]
type: testharness
[XMLHttpRequest: members during network errors]
expected: FAIL

View file

@ -1,5 +0,0 @@
[xhr_responseType_document.html]
type: testharness
[XHR - retrieve HTML document: document.contentType === 'application/xml']
expected: FAIL

View file

@ -0,0 +1,3 @@
[001.html]
type: testharness
expected: CRASH

View file

@ -0,0 +1,6 @@
[002.html]
type: testharness
expected: TIMEOUT
[sync XMLHttpRequest in dedicated worker]
expected: TIMEOUT