From ea023c78b6d7d8de066435b4f754b0213a77632f Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Mon, 1 Dec 2014 15:23:37 +0000 Subject: [PATCH] indent --- test/js/mkws-jasmine-run.js | 2 +- test/phantom/screenshot.js | 2 +- test/spec/mkws-config.js | 2 +- test/spec/mkws-pazpar2.js | 34 +++++++++++++++++----------------- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/test/js/mkws-jasmine-run.js b/test/js/mkws-jasmine-run.js index 572eb11..72ea206 100644 --- a/test/js/mkws-jasmine-run.js +++ b/test/js/mkws-jasmine-run.js @@ -35,7 +35,7 @@ function mkws_jasmine_init(delay) { } }; -mkws.$(document).ready(function() { +mkws.$(document).ready(function () { mkws_jasmine_init(0); }); diff --git a/test/phantom/screenshot.js b/test/phantom/screenshot.js index 5bec386..22f044f 100644 --- a/test/phantom/screenshot.js +++ b/test/phantom/screenshot.js @@ -5,7 +5,7 @@ var url = system.args[1] || 'http://www.indexdata.com/'; var file_png = system.args[2] || 'indexdata.png'; var timeout = system.args[5] ? system.args[5] : 0.2; -function usage (message) { +function usage(message) { if (message) { console.log(message + "\n"); } diff --git a/test/spec/mkws-config.js b/test/spec/mkws-config.js index e295396..cfabc18 100644 --- a/test/spec/mkws-config.js +++ b/test/spec/mkws-config.js @@ -39,7 +39,7 @@ describe("Check mkws.config object", function () { expect(mkws.locale_lang.da.Location).toMatch(/^Lokation$/); }); - /* +/* * this is a test if the config value is a boolean JavaScript object: true or false * and nothing else (0, '0', undefined, "false" etc.) */ diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 09547ef..29bb300 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -671,7 +671,7 @@ describe("Check SortBy options", function () { var sort_value = 'title:1'; var per_page_number = 20; - // keep current title list + // keep current title list var title_list_old = title_list("xxx "); function title_list(prefix) { @@ -718,7 +718,7 @@ describe("Check SortBy options", function () { var title_list_new = title_list("yyy "); var diff_flag = 0; for (var i = 0; i < title_list_old.length; i++) { - debug((i+1) + ". " + title_list_old[i] + " :: " + title_list_new[i]); + debug((i + 1) + ". " + title_list_old[i] + " :: " + title_list_new[i]); if (title_list_old[i] != title_list_new[i]) { diff_flag++; @@ -731,22 +731,22 @@ describe("Check SortBy options", function () { }); describe("Check async widget discovery", function () { - var $ = mkws.$; - it("initialises a new widget", function() { - $("div.mkws-search").after('
'); - mkws.init("Another search box", "#asyncSearch"); - waitsFor(function () { - return $("#asyncSearch input").length >= 1 ? true : false; - }, "Call init() to build an .mkws-search", 750); - runs(function () { - var numInput = $("div.mkws-search input").length; - debug("Input elements present: " + numInput); - expect(numInput).toBe(4); - var numRec = $("div.mkws-records > div.mkws-summary").length; - debug("Records should still be present. There are: " + numRec); - expect(numRec).toBeGreaterThan(0); + var $ = mkws.$; + it("initialises a new widget", function () { + $("div.mkws-search").after('
'); + mkws.init("Another search box", "#asyncSearch"); + waitsFor(function () { + return $("#asyncSearch input").length >= 1 ? true : false; + }, "Call init() to build an .mkws-search", 750); + runs(function () { + var numInput = $("div.mkws-search input").length; + debug("Input elements present: " + numInput); + expect(numInput).toBe(4); + var numRec = $("div.mkws-records > div.mkws-summary").length; + debug("Records should still be present. There are: " + numRec); + expect(numRec).toBeGreaterThan(0); + }); }); - }); }); /* done */ -- 1.7.10.4