2 header("Link: < //wut.com.test/>; rel=preconnect");
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);
18 localStorage
.removeItem("reloaded");
21 This test check
if a Link header triggered a dns prefetch
.
23 if (window
.testRunner
)
24 testRunner
.notifyDone();