| <script src="../../resources/js-test-pre.js"></script> |
| testRunner.dumpChildFramesAsText(); |
| testRunner.waitUntilDone(); |
| var frame = document.createElement('iframe'); |
| var a = document.getElementById('a'); |
| var b = document.getElementById('b'); |
| var c = document.getElementById('c'); |
| frame.onload = function() { |
| frame.contentDocument.body.innerHTML = 'Should be visible.'; |
| frame.contentWindow.onunload = function() { |
| b.parentNode.removeChild(b); |
| shouldBeNull('frame.contentDocument'); |
| shouldNotBe('frame.contentDocument', 'null'); |
| a.parentNode.removeChild(a); |