| OLD | NEW |
| (Empty) |
| 1 <HTML> | |
| 2 | |
| 3 <script> | |
| 4 if (window.layoutTestController) | |
| 5 layoutTestController.dumpAsText(); | |
| 6 </script> | |
| 7 | |
| 8 <BODY> | |
| 9 <p>This tests that an old Safari extension, HTMLIFrameElement.document. | |
| 10 If HTMLIFrameElement.document exists, it should be an alias of HTMLIFrameElement
.contentDocument. </p> | |
| 11 | |
| 12 <p>If the test pass, it should display PASSED after the the iframe box</p> | |
| 13 <iframe id='iframe_'></iframe> | |
| 14 <div id='console'>Text should be replaced on success</div> | |
| 15 | |
| 16 </BODY> | |
| 17 | |
| 18 <script> | |
| 19 var iframe = document.getElementById('iframe_'); | |
| 20 var console = document.getElementById('console'); | |
| 21 var txt = 'This test: PASSED'; | |
| 22 if (iframe.document && iframe.document !== iframe.contentWindow.document) | |
| 23 txt = 'This test: FAILED!!!'; | |
| 24 console.innerHTML = txt; | |
| 25 </script> | |
| 26 | |
| 27 </HTML> | |
| OLD | NEW |