B2G/gecko/toolkit/components/places/tests/head_common.js
/**
 * Tests that a guid was set in moz_places for a given uri.
 *
 * @param aURI
 *        The uri to check.
 * @param [optional] aGUID
 *        The expected guid in the database.
 */
Tests that a guid was set in moz_places for a given uri.
@param aURI
The uri to check.
@param [optional] aGUID
The expected guid in the database.
Tests that a guid was set in moz_places for a given uri . @param aURI The uri to check . @param [ optional ] aGUID The expected guid in the database .
function do_check_guid_for_uri(aURI,
                               aGUID)
{
  let caller = Components.stack.caller;
  let guid = do_get_guid_for_uri(aURI, caller);
  if (aGUID) {
    do_check_valid_places_guid(aGUID, caller);
    do_check_eq(guid, aGUID, caller);
  }
}
function do_check_guid_for_uri ( aURI , aGUID ) { let caller = Components . stack . caller ; let guid = do_get_guid_for_uri ( aURI , caller ) ; if ( aGUID ) { do_check_valid_places_guid ( aGUID , caller ) ; do_check_eq ( guid , aGUID , caller ) ; } }
Tests that a guid was set in moz_places for a given uri.
Tests that a guid was set in moz_places for a given uri .