+ 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)
+ }
+ }
+
+ // we except one missing field, or one error
+ expect(errors.length).not.toBeGreaterThan(1);
+ }
+