+ expect($(list[i]).text().match(M(text[i]))).not.toBeNull();
+ }
+ }
+
+ function check_translation_list(list, keywords) {
+ var errors = [];
+ for (var i = 0; i < keywords.length; i++) {
+ var text = $(list[i]);
+ var keyword = keywords[i];
+
+ if (text.text().match("^" + M(keyword) + "")) {
+ debug("found: " + text.text() + " :: " + keyword);
+ } else {
+ debug("NOT found: " + text.text() + " :: " + keyword);
+ errors.push(keyword)
+ }