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:
5f3c59b
)
run show_record() for sources and authors limited searches
author
Wolfram Schneider
<wosch@indexdata.dk>
Wed, 28 Aug 2013 12:17:50 +0000
(14:17 +0200)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Wed, 28 Aug 2013 12:17:50 +0000
(14:17 +0200)
test/spec/mkws-pazpar2.js
patch
|
blob
|
history
diff --git
a/test/spec/mkws-pazpar2.js
b/test/spec/mkws-pazpar2.js
index
20bc067
..
4fb41e6
100644
(file)
--- a/
test/spec/mkws-pazpar2.js
+++ b/
test/spec/mkws-pazpar2.js
@@
-73,11
+73,9
@@
describe("Check pazpar2 hit counter", function () {
}
function show_record() {
}
function show_record() {
- it("Show record", function () {
- var click = $("div#mkwsRecords div.record:nth-child(3) :nth-child(2)").trigger("click");
- debug("show click is success: " + click.length);
- expect(click.length == 1).toBe(true);
- });
+ var click = $("div#mkwsRecords div.record:nth-child(3) :nth-child(2)").trigger("click");
+ debug("show click is success: " + click.length);
+ expect(click.length == 1).toBe(true);
}
it("check running search hit counter", function () {
}
it("check running search hit counter", function () {
@@
-145,7
+143,6
@@
describe("Check pazpar2 hit counter", function () {
expect(authors.length == 1).toBe(true);
});
expect(authors.length == 1).toBe(true);
});
- // show_record();
it("Limit search to first source", function () {
var hits_all_targets = get_hit_counter();
it("Limit search to first source", function () {
var hits_all_targets = get_hit_counter();
@@
-172,7
+169,23
@@
describe("Check pazpar2 hit counter", function () {
});
});
});
});
- // show_record();
+ it("Show record", function () {
+ function get_time() {
+ var date = new Date();
+ return date.getTime();
+ }
+ var time = get_time();
+
+ waitsFor(function () {
+ return get_time() > time ? true : false;
+ }, "wait a second", 1 * 1000);
+
+ runs(function () {
+ show_record();
+ });
+ });
+
+
it("Limit search to first author", function () {
var hits_all_targets = get_hit_counter();
it("Limit search to first author", function () {
var hits_all_targets = get_hit_counter();
@@
-191,5
+204,7
@@
describe("Check pazpar2 hit counter", function () {
});
});
});
});
- // show_record();
+ it("Show record", function () {
+ show_record();
+ });
});
});