Live templates test: fix typo & cleanup

This commit is contained in:
Mikhail Glukhikh
2018-10-16 13:08:47 +03:00
parent 0f94c0901f
commit 2dd8b526fb
@@ -29,51 +29,51 @@ class LiveTemplatesTest : KotlinLightCodeInsightFixtureTestCase() {
} }
fun testSout() { fun testSout() {
paremeterless() parameterless()
} }
fun testSout_BeforeCall() { fun testSout_BeforeCall() {
paremeterless() parameterless()
} }
fun testSout_BeforeCallSpace() { fun testSout_BeforeCallSpace() {
paremeterless() parameterless()
} }
fun testSout_BeforeBinary() { fun testSout_BeforeBinary() {
paremeterless() parameterless()
} }
fun testSout_InCallArguments() { fun testSout_InCallArguments() {
paremeterless() parameterless()
} }
fun testSout_BeforeQualifiedCall() { fun testSout_BeforeQualifiedCall() {
paremeterless() parameterless()
} }
fun testSout_AfterSemicolon() { fun testSout_AfterSemicolon() {
paremeterless() parameterless()
} }
fun testSoutf() { fun testSoutf() {
paremeterless() parameterless()
} }
fun testSoutf_InCompanion() { fun testSoutf_InCompanion() {
paremeterless() parameterless()
} }
fun testSerr() { fun testSerr() {
paremeterless() parameterless()
} }
fun testMain() { fun testMain() {
paremeterless() parameterless()
} }
fun testMaina() { fun testMaina() {
paremeterless() parameterless()
} }
fun testSoutv() { fun testSoutv() {
@@ -86,7 +86,7 @@ class LiveTemplatesTest : KotlinLightCodeInsightFixtureTestCase() {
} }
fun testSoutp() { fun testSoutp() {
paremeterless() parameterless()
} }
fun testFun0() { fun testFun0() {
@@ -232,7 +232,7 @@ class LiveTemplatesTest : KotlinLightCodeInsightFixtureTestCase() {
doTestIfnInn() doTestIfnInn()
} }
private fun paremeterless() { private fun parameterless() {
start() start()
checkAfter() checkAfter()
@@ -272,17 +272,18 @@ class LiveTemplatesTest : KotlinLightCodeInsightFixtureTestCase() {
val project = project val project = project
UIUtil.invokeAndWaitIfNeeded(Runnable { UIUtil.invokeAndWaitIfNeeded(Runnable {
CommandProcessor.getInstance().executeCommand( CommandProcessor.getInstance().executeCommand(
project, project,
{ {
templateState!!.nextTab() templateState!!.nextTab()
}, },
"nextTab", "nextTab",
null) null
)
}) })
} }
private fun nextTab(times: Int) { private fun nextTab(times: Int) {
for (i in 0..times - 1) { for (i in 0 until times) {
nextTab() nextTab()
} }
} }