Use other version of JS ast by develar: migrate code to using new ast.

Adapted from https://github.com/develar/kotlin/commit/d3521123a6e4d551b30743b68b6bb23b9678553b.
This commit is contained in:
Pavel V. Talanov
2012-08-07 13:38:34 +04:00
parent 17b85cbeed
commit 0a92843245
42 changed files with 238 additions and 425 deletions
@@ -16,8 +16,7 @@
package org.jetbrains.k2js.test.semantics;
import closurecompiler.internal.com.google.common.collect.Lists;
import com.google.dart.compiler.util.Maps;
import com.google.common.collect.Lists;
import junit.framework.Test;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.k2js.config.Config;
@@ -29,6 +28,7 @@ import org.jetbrains.k2js.test.config.TestConfigWithUnitTests;
import org.jetbrains.k2js.test.rhino.RhinoSystemOutputChecker;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
@@ -101,6 +101,6 @@ public abstract class JsUnitTestBase extends MultipleFilesTranslationTest {
@Override
protected Map<String, Object> getRhinoTestVariables() throws Exception {
return Maps.<String, Object>create("jsTestReporter", JS_UNIT_TEST_REPORTER);
return Collections.<String, Object>singletonMap("jsTestReporter", JS_UNIT_TEST_REPORTER);
}
}