1
0
Fork 0

Added minified files to tests

closure/master
Mike Gerwitz 2011-05-23 18:38:13 -04:00
parent b3455abcb9
commit 44ea2552ba
2 changed files with 6 additions and 4 deletions

View File

@ -38,7 +38,7 @@ COMBINE=${PATH_TOOLS}/combine
.PHONY: combine doc test test-combine .PHONY: combine doc test test-combine
default: combine default: combine min
all: combine doc all: combine doc
# create build dir # create build dir

View File

@ -34,7 +34,8 @@ var common = require( './common' ),
}; };
var files = [ 'ease.js', 'ease-full.js' ], // test all combined files, including minified files
var files = [ 'ease.js', 'ease-full.js', 'ease.min.js', 'ease-full.min.js' ],
file = '', file = '',
i = files.length; i = files.length;
@ -52,7 +53,8 @@ while ( i-- )
{ {
// if the file doesn't exit, just skip the test // if the file doesn't exit, just skip the test
console.log( console.log(
"Combined file not found. Test skipped. Please run `make combined`." "Combined/minified file not found. Test skipped. Please run " +
"`make min`."
); );
process.exit( 0 ); process.exit( 0 );
} }
@ -92,7 +94,7 @@ while ( i-- )
} ); } );
// the full file has tests included to be run client-side // the full file has tests included to be run client-side
if ( file === 'ease-full.js' ) if ( file.match( /ease-full/ ) )
{ {
assert.ok( assert.ok(
( typeof sandbox.easejs.runTests === 'function' ), ( typeof sandbox.easejs.runTests === 'function' ),