From: Wolfram Schneider Date: Wed, 16 Apr 2014 15:18:20 +0000 (+0000) Subject: Change ALL id="mkwsStat" to class="mkwsStat", as use of IDs is deprecated X-Git-Tag: 1.0.0~918 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=63d1cf8722e05136466950be0f85f88b8e4fc491;p=mkws-moved-to-github.git Change ALL id="mkwsStat" to class="mkwsStat", as use of IDs is deprecated --- diff --git a/test/logs/.gitignore b/test/logs/.gitignore index e0cbaa1..e69de29 100644 --- a/test/logs/.gitignore +++ b/test/logs/.gitignore @@ -1,5 +0,0 @@ -error_log -jasmine-dev -mkws-jasmine-access.log -mkws-jasmine-error.log -mkws-jasmine-rewrite.log diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 483bac7..9ae28d3 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -285,13 +285,13 @@ describe("Check Author Facets", function () { describe("Check active clients author", function () { it("check for active clients after limited author search", function () { waitsFor(function () { - var clients = $("div#mkwsStat span.clients"); + var clients = $("div.mkwsStat span.clients"); //debug("clients: " + clients.text()); return clients.length == 1 && clients.text().match("/[1-9]+[0-9]+$"); }, "wait for Active clients: x/y", 5 * jasmine_config.second); runs(function () { - var clients = $("div#mkwsStat span.clients"); + var clients = $("div.mkwsStat span.clients"); debug("span.clients: " + clients.text()); expect(clients.text()).toMatch("/[1-9]+[0-9]+$"); @@ -385,13 +385,13 @@ describe("Check record list", function () { } waitsFor(function () { - var clients = $("div#mkwsStat span.clients"); + var clients = $("div.mkwsStat span.clients"); //debug("clients: " + clients.text()); 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"); + var clients = $("div.mkwsStat span.clients"); debug("span.clients: " + clients.text()); expect(clients.text()).toMatch("/1$"); }); @@ -501,7 +501,7 @@ describe("Check status client counter", function () { } waitsFor(function () { - var clients = $("div#mkwsStat span.clients"); + var clients = $("div.mkwsStat span.clients"); debug("clients: " + clients.text()); if (clients.length == 1 && clients.text().match("0/1$")) { return true; @@ -511,7 +511,7 @@ describe("Check status client counter", function () { }, "wait for Active clients: 0/1", 4 * jasmine_config.second); runs(function () { - var clients = $("div#mkwsStat span.clients"); + var clients = $("div.mkwsStat span.clients"); debug("span.clients: " + clients.text()); expect(clients.text()).toMatch("0/1$"); });