B2G/gecko/parser/htmlparser/tests/mochitest/parser_web_testrunner.js
/**
 * Control will bounce back and forth between nextTest() and the
 * event handler returned by makeTestChecker() or the callback returned by
 * makeFragmentTestChecker() until the 'testcases' iterator is spent.
 */
Control will bounce back and forth between nextTest() and the
event handler returned by makeTestChecker() or the callback returned by
makeFragmentTestChecker() until the 'testcases' iterator is spent.
Control will bounce back and forth between nextTest () and the event handler returned by makeTestChecker () or the callback returned by makeFragmentTestChecker () until the ' testcases ' iterator is spent .
function makeTestChecker(input, expected, errors) {
  return function (e) {
    var domAsString = docToTestOutput(e.target.contentDocument);
    if (html5Exceptions[input]) {
      todo_is(domAsString, expected, "HTML5 expected success.");
      if (domAsString == expected) {
        writeErrorSummary(input, expected, domAsString, true);
      }
    } else {
      is(domAsString, expected, "HTML5 expected success.");
      if (domAsString != expected) {
        writeErrorSummary(input, expected, domAsString, false);
      }
    }
    nextTest(e.target);
  } 
}
function makeTestChecker ( input , expected , errors ) { return function ( e ) { var domAsString = docToTestOutput ( e . target . contentDocument ) ; if ( html5Exceptions [ input ] ) { todo_is ( domAsString , expected , "HTML5 expected success." ) ; if ( domAsString == expected ) { writeErrorSummary ( input , expected , domAsString , true ) ; } } else { is ( domAsString , expected , "HTML5 expected success." ) ; if ( domAsString != expected ) { writeErrorSummary ( input , expected , domAsString , false ) ; } } nextTest ( e . target ) ; } }
Control will bounce back and forth between nextTest() and the
 event handler returned by makeTestChecker() or the callback returned by
 makeFragmentTestChecker() until the 'testcases' iterator is spent.
Control will bounce back and forth between nextTest () and the event handler returned by makeTestChecker () or the callback returned by makeFragmentTestChecker () until the ' testcases ' iterator is spent .