MCPcopy
hub / github.com/dataarts/dat.gui / validTest

Function validTest

tests/qunit.js:858–880  ·  view source on GitHub ↗
( name )

Source from the content-addressed store, hash-verified

856}
857
858function validTest( name ) {
859 var filter = config.filter,
860 run = false;
861
862 if ( !filter ) {
863 return true;
864 }
865
866 var not = filter.charAt( 0 ) === "!";
867 if ( not ) {
868 filter = filter.slice( 1 );
869 }
870
871 if ( name.indexOf( filter ) !== -1 ) {
872 return !not;
873 }
874
875 if ( not ) {
876 run = true;
877 }
878
879 return run;
880}
881
882// so far supports only Firefox, Chrome and Opera (buggy)
883// 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…