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: michael@0: showTabView(function () { michael@0: let cw = TabView.getContentWindow(); michael@0: michael@0: let groupItem = createGroupItemWithBlankTabs(window, 200, 240, 20, 4) michael@0: ok(!groupItem.isStacked(), 'groupItem is not stacked'); michael@0: cw.GroupItems.pauseArrange(); michael@0: michael@0: groupItem.setSize(100, 100, true); michael@0: groupItem.setUserSize(); michael@0: ok(!groupItem.isStacked(), 'groupItem is still not stacked'); michael@0: michael@0: cw.GroupItems.resumeArrange(); michael@0: ok(groupItem.isStacked(), 'groupItem is now stacked'); michael@0: michael@0: closeGroupItem(groupItem, function () hideTabView(finish)); michael@0: }); michael@0: }