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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/preload/link_preload_charset.php

Issue 2026673003: Add Document encoding to header preloaded requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/preload/resources/charset.js » ('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 <?php
2 header("Content-Type: text/html;charset=utf-8", false);
3 header("Link: <http://127.0.0.1:8000/preload/resources/charset.js>;rel=preload;a s=script", false);
4 ?>
5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script>
7 <script>
8 var t = async_test("Makes sure that header preloaded resources are downloade d with the document's charset");
9 window.addEventListener("load", t.step_func(function() {
10 assert_equals(window.preload_header, 'Кириллиця');
11 t.done();
12 }));
13 </script>
14 <script src="resources/charset.js"></script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/preload/resources/charset.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698