9 Commits
Author SHA1 Message Date
Nikita Bobko 89139a6e07 Reformat test data for MoveStatementTestGenerated. It fixes appropriate tests
Those test failures was caused by: "Fix path handling in a number of Kotlin tests".
In this coomit we extend `AbstractCodeMoverTest` from `KotlinLightCodeInsightFixtureTestCase`.
`KotlinLightCodeInsightFixtureTestCase` enables official Kotlin code style in `setUp`
what caused test failures because test data wasn't properly formatted.

The only problem here is that now we are in the middle of transitioning between
current Kotlin code style and official one. So if you user has some old sandbox
for debug IDE then he/she has different behaviour in tests and IDE what may lead
to misunderstanding (what actually happened to me). One of the ways to solve this
problem is to check that test data is properly formatted before running any
test: KT-40264. This may be implemented in future

GitOrigin-RevId: 9efc69ae4b33bf363e6aeb9a416bf216ee33553e
2020-07-13 18:46:56 +03:00
Toshiaki Kameyama 8d231417b0 Move statement: Add or remove empty lines correctly
#KT-14946 Fixed

Original commit: 8a595ad1654a6fe889cc6017db059383e75af940

GitOrigin-RevId: aceee03d22c9cc04e1cc7eba35c5bd875e1c091b
2020-06-03 18:55:44 +03:00
Toshiaki Kameyama f7190dbbe1 Move statement: don't move declarations above package and import directives
GitOrigin-RevId: 4b3b77802075fbf7386e83cec2c9fb7e2d64a981
2019-11-28 11:20:09 +03:00
Nikolay Krasko 5d3edc41bf Adjust move code tests for KEEP_FIRST_COLUMN_COMMENT option
#KT-4175 In Progress

GitOrigin-RevId: 0182a47858860818f1738d771666c4eda5a22843
2016-03-16 12:38:21 +03:00
Dmitry Jemerov 23f5ec1214 fix tests by adding missing 'init' keywords to testdata
GitOrigin-RevId: d236ce33f3da5cb771502c36ced263c23cb58e77
2015-04-29 15:07:05 +03:00
Alexey Sedunov 25154eb1ae KT-4018 When moving members move comments too
GitOrigin-RevId: b907ad16b9170370902809ff75b1928f51ad6d06
2013-10-15 17:44:00 +03:00
Alexey Sedunov 63584f42fd Fixed moving of classes without body
GitOrigin-RevId: 11582aa1837a3450d0e3a5a0aa40c769e24bb343
2013-06-21 17:18:07 +03:00
Alexey Sedunov 7cca1ef22a Allow moving out to arbitrary blocks and moving any declaration into class body
GitOrigin-RevId: 2c21551a20746c7951f2a9f48cf7f69f9f85fd9d
2013-06-05 14:50:53 +03:00
Alexey Sedunov 96460013e8 Implement "move class-level declaration up/down" action handler
GitOrigin-RevId: ba1a6392d2e940b8d64109ff664ff3d16a534a33
2013-06-05 14:50:41 +03:00