<iframe id=myframe srcdoc='text'></iframe> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
myframe.removeAttribute('srcdoc'); | |
window.onload = () => { | |
document.getElementById('log').textContent = myframe.contentDocument.body.innerText; | |
}; | |
</script> | |
Test passes if the page does not crash and iframe content is empty: | |
<div id=log></div> |