Auto merge of #8739 - jitendra29:finalMimeAndCharsetHelper, r=eefriedman

M1504: Implement final charset support for text_response method

Following changes have been made:

* Added final_mime_type and final_charset helper methods to return the appropriate final mime/charset values
* Modified the text_response method to use the final_charset instead of directly using the response charset

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8739)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-12-03 12:27:19 +05:30
commit 6ec454b7f5
4 changed files with 30 additions and 30 deletions

View file

@ -1,5 +0,0 @@
[overridemimetype-headers-received-state-force-shiftjis.htm]
type: testharness
[XMLHttpRequest: overrideMimeType() in HEADERS RECEIVED state, enforcing Shift-JIS encoding]
expected: FAIL

View file

@ -1,6 +0,0 @@
[overridemimetype-open-state-force-utf-8.htm]
type: testharness
expected: TIMEOUT
[XMLHttpRequest: overrideMimeType() in open state, enforcing UTF-8 encoding]
expected: TIMEOUT

View file

@ -1,6 +0,0 @@
[overridemimetype-unsent-state-force-shiftjis.htm]
type: testharness
expected: TIMEOUT
[XMLHttpRequest: overrideMimeType() in unsent state, enforcing Shift-JIS encoding]
expected: TIMEOUT