From: Wolfram Schneider Date: Wed, 28 Jan 2015 14:44:14 +0000 (+0000) Subject: compare only the first 3 elements in records details (title, date, author) X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=6646f29b75d687d2d09597e9caec10fb4617e46d;p=mkws-moved-to-github.git compare only the first 3 elements in records details (title, date, author) --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 02502e0..e9aa610 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -851,8 +851,11 @@ describe("Check translations", function () { }); it("record details", function () { + var text = ["Title", "Date", "Author"]; // , "Subject", "Locations"]; var list = $("div.mkws-details table > tbody > tr > th"); - var text = ["Title", "Date", "Author", "Subject", "Locations"]; + + // compare only the first 3 elements + list = list.splice(0, text.length) check_translation(list, text); });