Commit Graph

6577 Commits

Author SHA1 Message Date
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
Andrey Breslav af882cbd51 Dependency injection frameworks improvements
* Injectors can now implement interfaces (this was the primary goal)
* Fields can have different types than getters
* Imports are more accurate and no duplicate imports are added
2012-07-09 13:39:03 +04:00
Pavel V. Talanov 3d58d1ec16 Explicit equals call on non nullable receiver 2012-07-09 13:09:47 +04:00
Pavel V. Talanov 3814384762 Isolate error reporting
Introduce ErrorReportingUtils
2012-07-09 13:09:44 +04:00
Pavel V. Talanov 1840602a46 Trying to run stdlib unit tests as part or js.tests: step 4 - Added tests for ListTest, GetOtElseTest, MapTest
Introduce JsUnitTestReporter, implement communication between rhino and junit
2012-07-09 12:40:15 +04:00
Pavel V. Talanov 0c2b8e95f2 Trying to run stdlib unit tests as part or js.tests: step 3 - use TestConfigFactory to provide information about JsTester 2012-07-09 12:40:14 +04:00
Pavel V. Talanov 1ccbf24172 Trying to run stdlib unit tests as part or js.tests: step 2 2012-07-09 12:40:13 +04:00
Pavel V. Talanov ec7b0a1d3a Trying to run stdlib unit tests as part or js.tests: first step 2012-07-09 12:40:12 +04:00
Pavel V. Talanov 5683ee456f TestGenerator -> JSTestGenerator, extract single test generation functionality to a separate class 2012-07-09 12:40:12 +04:00
Evgeny Gerashchenko 040d2f8945 Changed "jdk headers" to "jdk annotations" in test and test data directories names. 2012-07-07 23:07:20 +04:00
Evgeny Gerashchenko 8050b96f27 Fixed code outside main project which was broken after refactoring. 2012-07-07 23:07:20 +04:00
Evgeny Gerashchenko 03f4ef4a09 Fixed expected output for CliTest.help. 2012-07-07 23:07:20 +04:00
Evgeny Gerashchenko c74ccec0bf Renamed CompilerSpecialMode to ConfigurationKind, gave enum constants more clear names. 2012-07-07 23:07:20 +04:00
Evgeny Gerashchenko 2c58989a47 Moved CompilerSpecialMode enum to compiler-tests, since it is now used only for creating test compiler configurations. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko 97dfd74647 Replaced creating compiler configuration for useless "js" configuration with empty compiler configuration. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko 90a7b17fd8 Creating empty compiler configuration in module script instead of default. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko a2765899b5 Removed obsolete -stdlib CLI parameter. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko b958886e23 Removed obsolete -jdkAnnotations CLI parameter. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko a02658b1a6 Removed obsolete -mode CLI parameter. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko 531167bcee Added -builtins CLI option. Using it instead of "-mode stdlib" to enable special frontend and backend modes. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko b65f5cf53f Removed CompilerSpecialMode from JetCoreEnvironment. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko f7290d178b Replaced passing compiler special mode to JetTypeMapper with special enum type. Enum type means if builtin types should be mapped to Java standard classes in generated bytecode. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 5becb4efb1 Passing "stubs" flag to K2JVMCompileEnvironmentConfiguration to avoid checking compiler special mode. 2012-07-07 23:07:18 +04:00