Defined browser/it.js

Entry point for writing tests with it.

run Static Function Public


Defined browser/it.js

Run all tests that are currently registered.

Arguments Returns Source
function (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);
               
}
    

Documentation generated using coddoc.