Commit 125e63f
committed
FIX: Add UNITY_INPUTSYSTEM_SUPPORTS_MOUSE_SCRIPT_EVENTS to tests asmdef so MouseEvents tests compile
versionDefines are scoped to the asmdef that declares them and do not propagate to
referencing assemblies. UNITY_INPUTSYSTEM_SUPPORTS_MOUSE_SCRIPT_EVENTS was declared
only on the runtime asmdef (Unity.InputSystem.asmdef, Unity >= 6000.4.0a4), so the
symbol was always undefined in the test assembly. The entire CoreTests_MouseEvents.cs
file is gated by #if UNITY_INPUTSYSTEM_SUPPORTS_MOUSE_SCRIPT_EVENTS, which meant the
MouseEvents_CanReceive* tests (including the regression test that catches the
OnMouseUpAsButton focus-update bug fixed in the previous commit) silently compiled
out and never ran in CI. Mirror the runtime versionDefine on Unity.InputSystem.Tests.asmdef.1 parent 99f6a16 commit 125e63f
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
75 | 80 | | |
76 | 81 | | |
77 | 82 | | |
| |||
0 commit comments