Bug 933226, less likely OOM when running browser_480148.js, r=mccr8, a=ryanvm CLOSED TREE

This commit is contained in:
Olli Pettay 2013-10-31 21:49:26 +02:00
Родитель 68c065a82f
Коммит 6b2f4e7dd5
1 изменённых файлов: 42 добавлений и 36 удалений

Просмотреть файл

@ -5,7 +5,7 @@
function test() {
/** Test for Bug 484108 **/
waitForExplicitFinish();
requestLongerTimeout(4);
requestLongerTimeout(5);
// builds the tests state based on a few parameters
function buildTestState(num, selected, hidden, pinned) {
@ -162,6 +162,11 @@ function test() {
return;
}
let wu = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIDOMWindowUtils);
wu.garbageCollect();
setTimeout(function() {
info ("Starting test " + (++testIndex));
let test = tests.shift();
let state = buildTestState(test.totalTabs, test.selectedTab,
@ -204,6 +209,7 @@ function test() {
win.resizeTo(windowWidth, win.outerHeight);
ss.setWindowState(win, JSON.stringify(state), true);
});
}, 1000);
};
runNextTest();