Commit Graph

106 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 1c25c971e0 Corrected test error message. 2013-12-17 20:28:58 +04:00
Evgeny Gerashchenko d0605009ae Removed ModuleConfiguration. 2013-12-17 20:28:40 +04:00
Evgeny Gerashchenko 7abe6a5b4a Big refactoring. Migrating to package views and fragments. 2013-12-17 19:18:33 +04:00
Svetlana Isakova 928f77ffce set explicit receiver kind properly for calls 2013-12-16 16:24:21 +04:00
Natalia Ukhorskaya f218bd1df2 Add NotNull annotations 2013-12-05 15:19:23 +04:00
Andrey Breslav 8f45f73340 JetControlFlowTest rewritten to generator 2013-11-29 14:48:31 +04:00
Nikolay Krasko 87fac21310 Auto generate test for rename 2013-11-26 19:19:59 +04:00
Andrey Breslav 083644ea43 Support parameter annotations. Fix class path and test data 2013-11-21 13:07:36 +04:00
Alexander Udalov 69ed375ce1 Extract SpecialNames utility class 2013-11-14 19:11:19 +04:00
Pavel V. Talanov 2a5657e0e6 Convert JavaToKotlinTranslator, StandaloneJavaToKotlinConverterTest, TestCaseBuilder to Kotlin 2013-10-29 21:03:34 +04:00
Andrey Breslav 6e76e57b4c Trim strings before comparison 2013-10-28 12:04:08 +04:00
Andrey Breslav 3bb14c2d4e Throwing FileComparisonFailure enables opening test data file in diff dialog right from the test console 2013-10-25 19:55:42 +04:00
Svetlana Isakova 2f02427c57 changed DiagnosticMessageTest
added test arguments to test data
2013-10-16 20:41:23 +04:00
Alexander Udalov d4aaed2787 Don't add kotlin-runtime to classpath in CliTest
Also remove testing code from KotlinToJVMBytecodeCompiler, delete code
duplication, etc.
2013-10-16 19:02:46 +04:00
Andrey Breslav 1d540181b0 Produciton code uses a shared application between many projects.
Tests always dispose the application together with JetCoreEnvironment
2013-10-15 15:28:28 +04:00
Andrey Breslav 4b991f7254 Test that built-in binaries are up to date 2013-09-26 09:04:59 -07:00
Andrey Breslav 887e4276ee getDiagnostics() in BindingContext returns Diagnostics rather than List<Diagnostic> 2013-09-24 06:58:39 -07:00
Andrey Breslav 67b23ceda7 assertEqualsToFile() extracted as a common utility 2013-09-24 06:58:38 -07:00
Alexander Udalov 215a5f46b6 Move ROOT_NAMESPACE_NAME to DescriptorUtils
KotlinBuiltIns depends on it, but it cannot depend on JetPsiUtil, because
descriptors module should not depend on PSI
2013-09-18 16:41:47 +04:00
Evgeny Gerashchenko 3f89598f14 Minor. Made method @NotNull. 2013-09-12 14:58:57 +04:00
Andrey Breslav db2b19c50f Support filtering diagnostics in tests 2013-09-04 13:07:25 +04:00
Alexander Udalov 2d7a5ebf36 Simplify injectors for frontend.java
- delete InjectorForJavaSemanticServices, replace its usages with
  InjectorForJavaDescriptorResolver
- delete unneeded fields and parameters of InjectorForJavaDescriptorResolver
2013-08-26 15:59:57 +04:00
Alexander Udalov 4655e41603 Minor, use existing utility method 2013-08-23 17:39:15 +04:00
Alexander Udalov 1acc1564d9 Add KotlinInfo annotation, serialize classes to bytecode 2013-08-23 17:39:11 +04:00
Andrey Breslav 1472499874 Utility methods moved to JetTestUtil 2013-08-23 17:38:49 +04:00
Nikolay Krasko 4e67566e58 Add utility method for getting before and after text 2013-06-07 17:24:19 +04:00
Andrey Breslav 4111e78ac2 ModuleDescriptor stores a PlatformToKotlinClassMap 2013-04-17 17:11:18 +04:00
Andrey Breslav f3656bcadd ModuleDescriptor stores default imports 2013-04-17 17:11:18 +04:00
Andrey Breslav a72e49d8f7 Use ModuleDescriptor instead of ModuleConfiguration 2013-04-17 17:11:17 +04:00
Alexey Sedunov fc7bb67aca Add extended annotation to test environment 2013-03-29 18:42:44 +04:00
Evgeny Gerashchenko f1572580ac Replaced instanceof checks for particular diagnostic factory classes with using factory sets. 2013-02-20 16:33:58 +04:00
Evgeny Gerashchenko 3cf2289687 Matching test files by regex instead of extension. 2013-02-07 21:39:22 +04:00
Evgeny Gerashchenko 52b7ee6447 Happy new year 2013! 2013-01-28 18:58:08 +04:00
Andrey Breslav 4b5eaccb94 Load physical files from tests 2013-01-23 13:10:34 +04:00
Andrey Breslav 7668141f85 Base class for tests introduced 2013-01-23 13:10:34 +04:00
Andrey Breslav 4b4a9eb6c9 Create new trace before each resolve (to avoid writing to a trace already filled in by previous analysis) 2013-01-15 15:32:02 +04:00
Andrey Breslav f26412aae4 Utility methods moved to a utility class 2013-01-10 16:16:49 +04:00
Evgeny Gerashchenko e03eaf6dde Removed @author javadocs from code. 2012-12-28 17:44:31 +04:00
Andrey Breslav f09054d1a0 Java compiler error reporting fixed 2012-12-14 15:28:21 +04:00
Andrey Breslav e324d3914f KT-3120 The compiler should not depend on the file directory of the libs
#KT-3120 In Progress
2012-12-12 17:37:32 +04:00
Andrey Breslav 74212bd2a4 Generate mockJDK from real JDK 2012-12-07 14:06:59 +04:00
Andrey Breslav 7d8bde2ac6 Test data moved out of JetTypeCheckerTest 2012-11-24 14:08:43 +04:00
Andrey Breslav 94552d5524 Proper message reporting 2012-11-24 14:08:43 +04:00
Andrey Breslav 4ed07cd9ae Introducing KotlinPaths to impose some discipline on compiler/library location 2012-11-21 18:16:09 +04:00
Andrey Breslav 937c4e8baf BuiltinsScopeExtensionMode not needed any more
(see the changes in DefaultModuleConfiguration.java)
2012-10-17 13:48:07 +04:00
Evgeny Gerashchenko 27becdec9b Added getSliceContents() method to BindingContext returning immutable map for particular slice (for testing and debug purposes). 2012-09-17 16:27:14 +04:00
Nikolay Krasko a96474845b Fix check of path separators in tests 2012-09-06 12:02:44 +04:00
Andrey Breslav fbc0ca1b77 Gererated tests now check that all the relevant directories are present
We only checked test data files before
2012-09-05 14:18:40 +04:00
Natalia.Ukhorskaya 04deb2dd2f JetTestUtils: change signature of compileJavaFile - take collection of files to compile and list of javac options
LoadDescriptorUtil: remove duplicate code
2012-08-30 10:55:47 +04:00
Alexander Udalov d38b965bf1 utilize JetTestUtils.createFile() in tests 2012-08-20 20:53:33 +04:00