1
0
Fork 0

[#25] Added test case error output for browser

closure/master
Mike Gerwitz 2011-10-21 15:48:01 -04:00
parent aeff796332
commit 4d2d95a99f
1 changed files with 15 additions and 0 deletions

View File

@ -150,6 +150,21 @@ function outputTestFailures( failures )
{ {
var i, cur, name, e; var i, cur, name, e;
// if we don't have stdout access, throw an error containing each of the
// error strings
if ( typeof process === 'undefined' )
{
var err = '',
i = failures.length;
for ( i in failures )
{
err += failures[ i ][ 0 ] + '; ';
}
throw Error( err );
}
for ( i = 0; i < failures.length; i++ ) for ( i = 0; i < failures.length; i++ )
{ {
cur = failures[ i ]; cur = failures[ i ];