window-extends-event-target.html
Details
- Test
/dom/window-extends-event-target.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| FAIL | EventTarget methods on Window instances are inherited from the EventTarget prototype assert_equals: expected function "function addEventListener() { [native code] }" but got function "function addEventListener() { [native code] }" |
| FAIL | window.addEventListener respects custom `this` assert_equals: expected Element node <body>
<script>
"use strict";
test(() => {
assert_equ... but got object "[object Object]" |
| PASS | window.addEventListener treats nullish `this` as `window` |