(id)
| 52 | * @returns { DOM Node } iframeEl - newly created iframe |
| 53 | */ |
| 54 | export function buildIframe(id) { |
| 55 | let iframeEl = document.getElementById(id); |
| 56 | let testingContainerEl = document.getElementById('testingContainer'); |
| 57 | |
| 58 | if (iframeEl) { return iframeEl; } |
| 59 | |
| 60 | iframeEl = document.createElement('iframe'); |
| 61 | iframeEl.id = id; |
| 62 | testingContainerEl.appendChild(iframeEl); |
| 63 | |
| 64 | return iframeEl; |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * Setup the testing container and clean it up after each assertion. |
no outgoing calls
no test coverage detected