B2G/gecko/toolkit/components/places/tests/unit/test_399264_query_to_string.js
/**
 * Obtains the id of the folder obtained from the query.
 *
 * @param aFolderID
 *        The id of the folder we want to generate a query for.
 * @returns the string representation of the query for the given folder.
 */
Obtains the id of the folder obtained from the query.
@param aFolderID
The id of the folder we want to generate a query for.
@returns the string representation of the query for the given folder.
Obtains the id of the folder obtained from the query . @param aFolderID The id of the folder we want to generate a query for . @returns the string representation of the query for the given folder .
function query_string(aFolderID)
{
  var hs = Cc["@mozilla.org/browser/nav-history-service;1"].
           getService(Ci.nsINavHistoryService);
  var query = hs.getNewQuery();
  query.setFolders([aFolderID], 1);
  var options = hs.getNewQueryOptions();
  return hs.queriesToQueryString([query], 1, options);
}
function query_string ( aFolderID ) { var hs = Cc [ "@mozilla.org/browser/nav-history-service;1" ] . getService ( Ci . nsINavHistoryService ) ; var query = hs . getNewQuery ( ) ; query . setFolders ( [ aFolderID ] , 1 ) ; var options = hs . getNewQueryOptions ( ) ; return hs . queriesToQueryString ( [ query ] , 1 , options ) ; }
Obtains the id of the folder obtained from the query.
Obtains the id of the folder obtained from the query .