Expect no click from the test driver's drag across Save

361fb019 made pointer drags never activate controls, but the driver
test still counted the press on Save and release 30 units away as a
second click, so behavior-tests failed at check 55. The test now
expects the drag to leave the click count unchanged.
This commit is contained in:
waozi committed 2026-11-22 17:23:06 -03:00
1 parent 4b74046adb
commit 835a134d68
1 file changed
+3 -1
+3 -1
View File
@@ -277,7 +277,9 @@ main :: () -> s32 {
if !Frame() || !pointer_seen.down || pointer_seen.pressed { return 52 }
if Run("12\tpointer\tx=60\ty=35\tdown=0") != 2 { return 53 }
if !pointer_seen.released || pointer_seen.x != 60.0 { return 54 }
if Run("13\tpointer\treal=1") != 1 || clicks != 2 { return 55 }
// Pressing on Save and releasing 30 units away is a drag, which never
// activates a control, so the count stays at the earlier click.
if Run("13\tpointer\treal=1") != 1 || clicks != 1 { return 55 }
if !Frame() || pointer_seen.x != 0.0 { return 56 }
// Stable frames count frames that end with the same tree.