Bug 589324 - Switch-to-Tab after Session Restore does not respect Tab Candy grouping [r=dietrich, a=blocking2.0]

This commit is contained in:
Raymond Lee
2010-11-13 02:37:34 +08:00
parent 06b2fb1ae6
commit ae017bb116
6 changed files with 173 additions and 10 deletions

View File

@@ -60,6 +60,13 @@ function test() {
gBrowser.selectedTab = testTab;
gBrowser.showOnlyTheseTabs([testTab]);
// if the tabview frame is initialized, we need to move the orignal tab to
// another group; otherwise, selecting a tab would make all three tabs in
// the same group to display.
let tabViewWindow = TabView.getContentWindow();
if (tabViewWindow)
tabViewWindow.GroupItems.moveTabToGroupItem(origTab, null);
visible = gBrowser.visibleTabs;
is(visible.length, 2, "2 tabs should be visible including the pinned");
is(visible[0], pinned, "first is pinned");