| OLD | NEW |
| (Empty) |
| 1 <script> | |
| 2 function gc() | |
| 3 { | |
| 4 if (window.GCController) | |
| 5 return GCController.collect(); | |
| 6 | |
| 7 for (var i = 0; i < 10000; i++) { | |
| 8 var s = new String(""); | |
| 9 } | |
| 10 } | |
| 11 | |
| 12 onload = function() | |
| 13 { | |
| 14 if (window.testRunner) | |
| 15 testRunner.dumpAsText(); | |
| 16 | |
| 17 document.getElementById('container').addEventListener('overflowchanged',
function() { }, false); | |
| 18 document.body.offsetTop; | |
| 19 document.removeChild(document.firstChild); | |
| 20 gc(); | |
| 21 } | |
| 22 </script> | |
| 23 <body> | |
| 24 Test passes if it does not crash. | |
| 25 <div id="container" style="height: 200%;"></div> | |
| 26 </body> | |
| OLD | NEW |