We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8849ed commit 3169c97Copy full SHA for 3169c97
2 files changed
compose/ui/ui/src/desktopTest/kotlin/androidx/compose/ui/window/DesktopCursorPositionTest.kt
@@ -76,7 +76,7 @@ internal class DesktopCursorPositionTest {
76
awaitIdle()
77
78
val contentLocation = window?.contentPane?.locationOnScreen ?: java.awt.Point(0, 0)
79
- robot.mouseMove(
+ moveMouse(
80
contentLocation.x + pxTargetOffset.x,
81
contentLocation.y + pxTargetOffset.y
82
)
compose/ui/ui/src/desktopTest/kotlin/androidx/compose/ui/window/TestUtils.kt
@@ -190,6 +190,8 @@ internal class WindowTestScope(
190
191
exceptionHandler.throwIfCaught()
192
}
193
+
194
+ internal fun moveMouse(x: Int, y: Int) = robot::mouseMove
195
196
197
suspend fun Window.waitForFocusGain() {
0 commit comments