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:
committed by
Roman Golyshev
parent
bddf87337c
commit
e488e920d8
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user