Explorar el Código

Fixing unit test failure from bad debug.fail

Tig hace 9 meses
padre
commit
1a498962b1

+ 1 - 8
Terminal.Gui/View/View.Layout.cs

@@ -580,13 +580,7 @@ public partial class View // Layout APIs
         }
         }
 
 
         bool layoutStillNeeded = false;
         bool layoutStillNeeded = false;
-        //foreach (View v in redo)
-        //{
-        //    if (!v.Layout (contentSize))
-        //    {
-        //        layoutStillNeeded = true;
-        //    }
-        //}
+
         if (redo.Count > 0)
         if (redo.Count > 0)
         {
         {
             foreach (View v in ordered)
             foreach (View v in ordered)
@@ -594,7 +588,6 @@ public partial class View // Layout APIs
                 if (!v.Layout (contentSize))
                 if (!v.Layout (contentSize))
                 {
                 {
                     layoutStillNeeded = true;
                     layoutStillNeeded = true;
-                    Debug.Fail("ugh");
                 }
                 }
             }
             }
         }
         }

+ 2 - 2
UICatalog/Scenarios/AnimationScenario/AnimationScenario.cs

@@ -74,13 +74,13 @@ public class AnimationScenario : Scenario
             }
             }
 
 
             var f = new FileInfo (
             var f = new FileInfo (
-                                  Path.Combine (dir.FullName, "Scenarios\\AnimationScenario", "Spinning_globe_dark_small.gif")
+                                  Path.Combine (dir.FullName, "Scenarios/AnimationScenario", "Spinning_globe_dark_small.gif")
                                  );
                                  );
 
 
             if (!f.Exists)
             if (!f.Exists)
             {
             {
                 Debug.WriteLine ($"Could not find {f.FullName}");
                 Debug.WriteLine ($"Could not find {f.FullName}");
-                MessageBox.ErrorQuery ("Could not find gif", $"Could not find {f.FullName}", "Ok");
+                MessageBox.ErrorQuery ("Could not find gif", $"Could not find\n{f.FullName}", "Ok");
 
 
                 return;
                 return;
             }
             }

+ 2 - 0
UnitTests/View/Draw/AllViewsDrawTests.cs

@@ -17,6 +17,8 @@ public class AllViewsDrawTests (ITestOutputHelper _output) : TestsAllViews
             return;
             return;
         }
         }
 
 
+        _output.WriteLine ($"Testing {viewType}");
+
         if (view is IDesignable designable)
         if (view is IDesignable designable)
         {
         {
             designable.EnableForDesign ();
             designable.EnableForDesign ();