summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/beforeload/image-before-load.html
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/fast/dom/beforeload/image-before-load.html')
-rw-r--r--LayoutTests/fast/dom/beforeload/image-before-load.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/LayoutTests/fast/dom/beforeload/image-before-load.html b/LayoutTests/fast/dom/beforeload/image-before-load.html
new file mode 100644
index 0000000..4467018
--- /dev/null
+++ b/LayoutTests/fast/dom/beforeload/image-before-load.html
@@ -0,0 +1,16 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<script src="resources/print.js"></script>
+</head>
+<body>
+<div id="console"></div>
+<script>
+if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+}
+</script>
+
+<img style="display:none" onbeforeload="print('PASS', 'green'); return false;" onload="print('FAIL', 'red');" src="../../images/resources/test-load.jpg">
+
+</body>
+</html>