| 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>
|
|
|