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:
3f5558d
)
whitespace
author
Heikki Levanto
<heikki@indexdata.dk>
Mon, 10 Mar 2014 14:10:51 +0000
(15:10 +0100)
committer
Heikki Levanto
<heikki@indexdata.dk>
Mon, 10 Mar 2014 14:10:51 +0000
(15:10 +0100)
test/spec/mkws-pazpar2.js
patch
|
blob
|
history
diff --git
a/test/spec/mkws-pazpar2.js
b/test/spec/mkws-pazpar2.js
index
0486f55
..
fe1e746
100644
(file)
--- a/
test/spec/mkws-pazpar2.js
+++ b/
test/spec/mkws-pazpar2.js
@@
-92,8
+92,6
@@
describe("Check MOTD before search", function () {
expect($(".mkwsMOTDContainer").length).toBe(1);
expect($(".mkwsMOTDContainer").text()).toMatch(/MOTD/);
});
expect($(".mkwsMOTDContainer").length).toBe(1);
expect($(".mkwsMOTDContainer").text()).toMatch(/MOTD/);
});
-
-
});
describe("Check pazpar2 search", function () {
});
describe("Check pazpar2 search", function () {
@@
-135,15
+133,12
@@
describe("Check MOTD after search", function () {
it("MOTD is hidden", function () {
expect($(".mkwsMOTD").length).toBe(1);
expect($(".mkwsMOTD").is(":hidden")).toBe(true);
it("MOTD is hidden", function () {
expect($(".mkwsMOTD").length).toBe(1);
expect($(".mkwsMOTD").is(":hidden")).toBe(true);
- //debug("motd " + $(".mkwsMOTD"));
debug("motd t=" + $(".mkwsMOTD").text());
debug("motd v=" + $(".mkwsMOTD").is(":visible"));
debug("motd t=" + $(".mkwsMOTD").text());
debug("motd v=" + $(".mkwsMOTD").is(":visible"));
- //expect($("div.mkwsBytarget").is(":visible")).toBe(true);
});
});
});
});
-
/*
* This part runs in background. It should be rewritten with
* async jasmine functions
/*
* This part runs in background. It should be rewritten with
* async jasmine functions
@@
-190,11
+185,9
@@
describe("Check pazpar2 hit counter", function () {
waitsFor(function () {
hits = get_hit_counter();
waitsFor(function () {
hits = get_hit_counter();
-
return hits > expected_hits;
}, "Expect " + expected_hits + " hits", max_time * jasmine_config.second);
return hits > expected_hits;
}, "Expect " + expected_hits + " hits", max_time * jasmine_config.second);
-
runs(function () {
debug("mkws pager found records: '" + hits + "'");
expect($(".mkwsPager").length).toBe(1);
runs(function () {
debug("mkws pager found records: '" + hits + "'");
expect($(".mkwsPager").length).toBe(1);
@@
-213,7
+206,6
@@
describe("Check Termlist", function () {
return $("div.mkwsFacetSources").length == 1 ? true : false;
}, "check for facet sources", 4 * jasmine_config.second);
return $("div.mkwsFacetSources").length == 1 ? true : false;
}, "check for facet sources", 4 * jasmine_config.second);
-
// everything displayed?
runs(function () {
var sources = $("div.mkwsFacetSources");
// everything displayed?
runs(function () {
var sources = $("div.mkwsFacetSources");
@@
-340,7
+332,6
@@
describe("Check record list", function () {
});
});
});
});
-
describe("Show record", function () {
var record_number = 1; // the Nth record in hit list
it("show record author", function () {
describe("Show record", function () {
var record_number = 1; // the Nth record in hit list
it("show record author", function () {
@@
-431,9
+422,7
@@
describe("Check status client counter", function () {
} else {
return false;
}
} else {
return false;
}
-
}, "wait for Active clients: 0/1", 4 * jasmine_config.second);
}, "wait for Active clients: 0/1", 4 * jasmine_config.second);
-
/*
runs(function () {
var clients = $("div#mkwsStat span.clients");
/*
runs(function () {
var clients = $("div#mkwsStat span.clients");
@@
-441,9
+430,7
@@
describe("Check status client counter", function () {
expect(clients.text()).toEqual("0/1");
});
*/
expect(clients.text()).toEqual("0/1");
});
*/
-
});
});
-
});
/* done */
});
/* done */