3 if (window
.testRunner
) {
4 testRunner
.dumpAsText();
7 function checkForPreload(url
, shouldbe
) {
8 var preloaded
= internals
.isPreloaded(url
);
9 if ((preloaded
&& shouldbe
) || (!preloaded
&& !shouldbe
))
10 results
.push("PASS " + url
);
12 results
.push("FAIL " + url
);
15 function printPreloadResults(){
16 for(var i
= 0; i
< results
.length
; i
++) {
17 document
.body
.appendChild(document
.createElement("br"));
18 document
.body
.appendChild(document
.createTextNode(results
[i
]));