Ilya Gorbunov
8784d89f38
Use kotlin-stdlib-sources.jar in tests
...
Instead of deprecated kotlin-runtime-sources
2018-04-18 05:22:40 +03:00
Zalim Bashorov
e1ba08e03d
[JS IR BE] add new items to whitelist and regenerate tests
2018-04-16 14:34:44 +03:00
Vyacheslav Gerasimov
a6bd0f618e
as32: Remove platform-api & platform-impl from build scripts
...
since they are not present in AS 3.2 C10
2018-04-13 21:33:14 +03:00
Vyacheslav Gerasimov
4299455dc1
as32: Update to AS 3.2 C10
2018-04-13 21:33:03 +03:00
Nikolay Krasko
5559a6edd3
Fix quick fix, refactoring and slice tests - ignore bunch files
2018-04-11 16:28:45 +03:00
Vyacheslav Gerasimov
d9f9bf7564
182: Set picocontainer version to 1.2
2018-04-11 16:28:44 +03:00
Nicolay Mitropolsky
22186c05b4
182: KotlinDecompilerServiceImpl and KtParsingTestCase compilation fixes
2018-04-11 16:28:40 +03:00
Vyacheslav Gerasimov
212d218bc6
181: Fix test runtime for 181 platform compiler tests
2018-04-11 16:28:36 +03:00
Vyacheslav Gerasimov
a0e20eefc6
181: Fix dependencies for 181
2018-04-11 16:28:29 +03:00
Nicolay Mitropolsky
1f0f99dc82
181: KotlinTestUtils compilation fix: ShutDownTracker.invokeAndWait removed
2018-04-11 16:28:26 +03:00
Nicolay Mitropolsky
60fe6a911f
as31: KotlinTestUtils: resolving PathUtil conflict
2018-04-11 16:28:22 +03:00
Mikhael Bogdanov
554b834f2c
as31: Revert "Fix codegen tests on JDK 9 with jdkKind = FULL_JDK"
2018-04-11 16:28:17 +03:00
Nikolay Krasko
368dd193ac
172: Revert "Fix compilation after moving to idea 173"
...
This reverts commit fe121cc6aeadf63ca2c2819c9c7df59cc81caf5d.
2018-04-11 16:28:02 +03:00
Nikolay Krasko
d6cc3d64fe
172: Revert "EdtTestUtil.runInEdtAndWait fix for proper user action emulation"
...
This reverts commit 4ebe750d36e86545a72177f91dc3baaa235fa92d.
2018-04-11 16:28:00 +03:00
Nikolay Krasko
81a2e2a340
172: Revert "Fixing non-running tests, that used MockApplication environment"
...
This reverts commit 49fb7aab2a67f09c2832d759448ad07c1bb3023a.
2018-04-11 16:27:57 +03:00
Nikolay Krasko
99acec0970
172: [Tests] Revert "Allow different diagnostics in Javac tests - workaround for IDEA-184289"
...
This reverts commit 5212153463dcefbde28b4ca1814f6888fa9c57c1.
2018-04-11 16:27:56 +03:00
Dmitry Petrov
7cf6c70fbf
Use NoScopeRecordCliBindingTrace as default trace in GenerationUtils
...
NB we use 'Intrinsics.areEqual(Double, Double)' and
'Intrinsics.areEqual(Float, Float)', because right now we take
nullability from the inferred type of the expression (which is 'Any?' in
the test cases).
We should probably reconsider this in case of more exact information
available from the data flow analysis, e.g., in case of
fun test(x: Any?) =
x is Serializable && x is Double? && x == 0.0
We statically know that 'x' is not null in 'x == 0.0' (although it's
neither nullability of it's numeric type 'Double?' nor the nullability
of the inferred type 'Any?').
There might be some edge effects in the performance related to byte code
size and preventive unboxing and so on.
2018-04-11 10:49:02 +03:00
Roman Artemev
4cdd121c21
Add test for issue KT-23582
2018-04-10 15:58:30 +03:00
Roman Artemev
3ce324fa9d
Add tests for secondary constructors
2018-04-10 15:45:55 +03:00
Denis Zharkov
42d9c5b932
Remove dependency on :kotlin-test:kotlin-test-jvm from tests-common
...
#KT-20897 Fixed
2018-04-10 15:38:16 +03:00
Dmitry Savvinov
30948269dd
Minor: use enum for determining verbosity of ConstraintSystem render
2018-04-10 10:47:22 +03:00
Alexander Udalov
d2ed73eb78
Enable all Java 9 tests
2018-04-05 12:38:48 +02:00
Mikhael Bogdanov
23e8adb793
Add custom diagnostic checker for @JvmDefault annotation
2018-04-03 19:18:17 +02:00
Nikolay Krasko
6a71f5bd2c
Restore JUnit3RunnerWithInners version for JPS and delegate pill to it
2018-03-29 14:14:34 +03:00
Nikolay Krasko
8d4fa8f3e8
Stop running tests from inner classes in JUnit3RunnerWithInners (KT-23234)
...
Running tests as part of parent class produced test names on
TeamCity that were different from test names obtained when inner classes
were executed first. And it looks like test order execution in Gradle
depends on file walker and file system.
#KT-23234 Fixed
2018-03-29 14:14:34 +03:00
Zalim Bashorov
4d742c5266
Add more tests to JS IR whitelist and regenerate tests
2018-03-28 20:33:23 +03:00
Alexander Udalov
6660873e18
Add annotations to dependencies of tests-common
...
To prevent warnings "unknown enum constant Capitalization.Title" during
the build
2018-03-26 17:21:08 +02:00
Alexey Tsvetkov
8a82c1618c
Use Plugins DSL in Kotlin Gradle scripts
...
When plugins DSL is used, there is no need to
manually generate typesafe accessors for extensions and
conventions (by running `./gradlew kotlinDslAccessorsSnapshot`).
2018-03-26 16:09:29 +03:00
Nikolay Krasko
982b768c69
Refactoring: collect callbacks for collecting module info in one place
2018-03-23 18:04:08 +03:00
Nikolay Krasko
586860e03a
Refactoring: store correspondent module info in module content
2018-03-23 18:04:01 +03:00
Nikolay Krasko
3e313509e1
Refactoring: restrict callback in ResolverForProjectImpl
2018-03-23 18:03:59 +03:00
Zalim Bashorov
68457a55a8
[JS IR BE] support more constructions:
...
* generate declaration for top level properties
* basic support for calls
* break
* continue
* throw
* generate declaration for local vals and vars
2018-03-20 22:44:29 +03:00
Zalim Bashorov
87ee373205
Few improvements in test infrastructure:
...
* add the way to specify another compatible target for target backend.
It's used to generate a test for X_IR backend even when in a test data
is explicitly written a target: "// TARGET_BACKEND: X".
* Add the ability to run tests "ignored" with the "IGNORE_BACKEND" directive
as regular tests, i.e. w/o catching exceptions.
* Print stack trace of caught exception inside tests "ignored"
with the "IGNORE_BACKEND" directive.
2018-03-20 22:44:28 +03:00
Zalim Bashorov
e0a070ff35
[JS IR BE] basic compiler
2018-03-20 22:44:27 +03:00
Zalim Bashorov
4404c6dd2c
Run JS box tests for JS IR BE
2018-03-20 22:44:26 +03:00
Zalim Bashorov
44d5d0da7e
Rid of most of the usage of JsConfig in TopDownAnalyzerFacadeForJS
2018-03-20 22:44:25 +03:00
Nikolay Krasko
9145470f79
Minor: remove "JVM" constant usages in multi target platform
2018-03-16 16:40:38 +03:00
Nikolay Krasko
481a5bc28d
Update JUnit3RunnerWithInners.java for Gradle 4.6 (KT-23292)
...
Update after "Executer -> Executor" rename
https://github.com/gradle/gradle/commit/3f1487e8006d0c606e3be25267a238427468917a
#KT-23292 Fixed
2018-03-16 16:40:37 +03:00
Simon Ogorodnik
c0b0f6d1ca
Extract PSI to separate module
2018-03-16 13:32:14 +03:00
Denis Zharkov
21932b5824
Use mockJDK as a bootClasspath for AbstractCompileKotlinAgainstJavaTest
...
Otherwise JAVA_HOME is being used that lead to test result depending
on minor JDK version used on a computer
#KT-21047 Fixed
2018-03-15 19:00:31 +03:00
Denis Zharkov
1766812bf3
Minor. Reformat AbstractCompileKotlinAgainstJavaTest
2018-03-15 19:00:31 +03:00
Zalim Bashorov
055b900d8a
Add generating tests using "whitelist" of target backend; add new target backends: JS_IR and JVM_IR
2018-03-14 15:06:31 +03:00
Zalim Bashorov
82f41a1125
J2K TargetBackend
2018-03-14 15:06:31 +03:00
Alexander Udalov
e31f286444
Make NameResolver.getClassId extension instead of member
...
To get rid of dependency of NameResolver on ClassId
2018-03-14 12:25:11 +01:00
Alexander Udalov
27ad4f7d5d
Move ProtoBuf classes to package org.jetbrains.kotlin.metadata
2018-03-14 12:25:10 +01:00
Pavel V. Talanov
32516a3f33
Refactor: split *LightClassGenerationSupport into separate files
...
Move cli binding trace implementation to top level
2018-03-12 12:05:05 +01:00
Pavel V. Talanov
f421181e16
Split LightClassGenerationSupport into separate entities
...
LightClassGenerationSupport:
Includes utilities related to generating light classes
Primary client of this service are KtLight* implementation classes
KotlinAsJavaSupport:
Provides APIs to transform kotlin code into Psi* entities
Primary client of this service is JavaElementFinder
2018-03-12 12:04:59 +01:00
Yan Zhulanow
34d1611ed4
Add Pill support to compiler and IDE modules
2018-03-02 03:15:17 +03:00
Dmitry Petrov
b206bf199f
Add type operand symbol for type operator expression
2018-02-28 10:35:13 +03:00
Dmitry Petrov
9570b64953
Add 'parent' to IrDeclaration, initialize it with a hack (for migration)
2018-02-28 10:35:13 +03:00