Bläddra i källkod

Fix EscSeqUtilsTests.

BDisp 1 år sedan
förälder
incheckning
1f28cb41f8
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 2
      UnitTests/Input/EscSeqUtilsTests.cs

+ 3 - 2
UnitTests/Input/EscSeqUtilsTests.cs

@@ -695,8 +695,9 @@ public class EscSeqUtilsTests
         Assert.False (_isReq);
         Assert.False (_isReq);
 
 
         var view = new View { Width = Dim.Fill (), Height = Dim.Fill (), WantContinuousButtonPressed = true };
         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 (
         Application.OnMouseEvent (
                                   new MouseEventEventArgs (
                                   new MouseEventEventArgs (