Repl: enhance test framework to wait for commands to be processed, not some text to appear

This commit is contained in:
Pavel V. Talanov
2015-10-26 15:19:07 +03:00
parent 03c3fd2c2b
commit d0097c85d3
3 changed files with 35 additions and 27 deletions
@@ -25,7 +25,8 @@ class CommandHistory {
)
private val entries = arrayListOf<Entry>()
private var processedEntriesCount: Int = 0
var processedEntriesCount: Int = 0
private set
val listeners = arrayListOf<HistoryUpdateListener>()
@@ -67,7 +67,7 @@ public class KotlinConsoleRunner(
title: String,
path: String?
) : AbstractConsoleRunnerWithHistory<LanguageConsoleView>(myProject, title, path) {
internal val commandHistory = CommandHistory()
val commandHistory = CommandHistory()
var isReadLineMode: Boolean = false
set(value) {