B2G/gecko/content/base/test/unit/test_csputils.js
// helper to use .equals on stuff
helper to use .equals on stuff
helper to use . equals on stuff
function do_check_equivalent(foo, bar, stack) {
  if (!stack)
    stack = Components.stack.caller;
  var text = foo + ".equals(" + bar + ")";
  if(foo.equals && foo.equals(bar)) {
    ++_passedChecks;
      dump("TEST-PASS | " + stack.filename + " | [" + stack.name + " : " +
           stack.lineNumber + "] " + text + "\n");
      return;
  }
  do_throw(text, stack);
}
function do_check_equivalent ( foo , bar , stack ) { if ( ! stack ) stack = Components . stack . caller ; var text = foo + ".equals(" + bar + ")" ; if ( foo . equals && foo . equals ( bar ) ) { ++ _passedChecks ; dump ( "TEST-PASS | " + stack . filename + " | [" + stack . name + " : " + stack . lineNumber + "] " + text + "\n" ) ; return ; } do_throw ( text , stack ) ; }
helper to use .equals on stuff
helper to use . equals on stuff