B2G/gecko/toolkit/components/places/tests/bookmarks/test_getBookmarkedURIFor.js
/**
 * Adds a fake redirect between two visits.
 */
Adds a fake redirect between two visits.
Adds a fake redirect between two visits .
function addFakeRedirect(aSourceVisitId, aDestVisitId, aRedirectType) {
  let stmt = DBConn().createStatement(
    "UPDATE moz_historyvisits " +
    "SET from_visit = :source, visit_type = :type " +
    "WHERE id = :dest");
  stmt.params.source = aSourceVisitId;
  stmt.params.dest = aDestVisitId;
  stmt.params.type = aRedirectType;
  try {
    stmt.executeStep();
  }
  finally {
    stmt.finalize();
  }
}
function addFakeRedirect ( aSourceVisitId , aDestVisitId , aRedirectType ) { let stmt = DBConn ( ) . createStatement ( "UPDATE moz_historyvisits " + "SET from_visit = :source, visit_type = :type " + "WHERE id = :dest" ) ; stmt . params . source = aSourceVisitId ; stmt . params . dest = aDestVisitId ; stmt . params . type = aRedirectType ; try { stmt . executeStep ( ) ; } finally { stmt . finalize ( ) ; } }
Adds a fake redirect between two visits.
Adds a fake redirect between two visits .