mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Fix more unit tests that were used with KeepContentInAllViewport as true and now is false by default.
This commit is contained in:
@@ -153,7 +153,7 @@ public class ScrollBarTests
|
||||
◄░░██░░░░►",
|
||||
@"
|
||||
◄░█░░░░░░►")]
|
||||
public void Changing_Position_Size_Orientation_Draws_Correctly (
|
||||
public void Changing_Position_Size_Orientation_Draws_Correctly_KeepContentInAllViewport_True (
|
||||
int size,
|
||||
string firstVertExpected,
|
||||
string middleVertExpected,
|
||||
@@ -169,7 +169,8 @@ public class ScrollBarTests
|
||||
{
|
||||
Orientation = Orientation.Vertical,
|
||||
Size = size,
|
||||
Height = 10
|
||||
Height = 10,
|
||||
KeepContentInAllViewport = true
|
||||
};
|
||||
var top = new Toplevel ();
|
||||
top.Add (scrollBar);
|
||||
@@ -341,14 +342,15 @@ public class ScrollBarTests
|
||||
18,
|
||||
@"
|
||||
◄░░░░██░░►")]
|
||||
public void Mouse_On_The_Container (Orientation orientation, int size, int position, int location, string output, int expectedPos, string expectedOut)
|
||||
public void Mouse_On_The_Container_KeepContentInAllViewport_True (Orientation orientation, int size, int position, int location, string output, int expectedPos, string expectedOut)
|
||||
{
|
||||
var scrollBar = new ScrollBar
|
||||
{
|
||||
Width = orientation == Orientation.Vertical ? 1 : 10,
|
||||
Height = orientation == Orientation.Vertical ? 10 : 1,
|
||||
Orientation = orientation, Size = size,
|
||||
Position = position
|
||||
Position = position,
|
||||
KeepContentInAllViewport = true
|
||||
};
|
||||
var top = new Toplevel ();
|
||||
top.Add (scrollBar);
|
||||
@@ -843,12 +845,12 @@ public class ScrollBarTests
|
||||
[AutoInitShutdown]
|
||||
[InlineData (Orientation.Vertical)]
|
||||
[InlineData (Orientation.Horizontal)]
|
||||
public void Moving_Mouse_Outside_Host_Ensures_Correct_Location (Orientation orientation)
|
||||
public void Moving_Mouse_Outside_Host_Ensures_Correct_Location_KeepContentInAllViewport_True (Orientation orientation)
|
||||
{
|
||||
var scrollBar = new ScrollBar
|
||||
{
|
||||
X = 10, Y = 10, Width = orientation == Orientation.Vertical ? 1 : 10, Height = orientation == Orientation.Vertical ? 10 : 1, Size = 20,
|
||||
Position = 5, Orientation = orientation
|
||||
Position = 5, Orientation = orientation, KeepContentInAllViewport = true
|
||||
};
|
||||
var top = new Toplevel ();
|
||||
top.Add (scrollBar);
|
||||
|
||||
Reference in New Issue
Block a user