indent
authorWolfram Schneider <wosch@indexdata.dk>
Wed, 18 Dec 2013 16:19:27 +0000 (16:19 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Wed, 18 Dec 2013 16:19:27 +0000 (16:19 +0000)
test/spec/mkws-pazpar2.js

index 89c1ef6..c063635 100644 (file)
@@ -5,26 +5,27 @@
  */
 
 // get references from mkws.js, lazy evaluation
-var debug = function (text) { mkws.debug_function(text) }
+var debug = function (text) {
+        mkws.debug_function(text)
+    }
 
 var get_hit_counter = function () {
-    // not yet here
-    if ($("#mkwsPager").length == 0)
-        return -1;
-
-    var found = $("#mkwsPager").text();
-    var re = /\([A-Za-z]+:\s+([0-9]+)\)/;
-    re.exec(found);
-    var hits = -1;
-
-    if (RegExp.$1) {
-        hits = parseInt(RegExp.$1);
-        expect(hits).toBeGreaterThan(0);
-    }
+        // not yet here
+        if ($("#mkwsPager").length == 0) return -1;
 
-    //debug("Hits: " + hits);
-    return hits;
-}
+        var found = $("#mkwsPager").text();
+        var re = /\([A-Za-z]+:\s+([0-9]+)\)/;
+        re.exec(found);
+        var hits = -1;
+
+        if (RegExp.$1) {
+            hits = parseInt(RegExp.$1);
+            expect(hits).toBeGreaterThan(0);
+        }
+
+        //debug("Hits: " + hits);
+        return hits;
+    }
 
 describe("Check pazpar2 search", function () {
     it("pazpar2 was successfully initialize", function () {
@@ -291,7 +292,7 @@ describe("Check status client counter", function () {
 
         }, "wait for Active clients: 0/1", 4 * 1000);
 
-        /*
+/*
         runs(function () {
             var clients = $("div#mkwsStat span.clients");
             debug("span.clients: " + clients.text());