Bug 774619 - Fix browser_dbg_bfcache.js test by making GCLI force GC; r=past

This commit is contained in:
Joe Walker 2013-01-15 19:38:52 +00:00
Родитель 259732578f
Коммит d6b82b5d24
2 изменённых файлов: 7 добавлений и 9 удалений

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

@ -67,5 +67,10 @@ registerCleanupFunction(function tearDown() {
gBrowser.removeCurrentTab();
}
console = undefined;
// Force GC, because it seems that GCLI can outrun the garbage collector
// in some situations, which causes test failures in later tests
// Bug 774619 is an example.
window.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIDOMWindowUtils)
.garbageCollect();
});

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

@ -85,6 +85,7 @@ MOCHITEST_BROWSER_TESTS = \
browser_dbg_iframes.js \
browser_dbg_pause-exceptions.js \
browser_dbg_multiple-windows.js \
browser_dbg_bfcache.js \
browser_dbg_breakpoint-new-script.js \
browser_dbg_bug737803_editor_actual_location.js \
browser_dbg_progress-listener-bug.js \
@ -93,14 +94,6 @@ MOCHITEST_BROWSER_TESTS = \
head.js \
$(NULL)
ifneq ($(OS_ARCH),WINNT)
MOCHITEST_BROWSER_TESTS += \
browser_dbg_bfcache.js \
$(NULL)
else
$(filter disabled-temporarily--bug-774619, browser_dbg_bfcache.js)
endif
MOCHITEST_BROWSER_PAGES = \
browser_dbg_tab1.html \
browser_dbg_tab2.html \