examples/requirejs/scripts/it.js
function run(filter) {
                var filter;
                if (typeof window !== "undefined") {
                    try {
                        it.reporter("html", "it");
                    } catch (e) {
                        it.reporter("tap");
                    }
                    var paramStr = window.location.search.substring(1);
                    var params = {};
                    if (paramStr.length > 0) {
                        _(paramStr.split('&')).forEach(function (part) {
                            var p = part.split('=');
                            params[decodeURIComponent(p[0])] = decodeURIComponent(p[1]);
                        });
                    }
                    if (params.hasOwnProperty("filter")) {
                        filter = params.filter;
                    }
                } else {
                    it.reporter("tap");
                }
                return interfaces.run(filter);
            }
function run(filter) {
                var filter;
                if (typeof window !== "undefined") {
                    try {
                        it.reporter("html", "it");
                    } catch (e) {
                        it.reporter("tap");
                    }
                    var paramStr = window.location.search.substring(1);
                    var params = {};
                    if (paramStr.length > 0) {
                        _(paramStr.split('&')).forEach(function (part) {
                            var p = part.split('=');
                            params[decodeURIComponent(p[0])] = decodeURIComponent(p[1]);
                        });
                    }
                    if (params.hasOwnProperty("filter")) {
                        filter = params.filter;
                    }
                } else {
                    it.reporter("tap");
                }
                return interfaces.run(filter);
            }
function run ( filter ) { var filter ; if ( typeof window !== "undefined" ) { try { it . reporter ( "html" , "it" ) ; } catch ( e ) { it . reporter ( "tap" ) ; } var paramStr = window . location . search . substring ( 1 ) ; var params = { } ; if ( paramStr . length > 0 ) { _ ( paramStr . split ( '&' ) ) . forEach ( function ( part ) { var p = part . split ( '=' ) ; params [ decodeURIComponent ( p [ 0 ] ) ] = decodeURIComponent ( p [ 1 ] ) ; } ) ; } if ( params . hasOwnProperty ( "filter" ) ) { filter = params . filter ; } } else { it . reporter ( "tap" ) ; } return interfaces . run ( filter ) ; }
Run all tests that are currently registered.
@return {comb.Promise} a promise that is resolved once all tests are done running.
Run all tests that are currently registered .