Package-level declarations

Types

Link copied to clipboard

The user-facing handle for driving a single isolated Swing-Compose composition under test.

Link copied to clipboard
sealed interface MainTestClock

Manual control over the frames ComposeSwingTest sends its own composition.

Link copied to clipboard

A predicate over a single AWT Component together with a human-readable description used in failure messages. Matchers are combined with and, or and not, and narrow a query wherever a finder, a filter or an assertion takes one.

Functions

Link copied to clipboard

Finds all nodes of type T. Convenience for onAllNodes(SwingMatcher.isOfType<T>()).

Link copied to clipboard
Link copied to clipboard

Finds the single node of type T. Convenience for onNode(SwingMatcher.isOfType<T>()).

Link copied to clipboard

Finds the single realized window (see ComposeSwingTest.onWindow). Convenience for the common one-window composition:

Link copied to clipboard

Finds the single realized window titled title. Convenience for onWindow(SwingMatcher.hasTitle(title)).

Link copied to clipboard
fun runComposeSwingTest(rootSize: Dimension = Dimension(800, 600), timeout: Duration = 60.seconds, block: suspend ComposeSwingTest.() -> Unit): TestResult

Sets up an isolated Swing-Compose composition, runs the suspending block against it on the EDT, and tears everything down.