Dmitriy Dolovov
3dc3c19c02
[Commonizer] Fix ImportAndCheckNavigation IT
2020-08-17 21:52:40 +07:00
Toshiaki Kameyama
35459d2ca7
"Add not-null asserted (!!) call": add '!!' to receiver of function reference
...
#KT-37841 Fixed
2020-08-17 12:05:45 +03:00
Ilya Kirillov
b79deafbc7
FIR IDE: fix testdata
2020-08-17 11:38:04 +03:00
Toshiaki Kameyama
89cc5777ce
Put parameters on line: don't suggest if parameters has end-of-line comments
...
#KT-35214 Fixed
2020-08-13 19:53:46 +03:00
Toshiaki Kameyama
efa981db36
"Create class from usage": add visibility to primary constructor if needed
...
#KT-29844 Fixed
2020-08-13 19:51:01 +03:00
Toshiaki Kameyama
b1e8238ea2
"Convert reference to lambda" intention: handle extension function reference with extension function call
...
#KT-35558 Fixed
2020-08-13 19:48:07 +03:00
Toshiaki Kameyama
9ff7539ff0
"Merge 'if's" intention: do not remove nested comments
...
#KT-33258 Fixed
#KT-39552 Fixed
2020-08-13 19:43:39 +03:00
Toshiaki Kameyama
f6e70cfed8
Wrap with let: fix it works correctly for invoking function type
...
#KT-39182 Fixed
2020-08-13 19:30:34 +03:00
Toshiaki Kameyama
4901cdb11f
ConvertCallChainIntoSequence: support functions added in Kotlin 1.4
...
#KT-40448 Fixed
2020-08-12 16:28:29 +03:00
Toshiaki Kameyama
5e91ffb156
Move to class body: don't suggest on data class
...
#KT-40558 Fixed
2020-08-12 16:10:33 +03:00
Vladimir Dolzhenko
8540f47c15
Fixed FindUsages case on look up implementation getter/setters via property names
...
#KT-40788 Fixed
#KT-24616 Fixed
back-port from kotlin-ide commit aa5580bb5a7e96b209cdaa1c82f4e485ee001ae8
2020-08-10 22:04:06 +02:00
Alexander Dudinsky
e67518c349
Update gradle plugin version in GradleFacetImportTest
...
Also drop legacy tests for 1_1_2
2020-08-10 13:14:01 +03:00
Nataliya Valtman
a766369e72
KT-33908 Make Kotlin Gradle plugin compatible with configuration cache
...
#KT-33908 Fixed
2020-08-10 11:17:30 +03:00
Ilya Kirillov
054d196ec5
FIR IDE: temporary ignore failing tests
2020-08-09 12:05:02 +03:00
Ilya Kirillov
7d8ef5c7a2
FIR IDE: introduce KtFirConstructorDelegationReference
2020-08-09 12:03:54 +03:00
Ilya Kirillov
0870ded054
FIR IDE: introduce KtFirArrayAccessReference
2020-08-09 12:03:47 +03:00
Ilya Kirillov
22054c8507
FIR IDE: use non-fake override fir elements when finding psi for fir
2020-08-09 12:03:40 +03:00
Ilya Kirillov
ea3b2d8310
KT IDE: fix fully-qualified type resolving
2020-08-09 12:03:26 +03:00
Ilya Kirillov
4c08dfb238
Add invoke reference resolve test without errors in test data
2020-08-09 11:59:17 +03:00
Konstantin Tskhovrebov
69ce6bd952
Add tests for setup native run gutters.
2020-08-06 14:06:04 +03:00
Alexander Dudinsky
ea0099aa39
Fix testPlatformToCommonExpByInComposite.
...
In 9d362875da build started fail if mpp
or js targets not configured.
The test testPlatformToCommonExpByInComposite was fixed due it.
2020-08-05 10:45:16 +03:00
Alexander Dudinsky
05d6217f78
Changed gradle-plugin version in Gradle tests.
...
When 6.5.1 Gradle version was added, more tests have began to fail
because of legacy gradle-plugin versions (1.1., 1.2.) which are not
compatible with the new version of Gradle. This commit updates the used
version of the Gradle plugin to the latest stable (1.3.72) and makes it
configurable from tests.
2020-08-05 10:45:15 +03:00
Alexander Dudinsky
0298795b18
Add gradle.properties with kotlin.stdlib.default.dependency=false for tests
...
In the master version of plugin dependencies on stdlibs are enabled
by default. It is not expected for some tests.
Flag kotlin.stdlib.default.dependency=false fixed it.
2020-08-05 10:45:15 +03:00
Toshiaki Kameyama
c91858d470
Convert member to extension: do not suggest for delegated properties
...
#KT-35128 Fixed
2020-07-30 17:32:31 +03:00
Mikhail Bogdanov
d083297366
Support additional flags in MPP tests. Add diagnostic tests for defaults
2020-07-24 12:10:04 +02:00
Natalia Selezneva
be371c9294
Remove optimization in KotlinScriptDependenciesClassFinder
...
Scope can contains only classes for one script,
but allScriptDependenciesScope contains classes for all scripts
2020-07-23 00:00:51 +03:00
Natalia Selezneva
dd20b9062a
Completion for script inside module should provide classes from related module
...
^KT-35825 Fixed
2020-07-22 23:49:47 +03:00
Toshiaki Kameyama
80e4e7939d
"Create abstract function" quick fix: don't suggest it if super classes are not writable
...
#KT-40215 Fixed
2020-07-17 19:35:02 +03:00
Alexander Dudinsky
27e7116f60
Added the gradle plugin SNAPSHOT version support for some tests.
...
`ImportAndCheckNavigation` and `GradleMultiplatformHighlightingTest` now
use the SNAPSHOT version of the gradle plugin also.
2020-07-17 13:55:25 +03:00
Mikhail Zarechenskiy
a6e58edfb9
Update test data, unmute test
...
Now behavior is the same as in OI for these cases.
The behavior was changed in 100a6f70ca
2020-07-17 07:47:15 +03:00
Toshiaki Kameyama
b9a220c624
AddSuspendModifierFix: suggest in inline lambda
...
#KT-38139 Fixed
2020-07-16 18:49:29 +03:00
Alexander Dudinsky
d89083cd8c
Fixup the tests vs master-gradle-plugin
...
Defined 4.0 and 1.3.0 as default versions of Gradle and plugin for PluginTargetVersions
Use `{{kotlin_plugin_repositories}}` template in testData of ImportTests
Update "mute" databases for new tests
Add `kotlin.stdlib.default.dependency=false` to some testData
2020-07-15 17:10:36 +03:00
Andrey Uskov
005314ce06
Support running import tests on bootstrap version of gradle plugin
2020-07-15 17:09:36 +03:00
Victor Petukhov
d2f5fbdd08
Fix failing on AS test with inserting -Xinline-classes to build script
2020-07-15 13:35:16 +03:00
Victor Petukhov
bf23b39d76
Add using -Xinline-classes by default in IDE intentions
...
^KT-34209 Fixed
2020-07-14 17:43:44 +03:00
Pavel Kirpichenkov
79d7babb57
Add test checking file annotations resolution
...
#KT-37219 Fixed
2020-07-14 17:07:42 +03:00
Andrei Klunnyi
be0cde1d70
KT-32368 Rework Inline hints settings // remove suspending call hints
...
Suspending call hints were removed according to KT-30928 and KT-39271.
2020-07-14 10:03:48 +00:00
Andrei Klunnyi
d1722e3975
KT-32368 Rework Inline hints settings // migrate tests for types
...
KotlinReferencesTypeHintsProvider which in now responsible for
type hints is not compatible with the existing
InlayTypeHintsTest. Because of that tests were migrated to the new
infrastructure.
2020-07-14 10:03:47 +00:00
Andrei Klunnyi
36f3431559
KT-32368 Rework Inline hints settings // migrate tests for suspending calls
...
KotlinSuspendingCallHintsProvider which in now responsible for
suspending call hints is not compatible with the existing
SuspendingCallHintsTest. Because of that tests were migrated to the new
infrastructure.
2020-07-14 10:03:47 +00:00
Andrei Klunnyi
b0dece756a
KT-32368 Rework Inline hints settings // migrate tests for lambdas
...
KotlinLambdasHintsProvider which in now responsible for lambda related
hints is not compatible with the existing LambdaReturnValueHintsTest.
Because of that tests were migrated to the new infrastructure.
2020-07-14 10:03:46 +00:00
Natalia Selezneva
3d91c410e7
*.gradle.kts: include project sources in script dependencies sources scope
...
^KT-39523 Fixed
2020-07-08 18:30:02 +03:00
Toshiaki Kameyama
d2deff4864
Add "Replace with 'equals(..., ignoreCase = true)'" inspection
...
#KT-40016 Fixed
2020-07-08 12:38:30 +02:00
Natalia Selezneva
b3a84ba081
Fix warning in ScriptConfigurationHighlightingTest
...
In case of exception from dependencies resolver
we do not threat the configurations as up-to-date,
so the reloading process will be started during test
despite updateScriptDependenciesSynchronously called at startup.
This will lead to the warning from checkHighlighting
because if script reports are different we rehighlight the script.
Note that test won't fail.
2020-07-06 23:23:46 +03:00
Igor Yakovlev
5871628f2b
Possibly fix flacky test of light classes for decompiled declarations
...
Tests:
JavaAgainstKotlinBinariesCheckerTestGenerated.testInferenceReturnType_1_8JavaAgainstKotlinBinariesCheckerTestGenerated.testReturnInnerClasses
2020-07-06 22:28:45 +03:00
Roman Golyshev
5cf6b860a6
KT-39869 Add inspection for FQN usages of kotlin.browser package
...
- `kotlin.dom` does not need this because it contains only extensions
- Add test for launching whole project fix; mute it because currently it
does not pass
- The test fails because in tests `RefJavaManager` tries to create
`RefJavaFileImpl` for .kt files. It will try to use UAST, but it
does not work for JS files. In production this is disabled, so no
problems occur
2020-07-06 18:04:01 +00:00
Roman Golyshev
75de352ce2
KT-39869 Add ObsoleteKotlinJsPackagesInspection inspection
...
- This inspection allows to migrate from `kotlin.dom|kotlin.browser`
to `kotlinx.dom|kotlinx.browser` packages respectively
- This inspection is available from the import statements, and also
from the `Run migrations` action
- ^KT-39869 Fixed
2020-07-06 18:04:00 +00:00
Roman Golyshev
871bb30dbe
KT-39869 Refactor ObsoleteExperimentalCoroutinesInspection.kt
...
- We need this to reuse the logic for migration inspections
2020-07-06 18:03:58 +00:00
Toshiaki Kameyama
6b5c31e2fc
Move statement up: do not apply to @file annotation
...
#KT-10790 Fixed
2020-07-06 17:50:39 +02:00
Igor Yakovlev
4707f4fc3f
Change signature does not make doubled refactoring for java usages
...
Fixed #KT-22170
2020-07-06 11:54:36 +03:00
Vladimir Dolzhenko
a830c69a30
Regenerate TypingIndentationTestBaseGenerated
2020-07-04 22:25:09 +02:00