Bug 593378. browser_bug559991.js needs to restore original functions before closing tab, and browser_autofocus_background.js shouldn't close all tabs which would close the test window. r=mounir rs=gavin a=blocking-beta6

This commit is contained in:
Felipe Gomes 2010-09-10 15:42:20 -03:00
parent 2582d73897
commit 2f04ed9a59
3 changed files with 3 additions and 3 deletions

View File

@ -43,9 +43,9 @@ function test() {
// -------------
// Test clean-up
function endTest() {
gBrowser.removeTab(tab);
FullZoom._applyPrefToSetting = oldAPTS;
FullZoom.onLocationChange = oldOLC;
gBrowser.removeTab(tab);
oldAPTS = null;
oldOLC = null;

View File

@ -46,7 +46,7 @@ include $(topsrcdir)/config/rules.mk
_BROWSER_FILES = \
browser_focus_steal_from_chrome.js \
$(warning browser_autofocus_background.js temporarily disabled, see bug 593378) \
browser_autofocus_background.js \
$(NULL)
libs:: $(_BROWSER_FILES)

View File

@ -45,7 +45,7 @@ function test() {
}
// Cleaning up.
for (let i = 0; i < tabs.length; i++) {
for (let i = 1; i < tabs.length; i++) {
gBrowser.removeTab(tabs[i]);
}
finish();