B2G/gecko/browser/components/tabview/test/browser_tabview_bug679853.js
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */
Any copyright is dedicated to the Public Domain.
Any copyright is dedicated to the Public Domain .
function test() {
  waitForExplicitFinish();
  registerCleanupFunction(function () {
    while (gBrowser.tabs.length > 1)
      gBrowser.removeTab(gBrowser.tabs[1]);
    hideTabView();
  });
  gBrowser.selectedTab = gBrowser.addTab();
  showTabView(function () {
    togglePrivateBrowsing(function () {
      ok(!TabView.isVisible(), "tabview is hidden");
      showTabView(function () {
        togglePrivateBrowsing(function () {
          ok(TabView.isVisible(), "tabview is visible");
          hideTabView(finish);
        });
      });
    });
  });
}
function test ( ) { waitForExplicitFinish ( ) ; registerCleanupFunction ( function ( ) { while ( gBrowser . tabs . length > 1 ) gBrowser . removeTab ( gBrowser . tabs [ 1 ] ) ; hideTabView ( ) ; } ) ; gBrowser . selectedTab = gBrowser . addTab ( ) ; showTabView ( function ( ) { togglePrivateBrowsing ( function ( ) { ok ( ! TabView . isVisible ( ) , "tabview is hidden" ) ; showTabView ( function ( ) { togglePrivateBrowsing ( function ( ) { ok ( TabView . isVisible ( ) , "tabview is visible" ) ; hideTabView ( finish ) ; } ) ; } ) ; } ) ; } ) ; }
Any copyright is dedicated to the Public Domain.
Any copyright is dedicated to the Public Domain .
// clean up after ourselves // select the new tab // enter private browsing mode // leave private browsing mode