MCPcopy
hub / github.com/Robdel12/DropKick / buildIframe

Function buildIframe

tests/utils/utils.js:54–65  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

52 * @returns { DOM Node } iframeEl - newly created iframe
53 */
54export 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.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected