B2G/gecko/toolkit/components/places/tests/unit/test_adaptive.js
/**
 * Decay the adaptive entries by sending the daily idle topic.
 */
Decay the adaptive entries by sending the daily idle topic.
Decay the adaptive entries by sending the daily idle topic .
function doAdaptiveDecay()
{
  PlacesUtils.history.runInBatchMode({
    runBatched: function() {
      for (let i = 0; i < 10; i++) {
        PlacesUtils.history.QueryInterface(Ci.nsIObserver)
                           .observe(null, "idle-daily", null);
      }
    }
  }, this);
}
function doAdaptiveDecay ( ) { PlacesUtils . history . runInBatchMode ( { runBatched : function ( ) { for ( let i = 0 ; i < 10 ; i ++ ) { PlacesUtils . history . QueryInterface ( Ci . nsIObserver ) . observe ( null , "idle-daily" , null ) ; } } } , this ) ; }
Decay the adaptive entries by sending the daily idle topic.
Decay the adaptive entries by sending the daily idle topic .