B2G/gecko/browser/base/content/test/browser_sanitizeDialog.js
/**
 * Ensures that the specified form entries are either cleared or not.
 *
 * @param aFormEntries
 *        Array of form entry names
 * @param aShouldBeCleared
 *        True if each form entry should be cleared, false otherwise
 */
Ensures that the specified form entries are either cleared or not.
@param aFormEntries
Array of form entry names
@param aShouldBeCleared
True if each form entry should be cleared, false otherwise
Ensures that the specified form entries are either cleared or not . @param aFormEntries Array of form entry names @param aShouldBeCleared True if each form entry should be cleared false otherwise
function ensureFormEntriesClearedState(aFormEntries, aShouldBeCleared) {
  let niceStr = aShouldBeCleared ? "no longer" : "still";
  aFormEntries.forEach(function (entry) {
    is(formhist.nameExists(entry), !aShouldBeCleared,
       "form entry " + entry + " should " + niceStr + " exist");
  });
}
function ensureFormEntriesClearedState ( aFormEntries , aShouldBeCleared ) { let niceStr = aShouldBeCleared ? "no longer" : "still" ; aFormEntries . forEach ( function ( entry ) { is ( formhist . nameExists ( entry ) , ! aShouldBeCleared , "form entry " + entry + " should " + niceStr + " exist" ) ; } ) ; }
Ensures that the specified form entries are either cleared or not.
Ensures that the specified form entries are either cleared or not .