michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: function test() { michael@0: waitForExplicitFinish(); michael@0: showTabView(onTabViewShown); michael@0: } michael@0: michael@0: function onTabViewShown() { michael@0: let contentWindow = TabView.getContentWindow(); michael@0: is(contentWindow.GroupItems.groupItems.length, 1, "Has one groupItem only"); michael@0: michael@0: let groupItem = contentWindow.GroupItems.groupItems[0]; michael@0: let tabItems = groupItem.getChildren(); michael@0: is(tabItems.length, 1, "There is only one tabItems in the groupItem"); michael@0: michael@0: let bounds = groupItem.bounds; michael@0: gBrowser.addTab(); michael@0: gBrowser.removeTab(gBrowser.tabs[1]); michael@0: ok(bounds.equals(groupItem.bounds), 'Group bounds recovered'); michael@0: michael@0: is(tabItems.length, 1, "There is only one tabItem in the groupItem"); michael@0: michael@0: hideTabView(finish); michael@0: }