browser/components/tabview/test/browser_tabview_bug616967.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_bug616967.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     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 +  let branch = Services.prefs.getBranch('browser.panorama.');
    1.11 +  branch.setBoolPref('experienced_first_run', false);
    1.12 +  
    1.13 +  newWindowWithTabView(function (win) {
    1.14 +    is(win.gBrowser.visibleTabs.length, 1, 'There should be one visible tab, only');
    1.15 +
    1.16 +    win.TabView._initFrame(function () {
    1.17 +      is(win.gBrowser.visibleTabs.length, 1, 'There should be one visible tab, only');
    1.18 +
    1.19 +      win.close();
    1.20 +      finish();
    1.21 +    });
    1.22 +  });
    1.23 +}

mercurial