add a flag to disable check for URLs in records
authorWolfram Schneider <wosch@indexdata.dk>
Wed, 18 Dec 2013 17:24:38 +0000 (17:24 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Wed, 18 Dec 2013 17:24:38 +0000 (17:24 +0000)
We need this for raw pp2 tests, MKWS-82

examples/htdocs/jasmine-pp2.html
test/spec/mkws-pazpar2.js

index b0b1c4c..0fda53f 100644 (file)
@@ -5,6 +5,7 @@
     <link rel="stylesheet" type="text/css" href="../../tools/htdocs/mkws.css" />
     <script type="text/javascript">
       var mkws_config = {
+         jasmine: { "show_record_url": false },
          use_service_proxy: false,
          pazpar2_url : "/pazpar2/",
          perpage_default: 10
index 0a800c3..002a705 100644 (file)
@@ -230,6 +230,11 @@ describe("Show record", function () {
     });
 
     it("extract URL", function () {
+        if (mkws_config.jasmine && mkws_config.jasmine.show_record_url == false) {
+            debug("ignore test for URL in record")
+            return;
+        }
+
         var url = $("div#mkwsRecords div.record:nth-child(" + record_number + ") div table tbody tr td a").text();
         debug("extracted URL from record: " + url);