summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/HTMLLinkElement/prefetch.html
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/fast/dom/HTMLLinkElement/prefetch.html')
-rw-r--r--LayoutTests/fast/dom/HTMLLinkElement/prefetch.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/LayoutTests/fast/dom/HTMLLinkElement/prefetch.html b/LayoutTests/fast/dom/HTMLLinkElement/prefetch.html
new file mode 100644
index 0000000..5c223f9
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLLinkElement/prefetch.html
@@ -0,0 +1,23 @@
+<body>
+<script>
+function log(message) {
+ var item = document.createElement("li");
+ item.appendChild(document.createTextNode(message));
+ document.getElementById("console").appendChild(item);
+}
+function prefetch_onload() {
+ log("SUCCESS! prefetch onload called.");
+ layoutTestController.notifyDone();
+}
+if (window.layoutTestController) {
+ layoutTestController.waitUntilDone();
+ layoutTestController.dumpAsText();
+ layoutTestController.dumpResourceResponseMIMETypes();
+}
+</script>
+<html>
+<p>This test requires DumpRenderTree to see the log of what resources are loaded.
+<link href="prefetch.link" rel="prefetch" onload="prefetch_onload()">
+<p><ol id="console"></ol>
+</html>
+