more flexible jasmine tests, MKWS-100
authorWolfram Schneider <wosch@indexdata.dk>
Fri, 17 Jan 2014 17:40:54 +0000 (17:40 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Fri, 17 Jan 2014 17:40:54 +0000 (17:40 +0000)
commit05f8c0fa7e86cd4fad0ef5aa487abae9f1906563
treed177aba0181848d2b6417139a03c5713a306013d
parent0e57a1a794db68a2b252095254bb81ec79c6b9b3
more flexible jasmine tests, MKWS-100

You can configure the jasmine test by declaring the variable

   var jasmine_config = {
        search_query: "freebsd",
        max_time: 16, // in seconds
        expected_hits: 80, // at least expected hit counter
        second: 1000, // miliseconds to seconds
        show_record_url: true // check for valid URL in records
   };

in the HTML page, similar to mkws_config = { ... }

The most common properties are: search_query, expected_hits and show_record_url
examples/htdocs/jasmine-popup.html
examples/htdocs/jasmine-pp2.html
test/spec/mkws-pazpar2.js