Add sp_auth_credentials setting for tpl.html
[mkws-moved-to-github.git] / test / js / mkws-jasmine-run.js
index 3b9b29e..72ea206 100644 (file)
@@ -7,12 +7,12 @@
 function mkws_jasmine_init(delay) {
     var currentWindowOnload = window.onload;
 
-    window.onload = function() {
+    window.onload = function () {
         if (currentWindowOnload) {
             currentWindowOnload();
         }
         if (delay) {
-            setTimeout(function() {
+            setTimeout(function () {
                 execJasmine()
             }, delay);
         } else {
@@ -27,7 +27,7 @@ function mkws_jasmine_init(delay) {
         var htmlReporter = new jasmine.HtmlReporter();
         jasmineEnv.addReporter(htmlReporter);
 
-        jasmineEnv.specFilter = function(spec) {
+        jasmineEnv.specFilter = function (spec) {
             return htmlReporter.specFilter(spec);
         };
 
@@ -35,5 +35,8 @@ function mkws_jasmine_init(delay) {
     }
 };
 
-/* EOF */
+mkws.$(document).ready(function () {
+    mkws_jasmine_init(0);
+});
 
+/* EOF */