mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Code cleanup and refactor
This commit is contained in:
@@ -685,7 +685,7 @@ public class MultiBarSeriesTests
|
||||
fakeXAxis.LabelPoints.Clear ();
|
||||
gv.LayoutSubviews ();
|
||||
gv.SetNeedsDraw ();
|
||||
Application.ClipToScreen ();
|
||||
View.SetClipToScreen ();
|
||||
gv.Draw ();
|
||||
|
||||
Assert.Equal (3, fakeXAxis.LabelPoints.Count);
|
||||
@@ -1154,7 +1154,7 @@ public class TextAnnotationTests
|
||||
// user scrolls up one unit of graph space
|
||||
gv.ScrollOffset = new PointF (0, 1f);
|
||||
gv.SetNeedsDraw ();
|
||||
Application.ClipToScreen ();
|
||||
View.SetClipToScreen ();
|
||||
gv.Draw ();
|
||||
|
||||
// we expect the text annotation to go down one line since
|
||||
@@ -1248,7 +1248,7 @@ public class TextAnnotationTests
|
||||
new TextAnnotation { Text = "hey!", ScreenPosition = new Point (3, 1) }
|
||||
);
|
||||
gv.LayoutSubviews ();
|
||||
Application.ClipToScreen ();
|
||||
View.SetClipToScreen ();
|
||||
gv.Draw ();
|
||||
|
||||
var expected =
|
||||
@@ -1264,7 +1264,7 @@ public class TextAnnotationTests
|
||||
// user scrolls up one unit of graph space
|
||||
gv.ScrollOffset = new PointF (0, 1f);
|
||||
gv.SetNeedsDraw ();
|
||||
Application.ClipToScreen ();
|
||||
View.SetClipToScreen ();
|
||||
gv.Draw ();
|
||||
|
||||
// we expect no change in the location of the annotation (only the axis label changes)
|
||||
@@ -1283,7 +1283,7 @@ public class TextAnnotationTests
|
||||
// user scrolls up one unit of graph space
|
||||
gv.ScrollOffset = new PointF (0, 1f);
|
||||
gv.SetNeedsDraw ();
|
||||
Application.ClipToScreen ();
|
||||
View.SetClipToScreen ();
|
||||
gv.Draw ();
|
||||
|
||||
// we expect no change in the location of the annotation (only the axis label changes)
|
||||
@@ -1553,7 +1553,7 @@ public class PathAnnotationTests
|
||||
// change the text and redraw
|
||||
view.Text = "ff1234";
|
||||
mount.SetNeedsDraw ();
|
||||
Application.ClipToScreen ();
|
||||
View.SetClipToScreen ();
|
||||
mount.Draw ();
|
||||
|
||||
// should have the new text rendered
|
||||
|
||||
Reference in New Issue
Block a user