MCPcopy
hub / github.com/methodofaction/Method-Draw / validTest

Function validTest

test/qunit/qunit.js:756–782  ·  view source on GitHub ↗
( name )

Source from the content-addressed store, hash-verified

754}
755
756function validTest( name ) {
757 var i = config.filters.length,
758 run = false;
759
760 if ( !i ) {
761 return true;
762 }
763
764 while ( i-- ) {
765 var filter = config.filters[i],
766 not = filter.charAt(0) == '!';
767
768 if ( not ) {
769 filter = filter.slice(1);
770 }
771
772 if ( name.indexOf(filter) !== -1 ) {
773 return !not;
774 }
775
776 if ( not ) {
777 run = true;
778 }
779 }
780
781 return run;
782}
783
784// so far supports only Firefox, Chrome and Opera (buggy)
785// could be extended in the future to use something like https://github.com/csnover/TraceKit

Callers 1

qunit.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected