B2G/gecko/toolkit/components/places/tests/unit/test_248970.js
/**
 * Function fills history, one for each transition type.
 * second batch of history items
 */
Function fills history, one for each transition type.
second batch of history items
Function fills history one for each transition type . second batch of history items
function fill_history_nonvisitedURI() {
  PlacesUtils.history.runInBatchMode({
    runBatched: function (aUserData) {
      add_visit(nonvisited_URIs[0], PlacesUtils.history.TRANSITION_TYPED);
      add_visit(nonvisited_URIs[1], PlacesUtils.history.TRANSITION_BOOKMARK);
      add_visit(nonvisited_URIs[2], PlacesUtils.history.TRANSITION_LINK);
      add_visit(nonvisited_URIs[3], PlacesUtils.history.TRANSITION_DOWNLOAD);
      add_visit(nonvisited_URIs[4], PlacesUtils.history.TRANSITION_EMBED);
      add_visit(nonvisited_URIs[5], PlacesUtils.history.TRANSITION_FRAMED_LINK);
      add_visit(nonvisited_URIs[6], PlacesUtils.history.TRANSITION_REDIRECT_PERMANENT);
      add_visit(nonvisited_URIs[7], PlacesUtils.history.TRANSITION_REDIRECT_TEMPORARY);
    }
  }, null);
}
function fill_history_nonvisitedURI ( ) { PlacesUtils . history . runInBatchMode ( { runBatched : function ( aUserData ) { add_visit ( nonvisited_URIs [ 0 ] , PlacesUtils . history . TRANSITION_TYPED ) ; add_visit ( nonvisited_URIs [ 1 ] , PlacesUtils . history . TRANSITION_BOOKMARK ) ; add_visit ( nonvisited_URIs [ 2 ] , PlacesUtils . history . TRANSITION_LINK ) ; add_visit ( nonvisited_URIs [ 3 ] , PlacesUtils . history . TRANSITION_DOWNLOAD ) ; add_visit ( nonvisited_URIs [ 4 ] , PlacesUtils . history . TRANSITION_EMBED ) ; add_visit ( nonvisited_URIs [ 5 ] , PlacesUtils . history . TRANSITION_FRAMED_LINK ) ; add_visit ( nonvisited_URIs [ 6 ] , PlacesUtils . history . TRANSITION_REDIRECT_PERMANENT ) ; add_visit ( nonvisited_URIs [ 7 ] , PlacesUtils . history . TRANSITION_REDIRECT_TEMPORARY ) ; } } , null ) ; }
Function fills history, one for each transition type.
Function fills history one for each transition type .