From be98258ffa5abc2c8488903377e5da43a6ec43bb Mon Sep 17 00:00:00 2001 From: pTalanov Date: Fri, 4 May 2012 16:15:03 +0400 Subject: [PATCH] Change tests dependencies. --- js/js.tests/js.tests.iml | 1 + .../test/org/jetbrains/k2js/test/TestWithEnvironment.java | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/js/js.tests/js.tests.iml b/js/js.tests/js.tests.iml index c6c55dda3aa..15314fd8ffb 100644 --- a/js/js.tests/js.tests.iml +++ b/js/js.tests/js.tests.iml @@ -14,6 +14,7 @@ + diff --git a/js/js.tests/test/org/jetbrains/k2js/test/TestWithEnvironment.java b/js/js.tests/test/org/jetbrains/k2js/test/TestWithEnvironment.java index b3c3759a642..d98ec899672 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/TestWithEnvironment.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/TestWithEnvironment.java @@ -20,8 +20,9 @@ import com.intellij.openapi.project.Project; import com.intellij.testFramework.UsefulTestCase; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import org.jetbrains.jet.JetTestUtils; +import org.jetbrains.jet.CompileCompilerDependenciesTest; import org.jetbrains.jet.cli.jvm.compiler.JetCoreEnvironment; +import org.jetbrains.jet.lang.resolve.java.CompilerSpecialMode; /** * @author Pavel Talanov @@ -50,6 +51,9 @@ public abstract class TestWithEnvironment extends UsefulTestCase { } protected void createEnvironmentWithMockJdkAndIdeaAnnotations() { - myEnvironment = JetCoreEnvironment.getCoreEnvironmentForJS(getTestRootDisposable()); + myEnvironment = JetCoreEnvironment.getCoreEnvironmentForJVM(getTestRootDisposable(), + CompileCompilerDependenciesTest.compilerDependenciesForTests( + CompilerSpecialMode.JS, + true)); } }