B2G/gecko/toolkit/components/places/tests/unit/test_nsINavHistoryViewer.js
// adds a test URI visit to the database, and checks for a valid place ID
adds a test URI visit to the database, and checks for a valid place ID
adds a test URI visit to the database and checks for a valid place ID
function add_visit(aURI, aDate) {
  var date = aDate || Date.now() * 1000;
  var placeID = histsvc.addVisit(aURI,
                                 date,
                                 null, 
                                 histsvc.TRANSITION_TYPED, 
                                 false, 
                                 0);
  do_check_true(placeID > 0);
  return placeID;
}
function add_visit ( aURI , aDate ) { var date = aDate || Date . now ( ) * 1000 ; var placeID = histsvc . addVisit ( aURI , date , null , histsvc . TRANSITION_TYPED , false , 0 ) ; do_check_true ( placeID > 0 ) ; return placeID ; }
adds a test URI visit to the database, and checks for a valid place ID
adds a test URI visit to the database and checks for a valid place ID
// no referrer // user typed in URL bar // not redirect