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/onload-completion-test.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/onload-completion-test.html')
-rw-r--r-- | LayoutTests/fast/dom/HTMLLinkElement/onload-completion-test.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/LayoutTests/fast/dom/HTMLLinkElement/onload-completion-test.html b/LayoutTests/fast/dom/HTMLLinkElement/onload-completion-test.html new file mode 100644 index 0000000..6e24184 --- /dev/null +++ b/LayoutTests/fast/dom/HTMLLinkElement/onload-completion-test.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<script text="text/javascript"> +function runtest() +{ +var nick=document.getElementById('nick'); +var row=document.getElementById('the_table').insertRow(-1); +var result=row.insertCell(0); +if (nick.naturalWidth == 320 && nick.naturalHeight == 240) + result.innerHTML = "SUCCESS."; +else + result.innerHTML = "FAILURE!"; +if (window.layoutTestController) + layoutTestController.dumpAsText(); +} +</script> +<body onload="runtest()"> +<p>This test verifies that at the time a body onload function is +called that the subresources of this page (in particular the image) +are already loaded. The page verifies that the image has the expected +dimensions at the time of the onload event, and prints its result +based on that. This is a regression test for a bug introduced by the +patch for bug 3652.</p> +<img id=nick src="resources/nick.jpg"> +<table id="the_table" border="1"> +<tr><td></td></tr> +</table> +</body> |