blob: ed689d8b3dbc9a68cfa2278d6a1f0800dcfa8f25 [file] [log] [blame]
function checkForPreload(url, shouldPreload) {
var result = "This test should run in the WebKitTestRunner.";
if (window.internals) {
var preloaded = internals.isPreloaded(url);
if ((shouldPreload && preloaded) || (!shouldPreload && !preloaded))
result = "PASS ";
else
result = "FAIL ";
}
document.getElementsByTagName("body")[0].appendChild(document.createTextNode(result));
}