(relativePath: string)
| 191 | } |
| 192 | |
| 193 | async addScriptTag(relativePath: string): Promise<void> { |
| 194 | await this._cdp!.Runtime.evaluate({ |
| 195 | expression: ` |
| 196 | new Promise(f => { |
| 197 | var script = document.createElement('script'); |
| 198 | script.src = '${this._root.completeUrl(relativePath)}'; |
| 199 | script.onload = () => f(undefined); |
| 200 | document.head.appendChild(script); |
| 201 | }) |
| 202 | `, |
| 203 | awaitPromise: true, |
| 204 | }); |
| 205 | } |
| 206 | |
| 207 | waitForSource(filter?: string): Promise<Dap.LoadedSourceEventParams> { |
| 208 | return this.dap.once('loadedSource', event => { |
no test coverage detected