third_party/js/mozmill/shared-modules/addons.js
function addonsManager_waitForSearchFinished(aSpec) {
    var spec = aSpec || { };
    var timeout = (spec.timeout == undefined) ? TIMEOUT_SEARCH : spec.timeout;

    // TODO: restore after 1.5.1 has landed
    // var self = this;
    // 
    // mozmill.utils.waitFor(function () {
    //   return self.isSearching == false;
    // }, timeout, 100, "Search has been finished");
    
    mozmill.utils.waitForEval("subject.isSearching == false", 
                              timeout, 100, this);
  }
function addonsManager_waitForSearchFinished(aSpec) {
    var spec = aSpec || { };
    var timeout = (spec.timeout == undefined) ? TIMEOUT_SEARCH : spec.timeout;

    // TODO: restore after 1.5.1 has landed
    // var self = this;
    // 
    // mozmill.utils.waitFor(function () {
    //   return self.isSearching == false;
    // }, timeout, 100, "Search has been finished");
    
    mozmill.utils.waitForEval("subject.isSearching == false", 
                              timeout, 100, this);
  }
function addonsManager_waitForSearchFinished ( aSpec ) { var spec = aSpec || { } ; var timeout = ( spec . timeout == undefined ) ? TIMEOUT_SEARCH : spec . timeout ; // TODO: restore after 1.5.1 has landed // var self = this; //  // mozmill.utils.waitFor(function () { //   return self.isSearching == false; // }, timeout, 100, "Search has been finished"); mozmill . utils . waitForEval ( "subject.isSearching == false" , timeout , 100 , this ) ; }
Waits until the active search has been finished

@param {object} aSpec
Object with parameters for customization
Elements: timeout - Duration to wait for the target state
Waits until the active search has been finished