+
+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
+ $("div.mkwsRecords").bind("DOMSubtreeModified propertychange", function () {
+ waitcount++;
+ debug("DOM div.mkwsRecords changed");
+ });
+
+ waitsFor(function () {
+ 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");
+ });
+ });
+});
+