From: Wolfram Schneider Date: Wed, 9 Jul 2014 11:39:51 +0000 (+0000) Subject: run .unbind() earlier X-Git-Tag: 1.0.0~400 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=d0c1839e6e01a31ad42de6c8f23aee77861f1169;p=mkws-moved-to-github.git run .unbind() earlier --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 34b2804..4e92869 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -639,16 +639,13 @@ describe("Check per page options", function () { }); waitsFor(function () { - //debug("wait for: " + waitcount); return waitcount >= (per_page_number * 2) ? true : false; }, "DOM change mkwsRecords, by per page", 3 * jasmine_config.second); runs(function () { $("div.mkwsRecords").unbind("DOMNodeInserted DOMNodeRemoved propertychange"); debug("unbind per page"); - }); - runs(function () { var records = $("div.mkwsRecords > div.mkwsSummary"); debug("Got now " + records.length + " records"); expect(records.length).toBe(per_page_number); @@ -703,10 +700,8 @@ describe("Check SortBy options", function () { runs(function () { $("div.mkwsRecords").unbind("DOMNodeInserted DOMNodeRemoved propertychange"); - debug("unbind per page"); - }); + debug("unbind by sort"); - runs(function () { var records = $("div.mkwsRecords > div.mkwsSummary a"); debug("Got now " + records.length + " records"); expect(records.length).toBe(per_page_number); @@ -733,5 +728,6 @@ describe("Check SortBy options", function () { describe("All tests are done", function () { it(">>> hooray <<<", function () { mkws.jasmine_done = true; + debug(">>> hooray <<<"); }); });