Evgeny Gerashchenko
52b7ee6447
Happy new year 2013!
2013-01-28 18:58:08 +04:00
Alexander Udalov
0b1fe9c611
Generate black box with java codegen tests
2013-01-28 18:20:44 +04:00
Alexander Udalov
2904d1745b
Remove generated black box java codegen test
...
Move all testData to boxWithJava/
2013-01-28 18:20:41 +04:00
Alexander Udalov
86938f57b1
Remove codegen tests with Java, move testData to boxWithJava/
...
There'll be a single generated test class like
BlackBoxCodegenTestGenerated
2013-01-28 18:20:37 +04:00
Alexander Udalov
10c5949199
Extract some codegen tests to black box testData
2013-01-28 18:20:33 +04:00
Alexander Udalov
f7e0b06c2f
Generate black box codegen tests
2013-01-28 18:20:29 +04:00
Alexander Udalov
5313cf3bf0
Fix failing tests, copy testData
...
Some tests were using files that others called blackBoxFile() on. Since
those files are now moved to box/, copy them back to make the tests pass
2013-01-28 18:20:25 +04:00
Alexander Udalov
7ce62a5b64
Remove generated codegen tests, move all testData to box/
...
A single test file will be generated out of box/ directory
2013-01-28 18:20:21 +04:00
Alexander Udalov
41a416da60
Move blackBoxFile() testData to box/ directory
...
Delete all test methods (and empty test classes), since they'll be
auto-generated
2013-01-28 18:20:17 +04:00
Alexander Udalov
ecbb2f10ef
NamespaceGenTest doesn't require stdlib
2013-01-28 18:20:12 +04:00
Alexander Udalov
9bf73cf4b3
Extract static functions to CodegenTestUtil
...
Add Nullable/NotNull annotations
2013-01-28 18:18:08 +04:00
Alexander Udalov
63aacc416f
Extract classPathInTheSameClassLoader into a separate test
...
- class loader is now always created as if classPathInTheSameClassLoader
= false, which was the case of every codegen test except kt2781, which
is extracted into a separate file
- testNoClassObjectForJavaClass() is moved from StdlibTest since it has
a custom createClassLoader() which doesn't work well in a java-interop
case
- get rid of generateClassesInFileGetState
- several similar methods are inlined
2013-01-28 18:16:40 +04:00
Alexander Udalov
639aa9e218
Codegen tests: don't generate twice when a test fails
2013-01-25 23:06:43 +04:00
Alexander Udalov
df5b809b46
Refactor CodegenTestCase
...
- prohibit main(Array<String>) in favor of box(): String
- move all script-related code to ScriptGenTest
- remove unused environment-creating methods
- inline trivial methods & other minor stuff
2013-01-25 23:06:43 +04:00
Alexander Udalov
74467df3ef
Sort out blackBox*() methods
...
- get rid of blackBox(), extract tests into files
- delete single-file usages of blackBoxMultiFile()
- inline some other blackBox methods
- suppress exception in blackBoxWithJava()
2013-01-25 23:06:42 +04:00
Alexander Udalov
c8f73cfdae
Remove codegen tests out of JetNpeTest
2013-01-25 23:06:42 +04:00
Alexander Udalov
aa4e69de11
Remove obsolete special files from android tests
2013-01-24 21:12:28 +04:00
Alexander Udalov
0090ce3322
Refactor codegen tests: no special box() result
...
box() shall always return "OK"
2013-01-24 21:12:28 +04:00
Alexander Udalov
de37f73c8d
Remove tests on RTTI
...
It was never implemented
2013-01-24 21:12:27 +04:00
Alexander Udalov
0df71bd696
Refactor codegen tests
...
- initialize environment only once in setUp()
- add comments on why some tests are disabled
- modify and rename some tests
- re-enable now working tests
- extract some tests into files with box()
- remove useless 'throws' declarations and commented code
2013-01-24 21:12:27 +04:00
Alexander Udalov
99827d10a8
Rename *.jet -> *.kt in codegen tests
2013-01-24 21:12:27 +04:00
Natalia.Ukhorskaya
e37cb461f6
Support visibility for protected static members
...
#KT-2999 Fixed
2013-01-24 18:43:37 +04:00
Nikolay Krasko
2e27fb80f3
KT-3273 Return type coalesces to Tuple0 in when/if nested clauses
...
#KT-3273 Fixed
2013-01-23 19:24:00 +04:00
Andrey Breslav
e1831877b7
GenerationStrategy removed
2013-01-23 18:54:03 +04:00
Alexander Udalov
8b5607d98f
Regression tests for some old EA reports
...
EA-35953, EA-35743
2013-01-22 19:49:14 +04:00
Alexander Udalov
ab730b7dd5
Fix CompareTo intrinsic behavior in no-dot syntax
2013-01-22 19:49:10 +04:00
Nikolay Krasko
44dcdde513
Dispose GeneratedClassLoader
2013-01-22 16:05:23 +04:00
Natalia.Ukhorskaya
d7c8655966
Refactoring in Codegen Tests
2013-01-21 13:26:06 +04:00
Alexander Udalov
54e5b6d476
Regenerate tests
2013-01-21 13:10:00 +04:00
Alexander Udalov
4305a009df
Add regression test for KT-2673
...
#KT-2673 Obsolete
2013-01-18 21:27:07 +04:00
Alexander Udalov
ffd62eb80e
Refactor ClassGenTest
...
Initialize environment with JDK_ONLY in setUp(), allowing to quickly launch
tests without compilation of stdlib.
Remove duplicate/unneeded/commented out tests
2013-01-18 18:04:09 +04:00
Alexander Udalov
c4a3963925
Fix nested classes codegen bug
...
When constructing a closure, codegen in some cases incorrectly determined if
it needed to store a reference from a nested class to the outer
2013-01-18 14:59:27 +04:00
Nikolay Krasko
fb9c4b92c4
Suppress all warnings for generated test classes
2013-01-17 21:05:11 +04:00
Alexander Udalov
85bd41dfa5
Codegen tests for inner/nested classes
...
#KT-1174 In Progress
2013-01-16 23:11:49 +04:00
Natalia.Ukhorskaya
47abdcf565
Rename namespace class to {package.name}Package
...
Conflicts:
compiler/jet.as.java.psi/src/org/jetbrains/jet/asJava/JavaElementFinder.java
2013-01-15 19:45:06 +04:00
Evgeny Gerashchenko
b1847698a8
Better jar names for runtime/builtins/jdk-annotations in tests.
2013-01-15 19:41:41 +04:00
Andrey Breslav
69080b72af
When generating light class for package, do not generate other classes
2013-01-14 20:20:21 +04:00
Andrey Breslav
a91b113cc3
GenerationStrategy is now a strategy
2013-01-14 20:20:20 +04:00
Andrey Breslav
380c8b596a
The slow (synchronized) java.util.Stack replaced by com.intellij.util.containers.Stack
2013-01-14 20:20:10 +04:00
Andrey Breslav
b5aa44ae49
GenerationState is constructed with BindingContext, not full AnalyzeExhaust
2013-01-14 15:19:50 +04:00
Maxim Shafirov
c293fe124d
Regression test for KT-3238. The issue itself is incorrect but test may be useful
2013-01-13 03:09:40 +04:00
Andrey Breslav
f26412aae4
Utility methods moved to a utility class
2013-01-10 16:16:49 +04:00
Alexander Udalov
4cebd3f75b
Fix last if-statement in block codegen
...
#KT-3203 Fixed
2013-01-10 14:05:28 +04:00
Evgeny Gerashchenko
e03eaf6dde
Removed @author javadocs from code.
2012-12-28 17:44:31 +04:00
Natalia.Ukhorskaya
e9d1171d6d
Fix VerifyError for enum constructor with default arguments
2012-12-27 12:29:09 +04:00
Natalia.Ukhorskaya
808c5abc0f
Generate constructor without parameters if primary constructor has only parameters with default values
...
#KT-3085 Fixed
2012-12-27 12:29:06 +04:00
Natalia.Ukhorskaya
d4a8ed5ae6
Minor refactoring in tests
2012-12-27 12:29:05 +04:00
Natalia.Ukhorskaya
538aa869b4
Constructor with default arguments for inner class
...
#KT-2852 Fixed
2012-12-27 12:29:01 +04:00
Andrey Breslav
7995013abb
main() added to quickly compile runtime for tests
2012-12-07 21:54:11 +04:00
Natalia.Ukhorskaya
a739964c74
Back-end: write correct visibility flags for private inner classes
2012-12-06 17:25:13 +04:00