summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
629f916)
some browser sents 2 DOMSubtreeModified events, other only one. Make
sure it will works for both, and check for the first link too.
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
});
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");
});