- /*
- // wait for new records, propertychange is for IE8
- $("div.mkwsRecords").bind("DOMNodeInserted propertychange", function () {
- waitcount++;
- debug("DOM DOMNodeInserted:" + waitcount + " " + $("div.mkwsRecords div.record").length);
- });
- $("div.mkwsRecords").bind("DOMNodeRemoved", function () {
- waitcount++;
- debug("DOM DOMNodeRemoved:" + waitcount + " " + $("div.mkwsRecords div.record").length);
+ 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$");