Bug 938945, gc/cc more during test runs, f=Ms2ger, pending-r=ted, a=Tomcat on a CLOSED TREE

This commit is contained in:
Olli Pettay 2013-11-15 13:19:26 +02:00
parent 56048661e3
commit 5f1fa36bf5

View File

@ -7,6 +7,16 @@
-->
<script>
window.addEventListener("load", function() {
(parent.TestRunner || parent.wrappedJSObject.TestRunner).testUnloaded();
var runner = (parent.TestRunner || parent.wrappedJSObject.TestRunner);
runner.testUnloaded();
if (SpecialPowers) {
if (!runner.garbageCollectCount) {
runner.garbageCollectCount = 0;
}
if (runner.garbageCollectCount++ % 10 == 0) {
SpecialPowers.DOMWindowUtils.garbageCollect();
}
}
});
</script>