OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>WindowEventHandlers test</title> | 2 <title>WindowEventHandlers test</title> |
3 <script src="../../resources/testharness.js"></script> | 3 <script src="../../resources/testharness.js"></script> |
4 <script src="../../resources/testharnessreport.js"></script> | 4 <script src="../../resources/testharnessreport.js"></script> |
5 <script src="script-tests/event-handlers.js"></script> | 5 <script src="script-tests/event-handlers.js"></script> |
6 <script> | 6 <script> |
7 // attribute list from WHATWG HTML Living Standard r8239 | 7 // attribute list from WHATWG HTML Living Standard r8239 |
8 [ | 8 [ |
9 "onafterprint", | 9 "onafterprint", |
10 "onbeforeprint", | 10 "onbeforeprint", |
11 "onbeforeunload", | 11 "onbeforeunload", |
12 "onhashchange", | 12 "onhashchange", |
13 "onmessage", | 13 "onmessage", |
14 "onoffline", | 14 "onoffline", |
15 "ononline", | 15 "ononline", |
16 "onpagehide", | 16 "onpagehide", |
17 "onpageshow", | 17 "onpageshow", |
18 "onpopstate", | 18 "onpopstate", |
19 "onresize", | 19 "onresize", |
20 "onstorage", | 20 "onstorage", |
21 "onunload" | 21 "onunload" |
22 ].forEach(function(attribute) { | 22 ].forEach(function(attribute) { |
| 23 testSet("Window", attribute); |
23 testEnumerate("Window", attribute); | 24 testEnumerate("Window", attribute); |
| 25 testSet("HTMLBodyElement", attribute); |
24 testEnumerate("HTMLBodyElement", attribute); | 26 testEnumerate("HTMLBodyElement", attribute); |
| 27 testReflect("HTMLBodyElement", attribute); |
| 28 testForwardToWindow("HTMLBodyElement", attribute); |
| 29 testSet("HTMLFrameSetElement", attribute); |
25 testEnumerate("HTMLFrameSetElement", attribute); | 30 testEnumerate("HTMLFrameSetElement", attribute); |
| 31 testReflect("HTMLFrameSetElement", attribute); |
| 32 testForwardToWindow("HTMLFrameSetElement", attribute); |
26 }); | 33 }); |
27 </script> | 34 </script> |
28 <div id="log"></div> | 35 <div id="log"></div> |
OLD | NEW |