use a debug function with time stamps
[mkws-moved-to-github.git] / test / spec / mkws-pazpar2.js
index 96380a7..bf4af6a 100644 (file)
@@ -6,7 +6,10 @@
 
 // get references from mkws.js, lazy evaluation
 var debug = function (text) {
-        mkws.log("Jasmine: " + text)
+        // use a debug function with time stamps
+        mkws.teams["AUTO"].log("Jasmine: " + text);
+
+        //mkws.log("Jasmine: " + text)
     }
 
     // Define empty jasmine_config for simple applications that don't define it.
@@ -600,13 +603,13 @@ describe("Check per page options", function () {
 
             $("div.mkwsRecords").bind("DOMNodeInserted DOMNodeRemoved propertychange", function () {
                 waitcount++;
-                // debug("DOM wait for change, per page: " + waitcount);
+                debug("DOM wait for change, per page: " + waitcount);
             });
         });
 
         waitsFor(function () {
             //debug("wait for: " + waitcount);
-            return waitcount >= 6 ? true : false;
+            return waitcount >= 30 ? true : false;
         }, "Records DOM change, by per page", 3 * jasmine_config.second);
 
         runs(function () {