B2G/gecko/toolkit/components/downloads/test/browser/browser_bug414214.js
// The window doesn't open once we call show, so we need to wait a little bit
The window doesn't open once we call show, so we need to wait a little bit
The window doesn ' t open once we call show so we need to wait a little bit
function finishUp() {
    var dmui = Cc["@mozilla.org/download-manager-ui;1"].
               getService(Ci.nsIDownloadManagerUI);
    ok(dmui.visible, "Download Manager window is open, as expected.");
    try {
      Services.prefs.clearUserPref(PREF_BDM_CLOSEWHENDONE);
    }
    catch (err) { }
    finish();
  }
function finishUp ( ) { var dmui = Cc [ "@mozilla.org/download-manager-ui;1" ] . getService ( Ci . nsIDownloadManagerUI ) ; ok ( dmui . visible , "Download Manager window is open, as expected." ) ; try { Services . prefs . clearUserPref ( PREF_BDM_CLOSEWHENDONE ) ; } catch ( err ) { } finish ( ) ; }
The window doesn't open once we call show, so we need to wait a little bit
The window doesn ' t open once we call show so we need to wait a little bit
// Reset the pref to its default value