From: Wolfram Schneider Date: Wed, 18 Dec 2013 16:19:27 +0000 (+0000) Subject: indent X-Git-Tag: 0.9.1~28 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=f0eb5152b81a0d2d0a8a227e9d66125c1255354c indent --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 89c1ef6..c063635 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -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());