Index: LayoutTests/fast/dom/window-event-handlers.html |
diff --git a/LayoutTests/fast/dom/window-event-handlers.html b/LayoutTests/fast/dom/window-event-handlers.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c96f568638cbf5a1e2cba6c97d67c034929ed8f1 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/window-event-handlers.html |
@@ -0,0 +1,28 @@ |
+<!DOCTYPE html> |
+<title>WindowEventHandlers test</title> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script src="script-tests/event-handlers.js"></script> |
+<script> |
+// attribute list from WHATWG HTML Living Standard r8239 |
+[ |
+ "onafterprint", |
+ "onbeforeprint", |
+ "onbeforeunload", |
+ "onhashchange", |
+ "onmessage", |
+ "onoffline", |
+ "ononline", |
+ "onpagehide", |
+ "onpageshow", |
+ "onpopstate", |
+ "onresize", |
+ "onstorage", |
+ "onunload" |
+].forEach(function(attribute) { |
+ testEnumerate("Window", attribute); |
+ testEnumerate("HTMLBodyElement", attribute); |
+ testEnumerate("HTMLFrameSetElement", attribute); |
+}); |
+</script> |
+<div id="log"></div> |