projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
39a083c
)
indent
author
Wolfram Schneider
<wosch@indexdata.dk>
Wed, 18 Dec 2013 16:19:27 +0000
(16:19 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Wed, 18 Dec 2013 16:19:27 +0000
(16:19 +0000)
test/spec/mkws-pazpar2.js
patch
|
blob
|
history
diff --git
a/test/spec/mkws-pazpar2.js
b/test/spec/mkws-pazpar2.js
index
89c1ef6
..
c063635
100644
(file)
--- a/
test/spec/mkws-pazpar2.js
+++ b/
test/spec/mkws-pazpar2.js
@@
-5,26
+5,27
@@
*/
// get references from mkws.js, lazy evaluation
*/
// 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 () {
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 () {
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);
}, "wait for Active clients: 0/1", 4 * 1000);
- /*
+/*
runs(function () {
var clients = $("div#mkwsStat span.clients");
debug("span.clients: " + clients.text());
runs(function () {
var clients = $("div#mkwsStat span.clients");
debug("span.clients: " + clients.text());