B2G/gecko/toolkit/components/places/tests/unit/test_async_history_api.js
/**
 * Listens for a title change notification, and calls aCallback when it gets it.
 *
 * @param aURI
 *        The URI of the page we expect a notification for.
 * @param aExpectedTitle
 *        The expected title of the URI we expect a notification for.
 * @param aCallback
 *        The method to call when we have gotten the proper notification about
 *        the title changing.
 */
Listens for a title change notification, and calls aCallback when it gets it.
@param aURI
The URI of the page we expect a notification for.
@param aExpectedTitle
The expected title of the URI we expect a notification for.
@param aCallback
The method to call when we have gotten the proper notification about
the title changing.
Listens for a title change notification and calls aCallback when it gets it . @param aURI The URI of the page we expect a notification for . @param aExpectedTitle The expected title of the URI we expect a notification for . @param aCallback The method to call when we have gotten the proper notification about the title changing .
function TitleChangedObserver(aURI,
                              aExpectedTitle,
                              aCallback)
{
  this.uri = aURI;
  this.expectedTitle = aExpectedTitle;
  this.callback = aCallback;
}
function TitleChangedObserver ( aURI , aExpectedTitle , aCallback ) { this . uri = aURI ; this . expectedTitle = aExpectedTitle ; this . callback = aCallback ; }
Listens for a title change notification, and calls aCallback when it gets it.
Listens for a title change notification and calls aCallback when it gets it .