B2G/gecko/browser/base/content/test/browser_sanitizeDialog.js
/**
 * Ensures that the specified downloads are either cleared or not.
 *
 * @param aDownloadIDs
 *        Array of download database IDs
 * @param aShouldBeCleared
 *        True if each download should be cleared, false otherwise
 */
Ensures that the specified downloads are either cleared or not.
@param aDownloadIDs
Array of download database IDs
@param aShouldBeCleared
True if each download should be cleared, false otherwise
Ensures that the specified downloads are either cleared or not . @param aDownloadIDs Array of download database IDs @param aShouldBeCleared True if each download should be cleared false otherwise
function ensureDownloadsClearedState(aDownloadIDs, aShouldBeCleared) {
  let niceStr = aShouldBeCleared ? "no longer" : "still";
  aDownloadIDs.forEach(function (id) {
    is(downloadExists(id), !aShouldBeCleared,
       "download " + id + " should " + niceStr + " exist");
  });
}
function ensureDownloadsClearedState ( aDownloadIDs , aShouldBeCleared ) { let niceStr = aShouldBeCleared ? "no longer" : "still" ; aDownloadIDs . forEach ( function ( id ) { is ( downloadExists ( id ) , ! aShouldBeCleared , "download " + id + " should " + niceStr + " exist" ) ; } ) ; }
Ensures that the specified downloads are either cleared or not.
Ensures that the specified downloads are either cleared or not .