KorgeTest

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val ag: AG
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val log: Boolean = false
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T> cmdOrMeta(cmdOrMeta: Boolean = simulatedCtrlOrMeta, block: () -> T): T
Link copied to clipboard
inline fun <T> controlKeys(shift: Boolean = simulatedShift, ctrl: Boolean = simulatedCtrl, alt: Boolean = simulatedAlt, meta: Boolean = simulatedMeta, block: () -> T): T
Link copied to clipboard
open fun createAg(): AG
Link copied to clipboard
suspend fun <T> deferred(block: suspend (CompletableDeferred<T>) -> Unit): T
@JvmName(name = "deferredUnit")
suspend fun deferred(block: suspend CompletableDeferred<Unit>.() -> Unit)
Link copied to clipboard
suspend fun delayFrame()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun keyDown(key: Key, shift: Boolean = simulatedShift, ctrl: Boolean = simulatedCtrl, alt: Boolean = simulatedAlt, meta: Boolean = simulatedMeta)
Link copied to clipboard
suspend fun keyDownThenUp(key: Key, shift: Boolean = simulatedShift, ctrl: Boolean = simulatedCtrl, alt: Boolean = simulatedAlt, meta: Boolean = simulatedMeta)
Link copied to clipboard
suspend fun keyType(char: WChar, shift: Boolean = simulatedShift, ctrl: Boolean = simulatedCtrl, alt: Boolean = simulatedAlt, meta: Boolean = simulatedMeta)
suspend fun keyType(chars: WString, shift: Boolean = simulatedShift, ctrl: Boolean = simulatedCtrl, alt: Boolean = simulatedAlt, meta: Boolean = simulatedMeta)
suspend fun keyType(char: Char, shift: Boolean = simulatedShift, ctrl: Boolean = simulatedCtrl, alt: Boolean = simulatedAlt, meta: Boolean = simulatedMeta)
suspend fun keyType(chars: String, shift: Boolean = simulatedShift, ctrl: Boolean = simulatedCtrl, alt: Boolean = simulatedAlt, meta: Boolean = simulatedMeta)
Link copied to clipboard
suspend fun keyUp(key: Key, shift: Boolean = simulatedShift, ctrl: Boolean = simulatedCtrl, alt: Boolean = simulatedAlt, meta: Boolean = simulatedMeta)
Link copied to clipboard
suspend fun mouseClick(button: MouseButton = MouseButton.LEFT)
Link copied to clipboard
suspend fun mouseDown(button: MouseButton = MouseButton.LEFT)
Link copied to clipboard
inline suspend fun mouseMoveAndClickTo(x: Number, y: Number, button: MouseButton = MouseButton.LEFT)
Link copied to clipboard
suspend fun mouseMoveTo(point: MPoint)
suspend fun mouseMoveTo(x: Number, y: Number)

suspend fun mouseMoveTo(x: Int, y: Int)

x, y in global/virtual coordinates

Link copied to clipboard
suspend fun mouseUp(button: MouseButton = MouseButton.LEFT)
Link copied to clipboard
fun resizeGameWindow(width: Int, height: Int, scaleMode: ScaleMode = views.scaleMode, scaleAnchor: Anchor = views.scaleAnchor)
Link copied to clipboard
inline fun <S : Scene> sceneTest(config: Korge? = null, noinline configureInjector: Injector.() -> Unit = {}, timeout: TimeSpan? = DEFAULT_SUSPEND_TEST_TIMEOUT, frameTime: TimeSpan = this.frameTime, crossinline block: suspend S.() -> Unit): AsyncEntryPointResult
Link copied to clipboard
suspend fun View.simulateClick()
Link copied to clipboard
suspend fun View.simulateOut()
Link copied to clipboard
suspend fun View.simulateOver()
Link copied to clipboard
inline fun <T : AG> testRenderContext(ag: T, block: (RenderContext) -> Unit): T
Link copied to clipboard
fun viewsTest(timeout: TimeSpan? = DEFAULT_SUSPEND_TEST_TIMEOUT, frameTime: TimeSpan = this.frameTime, cond: () -> Boolean = { Platform.isJvm && !Platform.isAndroid }, forceRenderEveryFrame: Boolean = true, block: suspend Stage.() -> Unit): AsyncEntryPointResult