Orange fix from bug 599969 Part 6. Make sure we clean up the tabs we add.
This commit is contained in:
@@ -181,9 +181,20 @@ function test() {
|
||||
}
|
||||
|
||||
function runNextTest() {
|
||||
// Remove any extraneous tabs.
|
||||
for (let tabCount = gBrowser.tabContainer.childNodes.length;
|
||||
tabCount > 1; tabCount--) {
|
||||
gBrowser.selectedTab = gBrowser.tabContainer.childNodes[tabCount - 1];
|
||||
gBrowser.removeCurrentTab();
|
||||
}
|
||||
|
||||
if (tests.length == 0)
|
||||
finish();
|
||||
else {
|
||||
// Create a new tab for our test to use.
|
||||
gBrowser.selectedTab = gBrowser.addTab();
|
||||
|
||||
// Now we can run our test.
|
||||
currentTest = tests.shift();
|
||||
testPlacesPanel(function() {
|
||||
changeSidebarDirection("ltr");
|
||||
|
||||
Reference in New Issue
Block a user