B2G/gecko/browser/base/content/test/browser_sanitizeDialog_treeView.js
/**
 * Ensures that the specified URIs are either cleared or not.
 *
 * @param aURIs
 *        Array of page URIs
 * @param aShouldBeCleared
 *        True if each visit to the URI should be cleared, false otherwise
 */
Ensures that the specified URIs are either cleared or not.
@param aURIs
Array of page URIs
@param aShouldBeCleared
True if each visit to the URI should be cleared, false otherwise
Ensures that the specified URIs are either cleared or not . @param aURIs Array of page URIs @param aShouldBeCleared True if each visit to the URI should be cleared false otherwise
function ensureHistoryClearedState(aURIs, aShouldBeCleared) {
  let niceStr = aShouldBeCleared ? "no longer" : "still";
  aURIs.forEach(function (aURI) {
    is(PlacesUtils.bhistory.isVisited(aURI), !aShouldBeCleared,
       "history visit " + aURI.spec + " should " + niceStr + " exist");
  });
}
function ensureHistoryClearedState ( aURIs , aShouldBeCleared ) { let niceStr = aShouldBeCleared ? "no longer" : "still" ; aURIs . forEach ( function ( aURI ) { is ( PlacesUtils . bhistory . isVisited ( aURI ) , ! aShouldBeCleared , "history visit " + aURI . spec + " should " + niceStr + " exist" ) ; } ) ; }
Ensures that the specified URIs are either cleared or not.
Ensures that the specified URIs are either cleared or not .