summaryrefslogtreecommitdiffstats
path: root/layout/reftests/xul-document-load/subdir/test015.js
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/xul-document-load/subdir/test015.js')
-rw-r--r--layout/reftests/xul-document-load/subdir/test015.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/layout/reftests/xul-document-load/subdir/test015.js b/layout/reftests/xul-document-load/subdir/test015.js
new file mode 100644
index 000000000..7184beaa5
--- /dev/null
+++ b/layout/reftests/xul-document-load/subdir/test015.js
@@ -0,0 +1,8 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/ */
+
+function onLoad() {
+ document.documentElement.style.backgroundColor = "green";
+}
+
+addEventListener("load", onLoad, false);