From a05e3ada8c1ea684724b420719dcbb152294af89 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Tue, 9 Dec 2014 14:12:16 +0000 Subject: [PATCH] less debug noise: don't display every DOM change, show every 5th or 10th. --- test/spec/mkws-pazpar2.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 29bb300..ab1f380 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -580,7 +580,9 @@ describe("Check removable facets links", function () { runs(function () { $("div.mkws-records").bind("DOMNodeInserted DOMNodeRemoved propertychange", function () { waitcount++; - debug("DOM change mkws-records for removeable: " + waitcount); + if (waitcount <= 5 || (waitcount % 5 == 0)) { + debug("DOM change mkws-records for removeable: " + waitcount); + } }); }); @@ -595,7 +597,9 @@ describe("Check removable facets links", function () { $("div.mkws-records").bind("DOMNodeInserted DOMNodeRemoved propertychange", function () { waitcount++; - debug("DOM change mkws-records for removeable2: " + waitcount); + if (waitcount <= 5 || (waitcount % 5 == 0)) { + debug("DOM change mkws-records for removeable2: " + waitcount); + } }); var click = $("a.mkws-removable").eq(0).trigger("click"); @@ -638,7 +642,9 @@ describe("Check per page options", function () { $("div.mkws-records").bind("DOMNodeInserted DOMNodeRemoved propertychange", function () { waitcount++; - debug("DOM change mkws-records, per page: " + waitcount); + if (waitcount <= 5 || (waitcount % 10 == 0)) { + debug("DOM change mkws-records, per page: " + waitcount); + } }); }); @@ -688,7 +694,9 @@ describe("Check SortBy options", function () { runs(function () { $("div.mkws-records").bind("DOMNodeInserted DOMNodeRemoved propertychange", function () { waitcount++; - debug("DOM change mkws-records, sort by: " + waitcount); + if (waitcount <= 5 || (waitcount % 10 == 0)) { + debug("DOM change mkws-records, sort by: " + waitcount); + } }); var select = $("select.mkws-sort option[selected='selected']"); -- 1.7.10.4