B2G/gecko/toolkit/components/places/tests/queries/test_tags.js
/**
 * Executes the given query and compares the results to the given URIs.
 * See queryResultsAre().
 *
 * @param aQuery
 *        An nsINavHistoryQuery
 * @param aQueryOpts
 *        An nsINavHistoryQueryOptions
 * @param aExpectedURIs
 *        Array of URIs (as strings) that aResultRoot should contain
 */
Executes the given query and compares the results to the given URIs.


Executes the given query and compares the results to the given URIs .
function executeAndCheckQueryResults(aQuery, aQueryOpts, aExpectedURIs) {
  var root = PlacesUtils.history.executeQuery(aQuery, aQueryOpts).root;
  root.containerOpen = true;
  queryResultsAre(root, aExpectedURIs);
  root.containerOpen = false;
}
function executeAndCheckQueryResults ( aQuery , aQueryOpts , aExpectedURIs ) { var root = PlacesUtils . history . executeQuery ( aQuery , aQueryOpts ) . root ; root . containerOpen = true ; queryResultsAre ( root , aExpectedURIs ) ; root . containerOpen = false ; }
Executes the given query and compares the results to the given URIs.
Executes the given query and compares the results to the given URIs .