bring debug() function back
[mkws-moved-to-github.git] / test / spec / mkws-pazpar2.js
index 7d8a563..942fb53 100644 (file)
@@ -4,7 +4,8 @@
  *
  */
 
-var debug = mkws.debug;
+var debug_level = mkws.debug_level;
+var debug = mkws.debug_function;
 
 var get_hit_counter = function () {
         // not yet here
@@ -57,6 +58,11 @@ describe("Check pazpar2 search", function () {
 });
 
 
+/*
+ * This part runs in background. It should be rewritten with
+ * async jasmine functions
+ *
+ */
 describe("Check pazpar2 navigation", function () {
     // Asynchronous part
     it("check running search next/prev", function () {
@@ -67,7 +73,7 @@ describe("Check pazpar2 navigation", function () {
                 debug("trigger click on id: " + id);
                 var click = $(id).trigger("click");
 
-                debug("next click is success: " + click.length);
+                debug("next/prev: " + id + " click is success: " + click.length);
                 expect(click.length).toBe(1);
             }, time * 1000);
         }