nl_tokens: generically handles each aspect of a suite / test setup / run / takedown using the commonalities in each of the objects methods and the chaining references ( o . next ) .
pl_tokens: function run ( part , suiteIndex , testIndex ) { var local ; var o ; var isSuite = true ; if ( typeof testIndex === 'number' ) { isSuite = false ; o = suites [ suiteIndex ] . tests [ testIndex ] ; } else { o = suites [ suiteIndex ] ; } if ( part === 'setup' ) { if ( isSuite ) { display . suiteBorder ( ) ; display . <mask> ( 'suite' , o ) ; // display.setup('suite'); } else { // display.linebreak(); //display.details('test', o); // display.setup('test'); } local = o . setup ; } else if ( part === 'beforeEach' ) { //display.beforeEach(); local = o . beforeEach ; } else if ( part === 'afterEach' ) { //display.afterEach(); local = o . afterEach ; } else if ( part === 'takedown' ) { // if ( isSuite ) { //   display.takedown('suite'); // } else { //   display.takedown('test'); // } local = o . takedown ; } else { // must be a test local = o . actual ; } executeTest ( part , local , suiteIndex , testIndex ) ; }