зеркало из https://github.com/mozilla/gecko-dev.git
Bug 933226, less likely OOM when running browser_480148.js, r=mccr8, a=ryanvm CLOSED TREE
This commit is contained in:
Родитель
68c065a82f
Коммит
6b2f4e7dd5
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче