(global)
| 352 | * @return {!Promise} |
| 353 | */ |
| 354 | export function adoptWithMultidocDeps(global) { |
| 355 | return adoptShared(global, (global) => { |
| 356 | // Shared runtimes variables between both multi-doc and single-doc pages |
| 357 | adoptServicesAndResources(global); |
| 358 | |
| 359 | // Dependencies to the MultiDocManager |
| 360 | adoptMultiDocDeps(global); |
| 361 | |
| 362 | return waitForBodyOpenPromise(global.document).then(() => { |
| 363 | // Ensure that all declared extensions are marked and stubbed. |
| 364 | stubElementsForDoc(global.AMP.ampdoc); |
| 365 | }); |
| 366 | }); |
| 367 | } |
| 368 | |
| 369 | /** |
| 370 | * Adopt shared runtimes variables between both multi-doc and single-doc pages |
no test coverage detected