JS lib: introduced different output strategies, and chose them depending of environment.

#KT-2994 Fixed
This commit is contained in:
Zalim Bashorov
2014-10-13 18:04:18 +04:00
parent 40e1292e9a
commit 55c19a632a
6 changed files with 168 additions and 33 deletions
@@ -140,6 +140,9 @@ public final class RhinoUtils {
try {
ScriptableObject scope = getScope(ecmaVersion, context, jsLibraries);
putGlobalVariablesIntoScope(scope, variables);
context.evaluateString(scope, "Kotlin.out = new Kotlin.BufferedOutput();", "setup Kotlin.out", 0, null);
for (String filename : fileNames) {
runFileWithRhino(filename, context, scope);
//String problems = lintIt(context, filename, scope);
@@ -130,4 +130,8 @@ public final class NativeInteropTest extends SingleFileTranslationTest {
public void testNestedElements() throws Exception {
checkFooBoxIsOk();
}
public void testPrint() throws Exception {
checkFooBoxIsOk();
}
}