OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <meta charset="utf-8"> | 2 <meta charset="utf-8"> |
3 <title></title> | 3 <title></title> |
4 <body></body> | 4 <body></body> |
5 <script src="https://code.jquery.com/jquery-1.10.2.js"></script> | |
6 <script src="/resources/testharness.js"></script> | 5 <script src="/resources/testharness.js"></script> |
7 <script src="/resources/testharnessreport.js"></script> | 6 <script src="/resources/testharnessreport.js"></script> |
8 <script> | 7 <script> |
9 var elements = ['body', 'frameset']; | 8 var elements = ['body', 'frameset']; |
10 var handlers = [ | 9 var handlers = [ |
11 'load', 'resize', 'blur', 'focus', 'scroll', | 10 'load', 'resize', 'blur', 'focus', 'scroll', |
12 'afterprint', 'beforeprint', 'beforeunload', 'hashchange', | 11 'afterprint', 'beforeprint', 'beforeunload', 'hashchange', |
13 'languagechange', 'message', 'offline', 'online', 'pagehide', | 12 'languagechange', 'message', 'offline', 'online', 'pagehide', |
14 'pageshow', 'popstate', 'rejectionhandled', 'storage', | 13 'pageshow', 'popstate', 'rejectionhandled', 'storage', |
15 'unhandledrejection', 'unload']; | 14 'unhandledrejection', 'unload']; |
(...skipping 24 matching lines...) Expand all Loading... |
40 | 39 |
41 assert_equals(window[handlerName], windowHandler); | 40 assert_equals(window[handlerName], windowHandler); |
42 assert_equals(b[handlerName], null); | 41 assert_equals(b[handlerName], null); |
43 | 42 |
44 // Clean up window event handler | 43 // Clean up window event handler |
45 window[handlerName] = null; | 44 window[handlerName] = null; |
46 }, "Ignore setting of " + eventName + " window event handlers on windowless
" + elementName); | 45 }, "Ignore setting of " + eventName + " window event handlers on windowless
" + elementName); |
47 }); | 46 }); |
48 }); | 47 }); |
49 </script> | 48 </script> |
OLD | NEW |