projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check for DOMSubtreeModified and a first link
[mkws-moved-to-github.git]
/
test
/
spec
/
mkws-pazpar2.js
diff --git
a/test/spec/mkws-pazpar2.js
b/test/spec/mkws-pazpar2.js
index
7e180c3
..
9503683
100644
(file)
--- a/
test/spec/mkws-pazpar2.js
+++ b/
test/spec/mkws-pazpar2.js
@@
-321,6
+321,7
@@
describe("Check Termlist", function () {
describe("Check record list", function () {
it("got a record", function () {
describe("Check record list", function () {
it("got a record", function () {
+ var linkaddr = "div.mkwsRecords div.record:nth-child(1) a";
var waitcount = 0;
// wait for new records
var waitcount = 0;
// wait for new records
@@
-330,14
+331,13
@@
describe("Check record list", function () {
});
waitsFor(function () {
});
waitsFor(function () {
- return waitcount;
- }, "wait until we see a record", 1.5 * jasmine_config.second);
+ return waitcount > 0 && $(linkaddr).length > 0;
+ }, "wait until we see a new record", 2.2 * jasmine_config.second);
runs(function () {
expect(waitcount).toBeGreaterThan(0);
$("div.mkwsRecords").unbind("DOMSubtreeModified");
});
runs(function () {
expect(waitcount).toBeGreaterThan(0);
$("div.mkwsRecords").unbind("DOMSubtreeModified");
});
-
});
});
});
});