Pass | EventTarget methods on Window instances are inherited from the EventTarget prototype | Asserts runPass | assert_equals(function "function addEventListener() { [native code] }", function "function addEventListener() { [native code] }")
at Test.<anonymous> ( /dom/window-extends-event-target.html:14:3) | Pass | assert_equals(function "function removeEventListener() { [native code] }", function "function removeEventListener() { [native code] }")
at Test.<anonymous> ( /dom/window-extends-event-target.html:15:3) | Pass | assert_equals(function "function dispatchEvent() { [native code] }", function "function dispatchEvent() { [native code] }")
at Test.<anonymous> ( /dom/window-extends-event-target.html:16:3) |
|
Pass | window.addEventListener respects custom `this` | Asserts runPass | assert_equals(Element node <body> <script> "use strict"; test(() => { assert_equ..., Element node <body> <script> "use strict"; test(() => { assert_equ...)
at Test.<anonymous> ( /dom/window-extends-event-target.html:34:3) |
|
Pass | window.addEventListener treats nullish `this` as `window` | Asserts runPass | assert_equals(object "[object Window]", object "[object Window]")
at Test.<anonymous> ( /dom/window-extends-event-target.html:52:3) |
|