- // wait for new records
- $("div.mkwsRecords").bind("DOMSubtreeModified propertychange", function () {
- waitcount++;
- debug("DOM div.mkwsRecords changed");
+ return clients.length == 1 && clients.text().match("/1$");
+ }, "wait for Active clients: x/1", 5 * jasmine_config.second);
+
+ runs(function () {
+ var clients = $("div#mkwsStat span.clients");
+ debug("span.clients: " + clients.text());
+ expect(clients.text()).toMatch("/1$");