B2G/gecko/toolkit/components/url-classifier/tests/unit/head_urlclassifier.js
/**
 * Check a set of assertions against the gAssertions table.
 */
Check a set of assertions against the gAssertions table.
Check a set of assertions against the gAssertions table .
function checkAssertions(assertions, doneCallback)
{
  var checkAssertion = function() {
    for (var i in assertions) {
      var data = assertions[i];
      delete assertions[i];
      gAssertions[i](data, checkAssertion);
      return;
    }
    doneCallback();
  }
  checkAssertion();
}
function checkAssertions ( assertions , doneCallback ) { var checkAssertion = function ( ) { for ( var i in assertions ) { var data = assertions [ i ] ; delete assertions [ i ] ; gAssertions [ i ] ( data , checkAssertion ) ; return ; } doneCallback ( ) ; } checkAssertion ( ) ; }
Check a set of assertions against the gAssertions table.
Check a set of assertions against the gAssertions table .