Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class KorgeScreenshotTester(    val views: Views,     context: KorgeScreenshotTestingContext,     defaultValidationSettings: KorgeScreenshotValidationSettings,     testingLock: Mutex,     testResultsOutput: KorgeScreenshotTestResults)
Link copied to clipboard
data class KorgeScreenshotTestingContext(val testClassName: String, val testMethodName: String)
Link copied to clipboard
data class KorgeScreenshotTestResult(    val goldenName: String,     val oldBitmap: Bitmap,     val newBitmap: Bitmap?,     val validationResults: List<KorgeScreenshotValidatorResult>)
Link copied to clipboard
data class KorgeScreenshotTestResults(val testMethodName: String, val results: MutableList<KorgeScreenshotTestResult> = mutableListOf())
Link copied to clipboard
data class KorgeScreenshotValidationSettings(val validators: List<KorgeScreenshotValidator> = listOf( DefaultValidator ))
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class OffscreenContext(val testClassName: String, val testMethodName: String)
Link copied to clipboard
class OffscreenStage(val views: Views) : Stage

Functions

Link copied to clipboard
suspend fun OffscreenStage.assertScreenshot(    view: View = this,     name: String = "",     psnr: Double = 40.0,     posterize: Int = 0,     includeBackground: Boolean = true,     useTexture: Boolean = true)
Link copied to clipboard
inline fun korgeScreenshotTest(    windowSize: Size = Size(512, 512),     virtualSize: Size = windowSize,     bgcolor: RGBA? = Colors.BLACK,     devicePixelRatio: Double = 1.0,     checkGl: Boolean = true,     logGl: Boolean = false,     noinline callback: suspend OffscreenStage.() -> Unit)
Link copied to clipboard
inline fun korgeScreenshotTestV2(    korgeConfig: Korge,     settings: KorgeScreenshotValidationSettings = KorgeScreenshotValidationSettings(),     crossinline callback: suspend Stage.(korgeScreenshotTester: KorgeScreenshotTester) -> Unit = {})
Link copied to clipboard
Link copied to clipboard
fun OffscreenStage.simulateRenderFrame(    view: View = this,     posterize: Int = 0,     includeBackground: Boolean = true,     useTexture: Boolean = true): Bitmap32
fun Views.simulateRenderFrame(view: View, posterize: Int = 0, includeBackground: Boolean = true, useTexture: Boolean = true): Bitmap32
Link copied to clipboard
fun suspendTestWithOffscreenAG(fboSize: Size, checkGl: Boolean = false, logGl: Boolean = false, callback: suspend CoroutineScope.(ag: AG) -> Unit)