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:
ed3713e
)
faster check, test for real hit counter
author
Wolfram Schneider
<wosch@indexdata.dk>
Fri, 23 Aug 2013 13:57:35 +0000
(15:57 +0200)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Fri, 23 Aug 2013 13:57:35 +0000
(15:57 +0200)
test/spec/mkws-pazpar2.js
patch
|
blob
|
history
diff --git
a/test/spec/mkws-pazpar2.js
b/test/spec/mkws-pazpar2.js
index
38aec0e
..
ba93de8
100644
(file)
--- a/
test/spec/mkws-pazpar2.js
+++ b/
test/spec/mkws-pazpar2.js
@@
-53,7
+53,7
@@
describe("Check pazpar2 navigation", function () {
describe("Check pazpar2 hit counter", function () {
it("check running search hit counter", function () {
describe("Check pazpar2 hit counter", function () {
it("check running search hit counter", function () {
- var max_time = 13;
+ var max_time = 10;
var j_time = 0;
var j_hits = 0;
var j_time = 0;
var j_hits = 0;
@@
-88,22
+88,24
@@
describe("Check pazpar2 hit counter", function () {
runs(function () {
// check hit counter after N seconds
found(0, true);
runs(function () {
// check hit counter after N seconds
found(0, true);
- found(5);
- found(10);
- found(15);
+ found(3);
+ found(6);
+ found(8);
found(max_time);
});
waitsFor(function () {
return j_time == max_time ? true : false;
found(max_time);
});
waitsFor(function () {
return j_time == max_time ? true : false;
- }, "The Value should be 20 seconds", 30 * 1000); // (max_time + 1) * 1000);
+ }, "The Value should be 20 seconds", max_time * 1000);
+
+
runs(function () {
expect($("#mkwsPager").length == 1).toBe(true);
})
runs(function () {
expect(j_time <= max_time).toBeTruthy();
runs(function () {
expect($("#mkwsPager").length == 1).toBe(true);
})
runs(function () {
expect(j_time <= max_time).toBeTruthy();
- expect(j_hits > 0).toBeTruthy();
+ expect(j_hits).toBeGreaterThan(80);
});
});
});
});
});
});