Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / loading / resources / preloaded.js
blob118975c0ab297f53c55518ef48b0f80dcd1d9c41
1 var results=[];
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);
11 else
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]));