* @param {!Window} win * @param {!AmpDocOptions=} opt_options
(win, opt_options)
| 793 | * @param {!AmpDocOptions=} opt_options |
| 794 | */ |
| 795 | constructor(win, opt_options) { |
| 796 | super(win, /* parent */ null, opt_options); |
| 797 | |
| 798 | /** @private @const {!Promise<!Element>} */ |
| 799 | this.bodyPromise_ = this.win.document.body |
| 800 | ? Promise.resolve(this.win.document.body) |
| 801 | : waitForBodyOpenPromise(this.win.document).then(() => this.getBody()); |
| 802 | |
| 803 | /** @private @const {!Promise} */ |
| 804 | this.readyPromise_ = whenDocumentReady(this.win.document); |
| 805 | } |
| 806 | |
| 807 | /** @override */ |
| 808 | isSingleDoc() { |
nothing calls this directly
no test coverage detected