B2G/gecko/toolkit/mozapps/extensions/test/browser/browser_bug567137.js
// Test that the selected category is persisted across loads of the manager
Test that the selected category is persisted across loads of the manager
Test that the selected category is persisted across loads of the manager
function test() {
  waitForExplicitFinish();
  open_manager(null, function(aWindow) {
    let utils = new CategoryUtilities(aWindow);
    utils.openType("plugin", function() {
      close_manager(aWindow, function() {
        open_manager(null, function(aWindow) {
          utils = new CategoryUtilities(aWindow);
          is(utils.selectedCategory, "plugin", "Should have shown the plugins category");
          utils.openType("extension", function() {
            close_manager(aWindow, function() {
              open_manager(null, function(aWindow) {
                utils = new CategoryUtilities(aWindow);
                is(utils.selectedCategory, "extension", "Should have shown the extensions category");
                close_manager(aWindow, finish);
              });
            });
          });
        });
      });
    });
  });
}
function test ( ) { waitForExplicitFinish ( ) ; open_manager ( null , function ( aWindow ) { let utils = new CategoryUtilities ( aWindow ) ; utils . openType ( "plugin" , function ( ) { close_manager ( aWindow , function ( ) { open_manager ( null , function ( aWindow ) { utils = new CategoryUtilities ( aWindow ) ; is ( utils . selectedCategory , "plugin" , "Should have shown the plugins category" ) ; utils . openType ( "extension" , function ( ) { close_manager ( aWindow , function ( ) { open_manager ( null , function ( aWindow ) { utils = new CategoryUtilities ( aWindow ) ; is ( utils . selectedCategory , "extension" , "Should have shown the extensions category" ) ; close_manager ( aWindow , finish ) ; } ) ; } ) ; } ) ; } ) ; } ) ; } ) ; } ) ; }
Test that the selected category is persisted across loads of the manager
Test that the selected category is persisted across loads of the manager
// Open the plugins category // Re-open the manager // Open the extensions category // Re-open the manager