()
| 64 | } |
| 65 | |
| 66 | mockLoad(): void { |
| 67 | // Mimic behavior described by |
| 68 | // https://html.spec.whatwg.org/multipage/scripting.html#execute-the-script-block |
| 69 | if (this.mock!.ownerDocument === this) { |
| 70 | this.mock!.listeners.load!(null as any); |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | mockError(err: Error) { |
| 75 | // Mimic behavior described by |