X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=test%2Fjs%2Fmkws-jasmine-run.js;fp=test%2Fjs%2Fmkws-jasmine-run.js;h=f3364b66590efb4aa6b885c5501a97b9e65869b7;hb=14c2dabff12b5b2d9c9d76dd0a5387ac921bc65c;hp=0000000000000000000000000000000000000000;hpb=d98c1d27ab6a0a93acde858e1dfc355f9b35adaa;p=mkws-moved-to-github.git diff --git a/test/js/mkws-jasmine-run.js b/test/js/mkws-jasmine-run.js new file mode 100644 index 0000000..f3364b6 --- /dev/null +++ b/test/js/mkws-jasmine-run.js @@ -0,0 +1,27 @@ + (function() { + var jasmineEnv = jasmine.getEnv(); + jasmineEnv.updateInterval = 1000; + + var htmlReporter = new jasmine.HtmlReporter(); + + jasmineEnv.addReporter(htmlReporter); + + jasmineEnv.specFilter = function(spec) { + return htmlReporter.specFilter(spec); + }; + + var currentWindowOnload = window.onload; + + window.onload = function() { + if (currentWindowOnload) { + currentWindowOnload(); + } + execJasmine(); + }; + + function execJasmine() { + jasmineEnv.execute(); + } + + })(); +