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

Unified Diff: LayoutTests/fast/html/imports/encoding.html

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: Merged to trunk Created 6 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/fast/html/imports/encoding-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/html/imports/encoding.html
diff --git a/LayoutTests/fast/html/imports/encoding.html b/LayoutTests/fast/html/imports/encoding.html
new file mode 100644
index 0000000000000000000000000000000000000000..8a235419b29a7fa046cf4ac17163787672f8d7e8
--- /dev/null
+++ b/LayoutTests/fast/html/imports/encoding.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<head>
+ <script src="../../../resources/js-test.js"></script>
+ <link rel="import" href="resources/no-encoding.html">
+ <link rel="import" href="resources/meta-encoding.html">
+</head>
+<body>
+<script>
+jsTestIsAsync = true;
+window.onload = function() {
+ description("Test that UTF-8 decoding is applied appropriately to imports");
+
+ links = document.querySelectorAll('link[rel=import]');
+ debug("Default encoding should be UTF-8...");
+ shouldBeEqualToString("links[0].import.characterSet", "UTF-8");
+ debug("And a meta tag should not override it...");
+ shouldBeEqualToString("links[1].import.characterSet", "UTF-8");
+ finishJSTest();
+};
+</script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/fast/html/imports/encoding-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698