From: Wolfram Schneider Date: Wed, 9 Jul 2014 11:46:26 +0000 (+0000) Subject: fix waitcount for per page X-Git-Tag: 1.0.0~399 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=65d410c83fe9a7dc5279944fa5ebdb4452d3f5d1;p=mkws-moved-to-github.git fix waitcount for per page --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 4e92869..4ce2127 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -639,15 +639,16 @@ describe("Check per page options", function () { }); waitsFor(function () { - return waitcount >= (per_page_number * 2) ? true : false; + // debug("per page waitcounter: " + waitcount) + return waitcount >= (per_page_number + 10) ? true : false; }, "DOM change mkwsRecords, by per page", 3 * jasmine_config.second); runs(function () { - $("div.mkwsRecords").unbind("DOMNodeInserted DOMNodeRemoved propertychange"); debug("unbind per page"); + $("div.mkwsRecords").unbind("DOMNodeInserted DOMNodeRemoved propertychange"); var records = $("div.mkwsRecords > div.mkwsSummary"); - debug("Got now " + records.length + " records"); + debug("Per page got now " + records.length + " records"); expect(records.length).toBe(per_page_number); }); }); @@ -703,7 +704,7 @@ describe("Check SortBy options", function () { debug("unbind by sort"); var records = $("div.mkwsRecords > div.mkwsSummary a"); - debug("Got now " + records.length + " records"); + debug("Sort by got now " + records.length + " records"); expect(records.length).toBe(per_page_number); });