OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> |
| 5 <script> |
| 6 jsTestIsAsync = true; |
| 7 |
| 8 function runTest() { |
| 9 description('Test that document.open() doesn\'t allow frames to be attached du
ring frame detach.'); |
| 10 window[0].document.open(); |
| 11 window[0].document.appendChild(document.createElement('iframe')); |
| 12 window[0][0].addEventListener('unload', function() { |
| 13 window[0].document.documentElement.appendChild(document.createElement('ifram
e')); |
| 14 shouldBe('1', 'window[0].length'); |
| 15 shouldBeUndefined('window[0][1]'); |
| 16 finishJSTest(); |
| 17 }); |
| 18 window[0].location = 'data:text/plain,Hello world!'; |
| 19 } |
| 20 </script> |
| 21 </head> |
| 22 <body onload="runTest()"> |
| 23 <iframe></iframe> |
| 24 </body> |
| 25 </html> |
OLD | NEW |