Showing with 11 additions and 13 deletions.
  1. +2 −1 grunt.js
  2. +9 −12 qunit/qunit.js
@@ -36,7 +36,8 @@ grunt.initConfig({
sub: true,
undef: true,
eqnull: true,
proto: true
proto: true,
smarttabs: true
},
globals: {
jQuery: true,
@@ -1000,29 +1000,26 @@ function done() {
}

function validTest( name ) {
var not,
filter = config.filter,
run = false;
var include,
filter = config.filter;

// By default, run all tests
if ( !filter ) {
return true;
}

not = filter.charAt( 0 ) === "!";

if ( not ) {
include = filter.charAt( 0 ) !== "!";
if ( !include ) {
filter = filter.slice( 1 );
}

// If the filter matches, we need to honour include
if ( name.indexOf( filter ) !== -1 ) {
return !not;
}

if ( not ) {
run = true;
return include;
}

return run;
// Otherwise, do the opposite
return !include;
}

// so far supports only Firefox, Chrome and Opera (buggy), Safari (for real exceptions)