File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Assets/Tests/InputSystem/Plugins Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -159,13 +159,19 @@ public IEnumerator PointerExitChildShouldFullyExit()
159159
160160 [ UnityTest ]
161161 [ Description ( "Regression test for https://jira.unity3d.com/browse/ISXB-1493" ) ]
162- public IEnumerator DisablingDoesNotResetActions ( )
162+ public IEnumerator DisablingDoesNotResetUserActions ( )
163163 {
164+ var actions = new DefaultInputActions ( ) ;
165+ m_InputModule . actionsAsset = actions . asset ;
166+ m_InputModule . cancel = InputActionReference . Create ( actions . UI . Cancel ) ;
167+
164168 m_InputModule . enabled = false ;
165169
166170 yield return null ;
167171
168172 Assert . IsNotNull ( m_InputModule . cancel , "Disabling component shouldn't lose its data." ) ;
173+
174+ actions . Dispose ( ) ;
169175 }
170176
171177 public class PointerExitCallbackCheck : MonoBehaviour , IPointerExitHandler
You can’t perform that action at this time.
0 commit comments