lib/util.js
function generateArgs(test, title, fields, index){
    var formatting = fields.concat(),
        args = (formatting.unshift(title), formatting);
    for (var i = 1; i <= args.length - 1; i++) {
        if (args[i] === 'x') {
            args[i] = index;
        } else if (args[i] === 'element') {
            args[i] = test;
        } else {
            args[i] = dots.get(test, args[i]);
        }
    }
    return args;
}
function generateArgs(test, title, fields, index){
    var formatting = fields.concat(),
        args = (formatting.unshift(title), formatting);
    for (var i = 1; i <= args.length - 1; i++) {
        if (args[i] === 'x') {
            args[i] = index;
        } else if (args[i] === 'element') {
            args[i] = test;
        } else {
            args[i] = dots.get(test, args[i]);
        }
    }
    return args;
}
function generateArgs ( test , title , fields , index ) { var formatting = fields . concat ( ) , args = ( formatting . unshift ( title ) , formatting ) ; for ( var i = 1 ; i <= args . length - 1 ; i ++ ) { if ( args [ i ] === 'x' ) { args [ i ] = index ; } else if ( args [ i ] === 'element' ) { args [ i ] = test ; } else { args [ i ] = dots . get ( test , args [ i ] ) ; } } return args ; }
Generic replacement of the test name to a dynamic name
with a set of fields. Replaces any format sequences with
the given values, and replaces 'x' with the current iteration.

@param test		the test we're running
@param title		the test title to replace
@param fields	the fields to replace with
@param index		the index of the iteration
Generic replacement of the test name to a dynamic name with a set of fields . Replaces any format sequences with the given values and replaces x with the current iteration .