function checkSearchLogins(aQuery, aExpectedCount)
{
  do_print("Testing searchLogins for " + JSON.stringify(aQuery));

  let expectedLogins = buildExpectedLogins(aQuery);
  do_check_eq(expectedLogins.length, aExpectedCount);

  let outCount = {};
  let logins = Services.logins.searchLogins(outCount, newPropertyBag(aQuery));
  do_check_eq(outCount.value, expectedLogins.length);
  LoginTest.assertLoginListsEqual(logins, expectedLogins);
}
/**
 * Tests the searchLogins function.
 *
 * @param aQuery
 *        Each property and value of this object is translated to an entry in
 *        the nsIPropertyBag parameter of searchLogins.
 * @param aExpectedCount
 *        Number of logins from the test data that should be found.  The actual
 *        list of logins is obtained using the buildExpectedLogins helper, and
 *        this value is just used to verify that modifications to the test data
 *        don't make the current test meaningless.
 */
Tests the searchLogins function.
@param aQuery
Each property and value of this object is translated to an entry in
the nsIPropertyBag parameter of searchLogins.
@param aExpectedCount
Number of logins from the test data that should be found.  The actual
list of logins is obtained using the buildExpectedLogins helper, and
this value is just used to verify that modifications to the test data
don't make the current test meaningless.
Tests the searchLogins function . @param aQuery Each property and value of this object is translated to an entry in the nsIPropertyBag parameter of searchLogins . @param aExpectedCount Number of logins from the test data that should be found . The actual list of logins is obtained using the buildExpectedLogins helper and this value is just used to verify that modifications to the test data don ' t make the current test meaningless .
function checkSearchLogins(aQuery, aExpectedCount)
{
  do_print("Testing searchLogins for " + JSON.stringify(aQuery));
  let expectedLogins = buildExpectedLogins(aQuery);
  do_check_eq(expectedLogins.length, aExpectedCount);
  let outCount = {};
  let logins = Services.logins.searchLogins(outCount, newPropertyBag(aQuery));
  do_check_eq(outCount.value, expectedLogins.length);
  LoginTest.assertLoginListsEqual(logins, expectedLogins);
}
function checkSearchLogins ( aQuery , aExpectedCount ) { do_print ( "Testing searchLogins for " + JSON . stringify ( aQuery ) ) ; let expectedLogins = buildExpectedLogins ( aQuery ) ; do_check_eq ( expectedLogins . length , aExpectedCount ) ; let outCount = { } ; let logins = Services . logins . searchLogins ( outCount , newPropertyBag ( aQuery ) ) ; do_check_eq ( outCount . value , expectedLogins . length ) ; LoginTest . assertLoginListsEqual ( logins , expectedLogins ) ; }
Tests the searchLogins function.
Tests the searchLogins function .