browser/components/tabview/test/browser_tabview_bug624953.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/components/tabview/test/browser_tabview_bug624953.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +/* Any copyright is dedicated to the Public Domain.
     1.5 +   http://creativecommons.org/publicdomain/zero/1.0/ */
     1.6 +
     1.7 +function test() {
     1.8 +  waitForExplicitFinish();
     1.9 +
    1.10 +  showTabView(function () {
    1.11 +    let cw = TabView.getContentWindow();
    1.12 +
    1.13 +    let groupItem = createGroupItemWithBlankTabs(window, 200, 240, 20, 4)
    1.14 +    ok(!groupItem.isStacked(), 'groupItem is not stacked');
    1.15 +    cw.GroupItems.pauseArrange();
    1.16 +
    1.17 +    groupItem.setSize(100, 100, true);
    1.18 +    groupItem.setUserSize();
    1.19 +    ok(!groupItem.isStacked(), 'groupItem is still not stacked');
    1.20 +
    1.21 +    cw.GroupItems.resumeArrange();
    1.22 +    ok(groupItem.isStacked(), 'groupItem is now stacked');
    1.23 +
    1.24 +    closeGroupItem(groupItem, function () hideTabView(finish));
    1.25 +  });
    1.26 +}

mercurial