KT-32366: Add tests for right preview window

- also, fix missing test generation in `GenerateTests` bunch files (which was introduced in e54b43ba)
This commit is contained in:
Roman Golyshev
2019-08-19 18:48:16 +03:00
committed by Roman Golyshev
parent bddf87337c
commit e488e920d8
17 changed files with 203 additions and 28 deletions
@@ -119,6 +119,9 @@ class KtScratchFileEditorWithPreview private constructor(
layout = if (isPreviewEnabled) Layout.SHOW_EDITOR_AND_PREVIEW else Layout.SHOW_EDITOR
}
@TestOnly
fun getPreviewEditor(): TextEditor = previewTextEditor
companion object {
fun create(scratchFile: ScratchFile): KtScratchFileEditorWithPreview {
val textEditorProvider = TextEditorProvider.getInstance()