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

Side by Side Diff: LayoutTests/http/tests/htmlimports/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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <head>
3 <script src="/js-test-resources/js-test.js"></script>
4 <link rel="import" href="resources/no-encoding.cgi">
5 <link rel="import" href="resources/http-encoding.cgi">
6 </head>
7 <body>
8 <script>
9 description("Test that UTF-8 decoding is applied appropriately to imports");
10 jsTestIsAsync = true;
11 window.onload = function() {
12 links = document.querySelectorAll('link[rel=import]');
13 debug("Default encoding should be UTF-8...");
14 shouldBeEqualToString("links[0].import.characterSet", "UTF-8");
15 debug("And Content-Type headers should be ignored...");
16 shouldBeEqualToString("links[1].import.characterSet", "UTF-8");
17 finishJSTest();
18 };
19 </script>
20 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fast/html/imports/resources/no-encoding.html ('k') | LayoutTests/http/tests/htmlimports/encoding-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698