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

Unified 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, 7 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 | third_party/WebKit/LayoutTests/http/tests/preload/resources/charset.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/preload/link_preload_charset.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/preload/link_preload_charset.php b/third_party/WebKit/LayoutTests/http/tests/preload/link_preload_charset.php
new file mode 100644
index 0000000000000000000000000000000000000000..775a555f4525e349999037a8416c1ed588eb568e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/preload/link_preload_charset.php
@@ -0,0 +1,14 @@
+<?php
+header("Content-Type: text/html;charset=utf-8", false);
+header("Link: <http://127.0.0.1:8000/preload/resources/charset.js>;rel=preload;as=script", false);
+?>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script>
+ var t = async_test("Makes sure that header preloaded resources are downloaded with the document's charset");
+ window.addEventListener("load", t.step_func(function() {
+ assert_equals(window.preload_header, 'Кириллиця');
+ t.done();
+ }));
+</script>
+<script src="resources/charset.js"></script>
« 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