Commit Graph

9338 Commits

Author SHA1 Message Date
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
Andrey Breslav 1c0cdbf142 Look up kotlin-runtime.jar through the marker class + more marker classes 2013-01-25 22:02:36 +04:00
Andrey Breslav 0187451c6f Subscribe for exitDumbMode() to update notifications
Instead of scheduling runWhenSmart(), which does not work sometimes
2013-01-25 22:02:36 +04:00
Andrey Breslav f91d4c5497 Class renamed 2013-01-25 22:02:35 +04:00
Andrey Breslav 8e516441f1 Version-related classes moved to the appropriate package 2013-01-25 22:02:35 +04:00
Andrey Breslav 341bd3a555 Notifications about unsupported ABI versions 2013-01-25 22:02:35 +04:00
Andrey Breslav 5a09d3a6b5 Continuation added to updateRuntime() 2013-01-25 22:02:35 +04:00
Andrey Breslav c662f51a0a A method to find local VirtualFile for Kotlin runtime library 2013-01-25 22:02:35 +04:00
Andrey Breslav e15953b9fc Finding library roots with wrong ABI versions 2013-01-25 22:02:35 +04:00
Andrey Breslav 2ec03acd17 Library created under write action 2013-01-25 22:02:35 +04:00
Andrey Breslav 96c6e604fb Assertion message 2013-01-25 22:02:35 +04:00
Andrey Breslav 0bf6c75e49 Handle non-existent files 2013-01-25 22:02:34 +04:00
Andrey Breslav a4d2cd5247 Assert message 2013-01-25 22:02:34 +04:00
Andrey Breslav fb80e64e6b Common library-related logic is extracted from UI classes to a util class 2013-01-25 22:02:34 +04:00
Andrey Breslav 41dd4b29ae AbiVersionIndex added 2013-01-25 22:02:34 +04:00
Andrey Breslav 8797c3ea95 New package 'versions' created 2013-01-25 22:02:34 +04:00
Evgeny Gerashchenko 0031a633a2 KT-3277 Exception opening URLClassloader from java SDK. Obviously static class initializer doesn't have a name
EA-43194 - assert: KotlinSignatureInJavaMarkerProvider.getDescriptorForMember

 #KT-3277 fixed
2013-01-25 17:43:37 +04:00
Alexander Udalov 69ae014da3 Revert excluding kt344 in SpecialFiles 2013-01-24 23:01:35 +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 b0aa094cf8 Constructor for protected_static nested class should be protected 2013-01-24 20:58:39 +04:00
Andrey Breslav 20c1181ad1 Merge pull request #167 from ponomandr/master
KT-3263 Add a quick fix to make a class inner
2013-01-24 08:18:46 -08:00
Natalia.Ukhorskaya e37cb461f6 Support visibility for protected static members
#KT-2999 Fixed
2013-01-24 18:43:37 +04:00
Nikolay Krasko f9ae4f58b8 Fix test - read variable for reproduce KT-3273 fail condition
#KT-3273 Fixed
2013-01-24 17:10:28 +04:00
Andrey Ponomarev 52d259bc7b KT-3263 Add a quick fix to make a class inner 2013-01-23 19:26:30 +01:00
Alexander Udalov a0a22b7be6 Outer's superclass' method is now inaccessible from nested
Also the diagnostic error message reported the wrong nested class name: it
should be the nested class in the hierarchy which is static, not the class of
the scope where we're checking the accessibility
2013-01-23 20:18:16 +04:00
Andrey Breslav f84d00eec9 Kotlin classes always have a signature 2013-01-23 20:12:48 +04:00
Andrey Breslav 0dc24bcd92 KT-3268 Check binary format version in the compiler 2013-01-23 20:12:48 +04:00
Andrey Breslav 2cb530a6d1 Warnings fixed, annotations added 2013-01-23 20:12:47 +04:00
Andrey Breslav 56acd57e73 KT-3267 Put binary format version into the generated class files
#KT-3267 Fixed
2013-01-23 20:12:47 +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 3e02764603 Supporting FqNames with spaces/comments inside them for deprecated 2013-01-23 18:58:38 +04:00
Andrey Breslav a7531926a4 Properly compute STATIC for light classes 2013-01-23 18:54:04 +04:00
Andrey Breslav bd3d41e7ed JetPackageDeclarationIndex removed (replaced by JetAllPackagesIndex) 2013-01-23 18:54:03 +04:00
Andrey Breslav e1831877b7 GenerationStrategy removed 2013-01-23 18:54:03 +04:00
Vladimir Rudev 99aee736d1 KT-2723 Overridden/Implemented gutter icon for class and trait 2013-01-23 15:59:08 +04:00
Andrey Breslav 95f84459c9 Utility methods moved to a separate class 2013-01-23 13:10:35 +04:00
Andrey Breslav 5e1e6c2595 Invisible private classes are not auto-imported 2013-01-23 13:10:35 +04:00