Explorar o código

Fixed TableViewTests

Tig hai 1 ano
pai
achega
07ba55c9d1
Modificáronse 2 ficheiros con 135 adicións e 162 borrados
  1. 2 2
      Terminal.Gui/Views/TableView/TableView.cs
  2. 133 160
      UnitTests/Views/TableViewTests.cs

+ 2 - 2
Terminal.Gui/Views/TableView/TableView.cs

@@ -908,10 +908,10 @@ public class TableView : View
         // What columns to render at what X offset in viewport
         ColumnToRender [] columnsToRender = CalculateViewport (Viewport).ToArray ();
 
-        Driver.SetAttribute (GetNormalColor ());
+        Driver?.SetAttribute (GetNormalColor ());
 
         //invalidate current row (prevents scrolling around leaving old characters in the frame
-        Driver.AddStr (new string (' ', Viewport.Width));
+        Driver?.AddStr (new string (' ', Viewport.Width));
 
         var line = 0;
 

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 133 - 160
UnitTests/Views/TableViewTests.cs


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio