Skip to content

Commit

Permalink
Check for missing fallbacks in test runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed May 19, 2015
1 parent b863723 commit 50827dc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/testing_stdrhino.js
Expand Up @@ -156,6 +156,16 @@ StdRhinoTest.prototype.run = function(){
if (this.test.options.variableWrapper) {
this.variableWrapper = variableWrapper;
}
var lang_bases_needed = {};
for (var lang in CSL.LANGS) {
var lang_base = lang.split("-")[0];
lang_bases_needed[lang_base] = true;
}
for (var lang_base in lang_bases_needed) {
if (!CSL.LANG_BASES[lang_base]) {
throw "ERROR: missing in CSL.LANG_BASES: " + lang_base;
}
}
this.style = new CSL.Engine(this,this.test.csl);
//this.style.setOutputFormat("rtf");
//this.style.setParseNames(true);
Expand Down

0 comments on commit 50827dc

Please sign in to comment.