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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/html/imports/encoding-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <head>
3 <script src="../../../resources/js-test.js"></script>
4 <link rel="import" href="resources/no-encoding.html">
5 <link rel="import" href="resources/meta-encoding.html">
6 </head>
7 <body>
8 <script>
9 jsTestIsAsync = true;
10 window.onload = function() {
11 description("Test that UTF-8 decoding is applied appropriately to imports");
12
13 links = document.querySelectorAll('link[rel=import]');
14 debug("Default encoding should be UTF-8...");
15 shouldBeEqualToString("links[0].import.characterSet", "UTF-8");
16 debug("And a meta tag should not override it...");
17 shouldBeEqualToString("links[1].import.characterSet", "UTF-8");
18 finishJSTest();
19 };
20 </script>
21 </body>
OLDNEW
« 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