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

Unified Diff: LayoutTests/http/tests/htmlimports/encoding-expected.txt

Issue 178883002: Set encoding to UTF-8 for HTML Imports if no encoding is specified in the HTTP response (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/htmlimports/encoding-expected.txt
diff --git a/LayoutTests/http/tests/htmlimports/encoding-expected.txt b/LayoutTests/http/tests/htmlimports/encoding-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..b03f2c64fbcf31036088275aa08475f81a32b292
--- /dev/null
+++ b/LayoutTests/http/tests/htmlimports/encoding-expected.txt
@@ -0,0 +1,15 @@
+Test that UTF-8 decoding is applied appropriately to imports
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Default encoding should be UTF-8...
+PASS links[0].import.characterSet is "UTF-8"
+But a charset in the Content-Type HTTP header should override it...
+PASS links[1].import.characterSet is "EUC-JP"
+Any non-empty charset takes precedence, which means we sometimes fall back to sniffing...
+PASS links[2].import.characterSet is "ISO-8859-1"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698