Commit Graph

66 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 0f83c8297e Added corner case test for int range iteration. 2013-03-05 14:58:43 +04:00
Natalia.Ukhorskaya 9bbfc788ea Generate all surround with tests to one file 2013-02-18 17:21:26 +04:00
Natalia.Ukhorskaya 7c360a0ede Add surround with function literal 2013-02-18 17:21:16 +04:00
Natalia.Ukhorskaya 7789062c7c Add try-catch, try-finally, try-catch-finally surrounders 2013-02-18 17:12:47 +04:00
Natalia.Ukhorskaya 654fa09fff Add when surrounder 2013-02-18 17:00:39 +04:00
Natalia.Ukhorskaya 814ca0385a Add string template surrounder 2013-02-18 17:00:34 +04:00
Natalia.Ukhorskaya 856bffb324 Add parentheses surrounder 2013-02-18 17:00:03 +04:00
Evgeny Gerashchenko 882c2cb28d Added tests with NaN ends to codegen tests. 2013-02-13 18:08:36 +04:00
Evgeny Gerashchenko 5a4ae00970 Added range iteration test with non-literal ranges. 2013-02-13 18:08:33 +04:00
Natalia.Ukhorskaya 09ca020780 Add surround with not 2013-02-13 17:21:05 +04:00
Natalia.Ukhorskaya 2499bb79ca Add surround with if /else 2013-02-13 17:21:04 +04:00
Natalia.Ukhorskaya 1786c2c256 Add surround with if 2013-02-13 17:21:03 +04:00
Alexander Udalov 620143ae5b Add test on bytecode text
Test data should be a Kotlin source file with zero or more comments e.g. of
the form: '// 1 INVOKEVIRTUAL'. The test then checks that the generated
bytecode for this file contains exactly one occurrence of the string
'INVOKEVIRTUAL'
2013-02-11 02:01:43 +04:00
Alexander Udalov b485c7ae26 Switch class loading logic in blackBoxWithJava tests
BoxWithJava tests now by default are loaded with the classloader which has
test's classpath in itself, as in the former ClassPathInTheSameClassLoaderTest
2013-02-11 02:01:42 +04:00
Alexander Udalov 22bf8b25b8 Autogenerate codegen multi-file tests
Based on boxMultiFile/ directory
2013-02-11 02:01:42 +04:00
Alexander Udalov 30203383a4 Delete unneeded abstract test class, regenerate tests 2013-02-11 02:01:41 +04:00
Alexander Udalov d23f82177f Generate codegen blackbox tests with stdlib 2013-02-11 02:01:40 +04:00
Alexander Udalov 714708eac7 Delete generated test cases, move testData to boxWithStdlib 2013-02-11 02:01:40 +04:00
Evgeny Gerashchenko b54a0dd57e Refactored multi-file quickfix test to generated tests framework. 2013-02-07 22:03:31 +04:00
Evgeny Gerashchenko 15dcab9097 Refactored single-file quickfix test to generated tests framework. 2013-02-07 22:03:31 +04:00
Evgeny Gerashchenko 3cf2289687 Matching test files by regex instead of extension. 2013-02-07 21:39:22 +04:00
Natalia.Ukhorskaya 88e3b9e190 Add codegen tests for package visibility 2013-02-06 21:54:18 +04:00
Nikolay Krasko 54e5fa5256 Imports resolution tests 2013-02-04 14:23:26 +04:00
Nikolay Krasko e69acd9198 JetPsiBuilder -> JetImportsFactory rename 2013-02-04 14:23:25 +04:00
Nikolay Krasko 83bc8d4f21 Centralize and cache creating import directives 2013-02-04 14:23:16 +04:00
Evgeny Gerashchenko 57e985b7f1 Generated codegen tests for ranges. 2013-01-30 19:24:15 +04:00
Evgeny Gerashchenko 0e0c048074 New structure of range classes. 2013-01-29 22:55:05 +04:00
Evgeny Gerashchenko eb8107115d Moved IntRange.count to Ranges class. 2013-01-29 22:55:03 +04:00
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 f7e0b06c2f Generate black box codegen tests 2013-01-28 18:20:29 +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
Natalia.Ukhorskaya e37cb461f6 Support visibility for protected static members
#KT-2999 Fixed
2013-01-24 18:43:37 +04:00
Natalia.Ukhorskaya d7c8655966 Refactoring in Codegen Tests 2013-01-21 13:26:06 +04:00
Alexander Udalov 85bd41dfa5 Codegen tests for inner/nested classes
#KT-1174 In Progress
2013-01-16 23:11:49 +04:00
Evgeny Gerashchenko 8fbc71df8a Invoke doTestWithInfos in corresponding test cases. 2013-01-15 19:41:41 +04:00
Nikolay Krasko 1263919e39 Test for property from top level object
#KT-3187 Fixed
2013-01-15 19:06:53 +04:00
Alexander Udalov a2e453b759 Refactor CompileKotlinAgainstKotlinTest
CKAKTest is now abstract, the actual testcases are generated via GenerateTests
into CompileKotlinAgainstKotlinTestGenerated.

Also invokeMain() now invokes namespace.main instead of bbb.namespace.main.
2013-01-09 15:32:51 +04:00
Evgeny Gerashchenko e03eaf6dde Removed @author javadocs from code. 2012-12-28 17:44:31 +04:00
Evgeny Gerashchenko 862a6ffbbc Moved class object case to namespace comparing test. 2012-12-27 20:46:59 +04:00
Natalia.Ukhorskaya beec5a843e Remove duplicate in GenerateTests 2012-12-27 12:29:07 +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 538aa869b4 Constructor with default arguments for inner class
#KT-2852 Fixed
2012-12-27 12:29:01 +04:00
Evgeny Gerashchenko 2daf9a10d0 Renamed test methods. 2012-12-20 19:26:52 +04:00
Evgeny Gerashchenko 1ab555a51b Checking primary flag in constructors loaded from Java. 2012-12-20 18:48:47 +04:00
Evgeny Gerashchenko 1cfc5f366e Extracted DescriptorRenderer interface. 2012-12-17 16:35:59 +04:00
Evgeny Gerashchenko f6e9b0e234 Removed renderTypeWithShortNames from API of DescriptorRenderer. 2012-12-17 16:35:57 +04:00
Evgeny Gerashchenko 8a946c6ef9 Renamed DescriptorRenderer and moved to 'renderer' package.
Moved DescriptorRendererTest to 'renderer' package, as well.
2012-12-17 16:35:56 +04:00
Evgeny Gerashchenko 1092164684 Generating Java to Kotlin method map along with injectors. 2012-12-07 14:41:59 +04:00