Index: LayoutTests/http/tests/loading/resources/preloaded.js |
diff --git a/LayoutTests/http/tests/loading/resources/preloaded.js b/LayoutTests/http/tests/loading/resources/preloaded.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..118975c0ab297f53c55518ef48b0f80dcd1d9c41 |
--- /dev/null |
+++ b/LayoutTests/http/tests/loading/resources/preloaded.js |
@@ -0,0 +1,20 @@ |
+var results=[]; |
+ |
+if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+} |
+ |
+function checkForPreload(url, shouldbe) { |
+ var preloaded = internals.isPreloaded(url); |
+ if ((preloaded && shouldbe) || (!preloaded && !shouldbe)) |
+ results.push("PASS " + url); |
+ else |
+ results.push("FAIL " + url); |
+} |
+ |
+function printPreloadResults(){ |
+ for(var i = 0; i < results.length; i++) { |
+ document.body.appendChild(document.createElement("br")); |
+ document.body.appendChild(document.createTextNode(results[i])); |
+ } |
+} |