2011-02-27 17:36:36 -08:00
|
|
|
/* Any copyright is dedicated to the Public Domain.
|
|
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
2011-01-18 04:32:03 -08:00
|
|
|
|
|
|
|
function test() {
|
|
|
|
waitForExplicitFinish();
|
|
|
|
|
|
|
|
showTabView(function () {
|
|
|
|
let cw = TabView.getContentWindow();
|
|
|
|
|
2011-04-07 13:00:06 -07:00
|
|
|
let groupItem = createGroupItemWithBlankTabs(window, 200, 240, 20, 4)
|
|
|
|
ok(!groupItem.isStacked(), 'groupItem is not stacked');
|
2011-01-18 04:32:03 -08:00
|
|
|
cw.GroupItems.pauseArrange();
|
|
|
|
|
2011-04-07 13:00:06 -07:00
|
|
|
groupItem.setSize(100, 100, true);
|
2011-01-18 04:32:03 -08:00
|
|
|
groupItem.setUserSize();
|
2011-04-07 13:00:06 -07:00
|
|
|
ok(!groupItem.isStacked(), 'groupItem is still not stacked');
|
2011-01-18 04:32:03 -08:00
|
|
|
|
|
|
|
cw.GroupItems.resumeArrange();
|
2011-04-07 13:00:06 -07:00
|
|
|
ok(groupItem.isStacked(), 'groupItem is now stacked');
|
2011-01-18 04:32:03 -08:00
|
|
|
|
2011-08-15 07:03:39 -07:00
|
|
|
closeGroupItem(groupItem, function () hideTabView(finish));
|
2011-01-18 04:32:03 -08:00
|
|
|
});
|
|
|
|
}
|