B2G/gecko/netwerk/test/unit/test_URIs.js
// if aTestFunctor is passed in).
if aTestFunctor is passed in).
if aTestFunctor is passed in ) .
function do_check_property(aTest, aURI, aPropertyName, aTestFunctor) {
  if (aTest[aPropertyName]) {
    var expectedVal = aTestFunctor ?
                      aTestFunctor(aTest[aPropertyName]) :
                      aTest[aPropertyName];
    do_info("testing " + aPropertyName + " of " +
            (aTestFunctor ? "modified '" : "'" ) + aTest.spec +
            "' is '" + expectedVal + "'");
    do_check_eq(aURI[aPropertyName], expectedVal);
  }
}
function do_check_property ( aTest , aURI , aPropertyName , aTestFunctor ) { if ( aTest [ aPropertyName ] ) { var expectedVal = aTestFunctor ? aTestFunctor ( aTest [ aPropertyName ] ) : aTest [ aPropertyName ] ; do_info ( "testing " + aPropertyName + " of " + ( aTestFunctor ? "modified '" : "'" ) + aTest . spec + "' is '" + expectedVal + "'" ) ; do_check_eq ( aURI [ aPropertyName ] , expectedVal ) ; } }
if aTestFunctor is passed in).
if aTestFunctor is passed in ) .