From: Heikki Levanto Date: Mon, 10 Mar 2014 14:10:51 +0000 (+0100) Subject: whitespace X-Git-Tag: 1.0.0~1318^2~10^2 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=738d2b9639224b05db381edd0e2f0c577310fb64;hp=3f5558d6bdfdcae2a3660eb55bf29d656616bb33;p=mkws-moved-to-github.git whitespace --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 0486f55..fe1e746 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -92,8 +92,6 @@ describe("Check MOTD before search", function () { expect($(".mkwsMOTDContainer").length).toBe(1); expect($(".mkwsMOTDContainer").text()).toMatch(/MOTD/); }); - - }); describe("Check pazpar2 search", function () { @@ -135,15 +133,12 @@ describe("Check MOTD after search", function () { it("MOTD is hidden", function () { expect($(".mkwsMOTD").length).toBe(1); expect($(".mkwsMOTD").is(":hidden")).toBe(true); - //debug("motd " + $(".mkwsMOTD")); debug("motd t=" + $(".mkwsMOTD").text()); debug("motd v=" + $(".mkwsMOTD").is(":visible")); - //expect($("div.mkwsBytarget").is(":visible")).toBe(true); }); }); - /* * This part runs in background. It should be rewritten with * async jasmine functions @@ -190,11 +185,9 @@ describe("Check pazpar2 hit counter", function () { waitsFor(function () { hits = get_hit_counter(); - return hits > expected_hits; }, "Expect " + expected_hits + " hits", max_time * jasmine_config.second); - runs(function () { debug("mkws pager found records: '" + hits + "'"); expect($(".mkwsPager").length).toBe(1); @@ -213,7 +206,6 @@ describe("Check Termlist", function () { return $("div.mkwsFacetSources").length == 1 ? true : false; }, "check for facet sources", 4 * jasmine_config.second); - // everything displayed? runs(function () { var sources = $("div.mkwsFacetSources"); @@ -340,7 +332,6 @@ describe("Check record list", function () { }); }); - describe("Show record", function () { var record_number = 1; // the Nth record in hit list it("show record author", function () { @@ -431,9 +422,7 @@ describe("Check status client counter", function () { } else { return false; } - }, "wait for Active clients: 0/1", 4 * jasmine_config.second); - /* runs(function () { var clients = $("div#mkwsStat span.clients"); @@ -441,9 +430,7 @@ describe("Check status client counter", function () { expect(clients.text()).toEqual("0/1"); }); */ - }); - }); /* done */