toolkit/mozapps/extensions/test/browser/browser_bug567137.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* Any copyright is dedicated to the Public Domain.
     2  * http://creativecommons.org/publicdomain/zero/1.0/
     3  */
     5 // Test that the selected category is persisted across loads of the manager
     7 function test() {
     8   waitForExplicitFinish();
    10   open_manager(null, function(aWindow) {
    11     let utils = new CategoryUtilities(aWindow);
    13     // Open the plugins category
    14     utils.openType("plugin", function() {
    16       // Re-open the manager
    17       close_manager(aWindow, function() {
    18         open_manager(null, function(aWindow) {
    19           utils = new CategoryUtilities(aWindow);
    21           is(utils.selectedCategory, "plugin", "Should have shown the plugins category");
    23           // Open the extensions category
    24           utils.openType("extension", function() {
    26             // Re-open the manager
    27             close_manager(aWindow, function() {
    28               open_manager(null, function(aWindow) {
    29                 utils = new CategoryUtilities(aWindow);
    31                 is(utils.selectedCategory, "extension", "Should have shown the extensions category");
    32                 close_manager(aWindow, finish);
    33               });
    34             });
    35           });
    36         });
    37       });
    38     });
    39   });
    40 }

mercurial