- function get_hit_counter() {
- if ($("#mkwsPager").length == 0) return -1;
-
- var found = $("#mkwsPager").text();
- var re = /found: ([0-9]+)/;
- re.exec(found);
- var hits = -1;
-
- if (RegExp.$1) {
- hits = parseInt(RegExp.$1);
- expect(hits).toBeGreaterThan(0);
- }
-
- //debug("Hits: " + hits);
- return hits;
- }
-
- function show_record() {
- var click = $("div#mkwsRecords div.record:nth-child(3) :nth-child(2)").trigger("click");
- debug("show click is success: " + click.length);
- expect(click.length == 1).toBe(true);
- }