diff options
author | Steve Block <steveblock@google.com> | 2011-05-20 16:21:44 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-05-24 14:11:39 +0100 |
commit | abd0b16f66097fb5317221db993dafb6bd965965 (patch) | |
tree | 35a99efae402a25abc6b82c3959d958b952ec6bb /LayoutTests/fast/dom/HTMLLinkElement/prefetch-onload.html | |
parent | 10b539940b83c9b7ea6a6ebcf8707d9841b4284f (diff) | |
download | external_webkit-abd0b16f66097fb5317221db993dafb6bd965965.zip external_webkit-abd0b16f66097fb5317221db993dafb6bd965965.tar.gz external_webkit-abd0b16f66097fb5317221db993dafb6bd965965.tar.bz2 |
Add LayoutTests/fast/dom/HTMLLinkElement at r76408
Bug: 2268353
Change-Id: I3c351413cb223af72621b9b9f0336fc66a3d4fbc
Diffstat (limited to 'LayoutTests/fast/dom/HTMLLinkElement/prefetch-onload.html')
-rw-r--r-- | LayoutTests/fast/dom/HTMLLinkElement/prefetch-onload.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/LayoutTests/fast/dom/HTMLLinkElement/prefetch-onload.html b/LayoutTests/fast/dom/HTMLLinkElement/prefetch-onload.html new file mode 100644 index 0000000..37cfdbf --- /dev/null +++ b/LayoutTests/fast/dom/HTMLLinkElement/prefetch-onload.html @@ -0,0 +1,29 @@ +<html> +<head> +<script type="text/javascript"> +function log(message) +{ + var item = document.createElement("li"); + item.appendChild(document.createTextNode(message)); + document.getElementById("console").appendChild(item); +} +function done() +{ + log("TEST PASSED."); + if (window.layoutTestController) + layoutTestController.notifyDone(); + } +if (window.layoutTestController) { + layoutTestController.dumpAsText(); + layoutTestController.waitUntilDone(); +} +</script> +</head> +<body> +<p>This tests that onload events can be attached to link elements with rel=prefetch. Since prefetch links are just there as a performance optimization, the onload event is their only programatic side-effect.</p> +<p>If it works you should see a message below saying the test has passed.</p> +<link href="prefetch.link" rel="prefetch" onload="done()" > +<hr> +<p><ol id="console"></ol></p> +</body> +</html> |