Skip to content

Commit ce71107

Browse files
committed
add a new regression test to improve coverage
1 parent 9ca2549 commit ce71107

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Assets/Tests/InputSystem/Plugins/UITests.InputModuleTests.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,17 @@ public IEnumerator PointerExitChildShouldFullyExit()
157157
Assert.IsTrue(callbackCheck.pointerData.fullyExited == true);
158158
}
159159

160+
[UnityTest]
161+
[Description("Regression test for https://jira.unity3d.com/browse/ISXB-1493")]
162+
public IEnumerator DisablingDoesNotResetActions()
163+
{
164+
m_InputModule.enabled = false;
165+
166+
yield return null;
167+
168+
Assert.IsNotNull(m_InputModule.cancel, "Disabling component shouldn't lose its data.");
169+
}
170+
160171
public class PointerExitCallbackCheck : MonoBehaviour, IPointerExitHandler
161172
{
162173
public PointerEventData pointerData { get; private set; }

0 commit comments

Comments
 (0)