OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>HTMLBodyElement.onblur</title> |
| 3 |
| 4 <script src="../../../../../../resources/testharness.js"></script> |
| 5 <script src="../../../../../../resources/testharnessreport.js"></script> |
| 6 <div id="log"></div> |
| 7 <body> |
| 8 <script> |
| 9 function f() { |
| 10 return 0; |
| 11 } |
| 12 |
| 13 var handlers = ['blur','error','focus','load','resize','scroll', |
| 14 'afterprint','beforeprint','beforeunload','hashchange', |
| 15 'languagechange','message','offline','online','pagehide', |
| 16 'pageshow','popstate','storage','unload']; |
| 17 handlers.forEach(function(handler) { |
| 18 test(function() { |
| 19 document.body['on' + handler] = f; |
| 20 assert_equals(window['on' + handler], f); |
| 21 }); |
| 22 }); |
| 23 |
| 24 </script> |
OLD | NEW |