*/
// 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 () {
}, "wait for Active clients: 0/1", 4 * 1000);
- /*
+/*
runs(function () {
var clients = $("div#mkwsStat span.clients");
debug("span.clients: " + clients.text());