OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script> | 2 <script> |
3 if (window.testRunner) { | 3 if (window.testRunner) { |
4 testRunner.dumpAsText(); | 4 testRunner.dumpAsText(); |
5 testRunner.waitUntilDone(); | 5 testRunner.waitUntilDone(); |
6 } | 6 } |
7 if (window.internals) { | 7 if (window.internals) { |
8 internals.settings.setLogDnsPrefetchAndPreconnect(true); | 8 internals.settings.setLogDnsPrefetchAndPreconnect(true); |
9 internals.settings.setLinkHeaderEnabled(true); | |
10 } | 9 } |
11 document.write("<img src='resources/link-dnsprefetch-image.php' onload='if (
window.testRunner)testRunner.notifyDone()'>"); | 10 document.write("<img src='resources/link-dnsprefetch-image.php' onload='if (
window.testRunner)testRunner.notifyDone()'>"); |
12 </script> | 11 </script> |
13 This test checks if a Link header inside an iframe triggered a dns prefetch. | 12 This test checks if a Link header inside an iframe triggered a dns prefetch. |
OLD | NEW |