click - script to go to this page unless it is the current one
}}
<div class="mkws-pager-desc">
- {{mkws-translate "Displaying"}}:
- {{first}} {{mkws-translate "to"}} {{last}}
- {{mkws-translate "of"}} {{count}} ({{{mkws-translate "found"}}}: {{found}})
+ <span>{{mkws-translate "Displaying"}}</span>:
+ {{first}} <span>{{mkws-translate "to"}}</span> {{last}}
+ <span>{{mkws-translate "of"}}</span> {{count}} (<span>{{{mkws-translate "found"}}}</span>: {{found}})
</div>
<div class="mkws-pager-list">
describe("Check translations", function () {
var $ = mkws.$;
- var M = mkws.M;
+ // handle html entities, "Zurück" => "Zurück"
+ var M = function (string) {
+ return $("<span/>").html(mkws.M(string)).text()
+ };
var lang = function () {
return mkws.config.lang
};
}
});
- it("facets", function () {
+ xit("facets", function () {
var list = $(".mkws-facet-title");
expect(list.length).toBe(3);
expect($(list[1]).text()).toBe(M("Subjects"));
expect($(list[2]).text()).toBe(M("Authors"));
});
+
+ it("navigation", function () {
+ var list = $(".mkws-pager-desc > span");
+
+ expect(list.length).toBe(4);
+
+ expect($(list[0]).text()).toBe(M("Displaying"));
+ expect($(list[1]).text()).toBe(M("to"));
+ expect($(list[2]).text()).toBe(M("of"));
+ expect($(list[3]).text()).toBe(M("found"));
+
+ expect($(".mkws-next").text()).toBe(M("Next"));
+ expect($(".mkws-prev").text()).toBe(M("Prev"));
+ });
});
xdescribe("Check async widget discovery", function () {