Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / linkHeader / link-dnsprefetch-valid.php
blobf9587ae556c8c9fec6a1232f17671abf3d9a9d2b
1 <?php
2 header("Link: < http://wut.com.test/>; rel=dns-prefetch");
3 ?>
4 <!DOCTYPE html>
5 <script>
6 if (window.testRunner) {
7 testRunner.dumpAsText();
8 testRunner.waitUntilDone();
10 if (window.internals) {
11 internals.settings.setLogDnsPrefetchAndPreconnect(true);
12 internals.settings.setLinkHeaderEnabled(true);
14 if (!localStorage.getItem("reloaded")) {
15 localStorage.setItem("reloaded", true);
16 location.reload();
17 } else {
18 localStorage.removeItem("reloaded");
20 </script>
21 This test check if a Link header triggered a dns prefetch.
22 <script>
23 if (window.testRunner)
24 testRunner.notifyDone();
25 </script>