(err: Error)
| 72 | } |
| 73 | |
| 74 | mockError(err: Error) { |
| 75 | // Mimic behavior described by |
| 76 | // https://html.spec.whatwg.org/multipage/scripting.html#execute-the-script-block |
| 77 | if (this.mock!.ownerDocument === this) { |
| 78 | this.mock!.listeners.error!(err); |
| 79 | } |
| 80 | } |
| 81 | } |