Commit Graph

6599 Commits

Author SHA1 Message Date
Andrey Breslav 33dfd5bb6b Lazy resolve: Package-level objects are handled properly 2012-07-10 22:48:49 +04:00
Andrey Breslav 853dc31510 toString() for debugging 2012-07-10 22:48:49 +04:00
Andrey Breslav 0461b3c8ba New base classes for lazy resolve tests + generators in main methods 2012-07-10 22:48:49 +04:00
Dmitry Jemerov 57c1b05684 generate correct cast for arguments of bridge methods (KT-2390) 2012-07-10 19:59:33 +02:00
Dmitry Jemerov f49232cdf3 explain why tests fail for new checkout 2012-07-10 19:41:11 +02:00
Evgeny Gerashchenko 4ece44728d Added workaround for 'SAXParserFactory not found' error. 2012-07-10 19:59:42 +04:00
Svetlana Isakova ab9d1c935f KT-2379 Compilation error after running "ant dist" from terminal on Debian system with openjdk
#KT-2379 fixed
2012-07-10 19:53:29 +04:00
Andrey Breslav d94dad19dc Proper test fixture 2012-07-10 18:42:20 +04:00
Natalia.Ukhorskaya 2f33b99fca TestGen: Escape paths 2012-07-10 16:06:10 +04:00
Andrey Breslav a34d790a42 Move Lazy Resolve tests to JUnit 3 2012-07-10 15:40:13 +04:00
Andrey Breslav 55298197ee Order test methods alphabetically
File order may differ on different systems
2012-07-10 15:37:50 +04:00
Andrey Breslav 61dcb7603d TestGen: JUnit 3 only + static check for the superclass 2012-07-10 15:34:15 +04:00
Andrey Breslav cb82b6e477 TestGen: Pass generator class instead of its name 2012-07-10 15:27:20 +04:00
Andrey Breslav 3305694979 Unneeded imports removed from generated code 2012-07-10 15:23:26 +04:00
Andrey Breslav ebc8ed1fdd TestGen: Base class passed instead of its name 2012-07-10 15:21:12 +04:00
Andrey Breslav b5e82adb5c Generator is @Linked in the comments of the generated file 2012-07-10 15:15:05 +04:00
Andrey Breslav 758104eba0 Heap space increased for tests 2012-07-10 15:00:27 +04:00
Andrey Breslav ebf19b733f ReadJavaBinaryClassTest updated
- new generator used
- generator code moved to the abstract class
2012-07-10 14:48:11 +04:00
Andrey Breslav 3d8d92c7d3 JetDiagnosticsTest migrated to TestGenerator
- test data files renamed from *.jet to *.kt
2012-07-10 14:48:11 +04:00
Andrey Breslav 6c23c093ef Generate proper suite methods
- test classes now nest as directories
- TestGenerator doesn't hold file extensions
- TestClassModel tells whether it is empty
2012-07-10 14:48:10 +04:00
Andrey Breslav f64d78c18f File names stored in the metadata
This is used for better checking of whether a file is present in the test suite
2012-07-10 14:48:10 +04:00
Andrey Breslav e69715723b Generate inner test classes 2012-07-10 14:48:10 +04:00
Andrey Breslav ed1ca4b77e Escape all names that turn into Java identifiers 2012-07-10 14:48:10 +04:00
Andrey Breslav 69996243b9 TestGeneratorUtil extracted 2012-07-10 14:48:10 +04:00
Andrey Breslav af4e5d4e42 Test Class/Method models introduced
- no unnecessary nesting when there is only one test class in a suite
- escaping for method names
- more regular model structure
2012-07-10 14:48:10 +04:00
Andrey Breslav 8b2ad52ce6 Formatting 2012-07-10 14:48:09 +04:00
Alex Tkachman 65fd5d4811 Merge pull request #96 from udalov/kt2384
load 'this' instead of $classobj if we're inside class object's constructor
2012-07-09 21:35:15 -07:00
Alexander Udalov a07954eaac load 'this' instead of $classobj if we're inside class object's constructor
#KT-2384 Fixed
2012-07-09 22:16:19 +04:00
Pavel V. Talanov 112cd24079 Comment out tests failing the build 2012-07-09 19:09:25 +04:00
Pavel V. Talanov 20dc05e679 Use soft reference for expensive cash in TranslationUtils
Also move member in RhinoUtils
2012-07-09 19:09:24 +04:00
Natalia.Ukhorskaya 3d8c6065c5 Android module: stop ddms process for unix systems 2012-07-09 15:31:06 +04:00
Alex Tkachman 2ef6ceea5c Merge pull request #95 from udalov/kt2224
object literals now capture expressions from 'by' delegate specifier
2012-07-09 04:19:38 -07:00
Alexander Udalov 06f2cbc891 object literals now capture expressions from 'by' delegate specifier
#KT-2224 Fixed
2012-07-09 14:51:10 +04:00
Andrey Breslav 4b062cb4e0 More accurate environment management in tests 2012-07-09 13:39:05 +04:00
Andrey Breslav 7f6222cc4e Fixing compilation after merge 2012-07-09 13:39:05 +04:00
Andrey Breslav 79c101ffb1 Support serilizing compile time constants (needed for annotations) 2012-07-09 13:39:05 +04:00
Andrey Breslav 9f0f6f862a Fixing modality in fake overrides
The modality was nondeterministic before.
The main change sits in OverrideResolver: the logic of "fake override" generation is restructured so that
all the descriptors a newly created "fake" one overrides are known by the time it is created, so its
modality can be determined properly from their modalities.

Also, the ReadJavaBinaryClassTestGenerated is now a clear JUnit3 test case
2012-07-09 13:39:05 +04:00
Andrey Breslav 0192e16f39 Target test frameworks (JUnit 3 and 4) supported separately 2012-07-09 13:39:05 +04:00
Andrey Breslav 4683ba4dee Generated test now work with JUnit 3, too 2012-07-09 13:39:05 +04:00
Andrey Breslav 36b254dc53 ReadJavaBinaryClassTest migrated to the generated form 2012-07-09 13:39:05 +04:00
Andrey Breslav 088e3b9686 Output path printed to console 2012-07-09 13:39:05 +04:00
Andrey Breslav 54ea8f1d00 Fixing test data after ordering in NamespaceComparator was fixed 2012-07-09 13:39:05 +04:00
Andrey Breslav 4d220fb980 Injector for bare JavaDescriptorResolver 2012-07-09 13:39:04 +04:00
Andrey Breslav 2a1fd7e7d6 Java packages are declared externally for the Kotlin PSI
Same for JetStandardLibrary classes
2012-07-09 13:39:04 +04:00
Andrey Breslav e42f91a7de Do not add error supertypes
If we add them, error functions and such will be in the member scope + the type checker will be confused when an ambivalent type will appear in this position
2012-07-09 13:39:04 +04:00
Andrey Breslav e443698dc1 Missing modifiers added 2012-07-09 13:39:04 +04:00
Andrey Breslav 94660a91af Clarifying comment 2012-07-09 13:39:04 +04:00
Andrey Breslav 4c6eee203d Core functionality of the test class extracted as a method 2012-07-09 13:39:04 +04:00
Andrey Breslav 2c73833840 Injector interface used in tests 2012-07-09 13:39:04 +04:00
Andrey Breslav 1f95636bdf Injectors regenerated 2012-07-09 13:39:03 +04:00