OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
4 if (window.layoutTestController) | 4 if (window.layoutTestController) |
5 layoutTestController.dumpAsText(); | 5 layoutTestController.dumpAsText(); |
6 | 6 |
7 window.onload = function() | 7 window.onload = function() |
8 { | 8 { |
9 frame = document.body.appendChild(document.createElement("iframe")); | 9 frame = document.body.appendChild(document.createElement("iframe")); |
10 | 10 |
11 frame.contentWindow.open = null; | 11 frame.contentWindow.open = null; |
12 frame.contentWindow.__defineGetter__("open", function() { | 12 frame.contentWindow.__defineGetter__("open", function() { |
13 document.body.removeChild(frame); | 13 document.body.removeChild(frame); |
14 return function() { }; | 14 return function() { }; |
15 }); | 15 }); |
16 frame.contentDocument.open(1, 1, 1, 1, 1); | 16 frame.contentDocument.open(1, 1, 1, 1, 1); |
17 } | 17 } |
18 </script> | 18 </script> |
19 </head> | 19 </head> |
20 <body> | 20 <body> |
21 This test passes if it doesn't crash. | 21 This test passes if it doesn't crash. |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |