Got all unit tests passing. Some AdvanceFocus stuff still not right.

This commit is contained in:
Tig
2024-08-24 07:27:10 -07:00
parent 47bb262e2c
commit bdc60c9490
11 changed files with 351 additions and 184 deletions

View File

@@ -8557,4 +8557,67 @@ line.
}
}
[Fact]
public void Autocomplete_Popup_Added_To_SuperView_On_Init ()
{
View superView = new ()
{
CanFocus = true,
};
TextView t = new ();
superView.Add (t);
Assert.Single (superView.Subviews);
superView.BeginInit ();
superView.EndInit ();
Assert.Equal (2, superView.Subviews.Count);
}
[Fact]
public void Autocomplete__Added_To_SuperView_On_Add ()
{
View superView = new ()
{
CanFocus = true,
Id = "superView",
};
superView.BeginInit ();
superView.EndInit ();
Assert.Empty (superView.Subviews);
TextView t = new ()
{
Id = "t"
};
superView.Add (t);
Assert.Equal (2, superView.Subviews.Count);
}
[Fact]
public void Autocomplete_Visible_False_By_Default ()
{
View superView = new ()
{
CanFocus = true,
};
TextView t = new ();
superView.Add (t);
superView.BeginInit ();
superView.EndInit ();
Assert.Equal (2, superView.Subviews.Count);
Assert.True (t.Visible);
Assert.False (t.Autocomplete.Visible);
}
}