MCPcopy Create free account
hub / github.com/unconed/TermKit / validTest

Function validTest

HTML/external/jquery-ui/development-bundle/external/qunit.js:609–635  ·  view source on GitHub ↗
( name )

Source from the content-addressed store, hash-verified

607}
608
609function validTest( name ) {
610 var i = config.filters.length,
611 run = false;
612
613 if ( !i ) {
614 return true;
615 }
616
617 while ( i-- ) {
618 var filter = config.filters[i],
619 not = filter.charAt(0) == '!';
620
621 if ( not ) {
622 filter = filter.slice(1);
623 }
624
625 if ( name.indexOf(filter) !== -1 ) {
626 return !not;
627 }
628
629 if ( not ) {
630 run = true;
631 }
632 }
633
634 return run;
635}
636
637function escapeHtml(s) {
638 s = s === null ? "" : s + "";

Callers 1

qunit.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected