Browse Source

Fix EscSeqUtilsTests.

BDisp 1 year ago
parent
commit
1f28cb41f8
1 changed files with 3 additions and 2 deletions
  1. 3 2
      UnitTests/Input/EscSeqUtilsTests.cs

+ 3 - 2
UnitTests/Input/EscSeqUtilsTests.cs

@@ -695,8 +695,9 @@ public class EscSeqUtilsTests
         Assert.False (_isReq);
 
         var view = new View { Width = Dim.Fill (), Height = Dim.Fill (), WantContinuousButtonPressed = true };
-        Application.Top.Add (view);
-        Application.Begin (Application.Top);
+        var top = new Toplevel ();
+        top.Add (view);
+        Application.Begin (top);
 
         Application.OnMouseEvent (
                                   new MouseEventEventArgs (