function retrieveLoginMatching(aLoginInfo)
{
  let logins = Services.logins.findLogins({}, aLoginInfo.hostname, "", "");
  do_check_eq(logins.length, 1);
  return logins[0].QueryInterface(Ci.nsILoginMetaInfo);
}
/**
 * Retrieves the only login among the current data that matches the hostname of
 * the given nsILoginInfo.  In case there is more than one login for the
 * hostname, the test fails.
 */
Retrieves the only login among the current data that matches the hostname of
the given nsILoginInfo.  In case there is more than one login for the
hostname, the test fails.
Retrieves the only login among the current data that matches the hostname of the given nsILoginInfo . In case there is more than one login for the hostname the test fails .
function retrieveLoginMatching(aLoginInfo)
{
  let logins = Services.logins.findLogins({}, aLoginInfo.hostname, "", "");
  do_check_eq(logins.length, 1);
  return logins[0].QueryInterface(Ci.nsILoginMetaInfo);
}
function retrieveLoginMatching ( aLoginInfo ) { let logins = Services . logins . findLogins ( { } , aLoginInfo . hostname , "" , "" ) ; do_check_eq ( logins . length , 1 ) ; return logins [ 0 ] . QueryInterface ( Ci . nsILoginMetaInfo ) ; }
Retrieves the only login among the current data that matches the hostname of
 the given nsILoginInfo.
Retrieves the only login among the current data that matches the hostname of the given nsILoginInfo .