B2G/gecko/toolkit/components/places/tests/unit/test_history_observer.js
/**
 * Adds a TRANSITION_TYPED visit to the history database.
 */
Adds a TRANSITION_TYPED visit to the history database.
Adds a TRANSITION_TYPED visit to the history database .
function add_visit(uri, timestamp) {
  uri = uri || NetUtil.newURI("http://firefox.com/");
  timestamp = timestamp || Date.now() * 1000;
  PlacesUtils.history.addVisit(
    uri, timestamp, null, Ci.nsINavHistoryService.TRANSITION_TYPED, false, 0);
  return [uri, timestamp];
}
function add_visit ( uri , timestamp ) { uri = uri || NetUtil . newURI ( "http://firefox.com/" ) ; timestamp = timestamp || Date . now ( ) * 1000 ; PlacesUtils . history . addVisit ( uri , timestamp , null , Ci . nsINavHistoryService . TRANSITION_TYPED , false , 0 ) ; return [ uri , timestamp ] ; }
Adds a TRANSITION_TYPED visit to the history database.
Adds a TRANSITION_TYPED visit to the history database .