(win)
| 229 | } |
| 230 | |
| 231 | function makeChildIframeDocWrite(win) { |
| 232 | const doc = win.document; |
| 233 | const iframe = doc.createElement('iframe'); |
| 234 | iframe.name = 'testChild' + iframeCount++; |
| 235 | iframe.src = 'about:blank'; |
| 236 | doc.body.appendChild(iframe); |
| 237 | iframe.contentWindow.document.open(); |
| 238 | iframe.contentWindow.document.write('write: ' + iframe.name); |
| 239 | iframe.contentWindow.document.close(); |
| 240 | doc.body.appendChild(doc.createElement('hr')); |
| 241 | return iframe; |
| 242 | } |
| 243 | }); |
no test coverage detected