+
+ waitsFor(function () {
+ return waitcount > 0 && $(linkaddr).length > 0;
+ }, "wait until we see a new record", 2.2 * jasmine_config.second);
+
+ runs(function () {
+ expect(waitcount).toBeGreaterThan(0);
+ $("div.mkwsRecords").unbind("DOMSubtreeModified");
+ });
+ });
+});
+
+describe("Show record", function () {
+ var record_number = 1; // the Nth record in hit list
+ it("show record author", function () {
+ var click = $("div.mkwsRecords div.record:nth-child(" + record_number + ") a").trigger("click");
+ debug("show record click is success: " + click.length);
+ expect(click.length).toBe(1);
+