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: requestLongerTimeout(2); michael@0: waitForExplicitFinish(); michael@0: michael@0: newWindowWithTabView(function (win) { michael@0: registerCleanupFunction(function () win.close()); michael@0: michael@0: let cw = win.TabView.getContentWindow(); michael@0: let groupItem = cw.GroupItems.groupItems[0]; michael@0: let tabItem = groupItem.getChild(0); michael@0: michael@0: hideGroupItem(groupItem, function () { michael@0: unhideGroupItem(groupItem, function () { michael@0: let bounds = tabItem.getBounds(); michael@0: groupItem.arrange({immediately: true}); michael@0: ok(bounds.equals(tabItem.getBounds()), michael@0: "tabItem bounds were correct after unhiding the groupItem"); michael@0: michael@0: finish(); michael@0: }); michael@0: }); michael@0: }); michael@0: }