MCPcopy Index your code
hub / github.com/angular/angular / mockLoad

Method mockLoad

packages/common/http/test/jsonp_mock.ts:66–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

jsonp_spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected