2 header("Content-Type: text/html; charset=utf-8");
5 # Spam a bunch of As to make sure we blow past any buffers.
6 print str_repeat("A", 2048);
10 if (window
.testRunner
)
11 testRunner
.dumpAsText();
13 function checkForPreload() {
15 if (internals
.isPreloaded("resources/preload-test.jpg"))
19 document
.getElementsByTagName("body")[0].appendChild(document
.createTextNode(result
));
22 window
.addEventListener("DOMContentLoaded", checkForPreload
, false);
26 <script src
="http://127.0.0.1:8000/resources/slow-script.pl?delay=1000"></script
>
32 document
.write("<plaintext>");
34 This test needs to be run in DRT
. Preload scanner should see the image
resource.
35 <img src
="resources/preload-test.jpg">