X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=bjstester.js;h=554c391321f8077d9ce8f92a662f3f6751a5d5a8;hb=119290bc3234e9ece1c64dbd72ca486d9633b5b7;hp=f8f81831ede90d88ce2764f2586ef3f4c28fbe72;hpb=dcc5d90c8e355043ca13d9e00aa46efb29bbd737;p=app.Builder.js diff --git a/bjstester.js b/bjstester.js index f8f81831e..554c39132 100644 --- a/bjstester.js +++ b/bjstester.js @@ -36,16 +36,13 @@ if (File.isFile(args[0])) { throw "argument is not file"; } - -print( " diff -w -u /tmp/rconv_orig /tmp/rconv_gen/"); - - + function bjstest(fn) { - + print("BJSTEST"); // does it have a .bjs file.. var bjs = fn.replace(/\.js$/, '.bjs'); - if (!bjs.match(/\.bjs$/) { + if (!bjs.match(/\.bjs$/)) { throw "not a bjs file" } // let's assume roo.. @@ -59,7 +56,7 @@ function bjstest(fn) { }); render.loadItems(function() { print(render.toSource()); - }); + }, true); } //print(JSON.stringify(rf.cfg, null,4));