Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 32 additions & 32 deletions src/Controls/tests/TestCases.HostApp/Issues/Issue29492.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,42 @@ namespace Maui.Controls.Sample.Issues;
[Issue(IssueTracker.Github, "29492", "CharacterSpacing should be applied", PlatformAffected.Android | PlatformAffected.iOS)]
public class Issue29492 : TestShell
{
protected override void Init()
{
var shellContent = new ShellContent
{
Title = "Home",
Content = new Issue29492ContentPage() { Title = "Home" }
};
protected override void Init()
{
var shellContent = new ShellContent
{
Title = "Home",
Content = new Issue29492ContentPage() { Title = "Home" }
};

Items.Add(shellContent);
}
Items.Add(shellContent);
}

class Issue29492ContentPage : ContentPage
{
public Issue29492ContentPage()
{
var searchHandler = new SearchHandler
{
CharacterSpacing = 10
};
class Issue29492ContentPage : ContentPage
{
public Issue29492ContentPage()
{
var searchHandler = new SearchHandler
{
CharacterSpacing = 10
};

var button = new Button
{
Text = "Enter Text",
AutomationId = "Entertext",
HorizontalOptions = LayoutOptions.Center,
VerticalOptions = LayoutOptions.Center,
};
var button = new Button
{
Text = "Enter Text",
AutomationId = "Entertext",
HorizontalOptions = LayoutOptions.Center,
VerticalOptions = LayoutOptions.Center,
};

button.Clicked += (s, e) =>
{
searchHandler.Query = "Hello World";
};
button.Clicked += (s, e) =>
{
searchHandler.Query = "Hello World";
};

Shell.SetSearchHandler(this, searchHandler);
Shell.SetSearchHandler(this, searchHandler);

Content = button;
}
}
Content = button;
}
}
}
2 changes: 1 addition & 1 deletion src/Controls/tests/TestCases.HostApp/Issues/Issue29615.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ public Issue29615()
};

Items.Add(shellContent);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
namespace Microsoft.Maui.TestCases.Tests.Issues;
public class Issue29492 : _IssuesUITest
{
public Issue29492(TestDevice device)
: base(device)
{
}
public Issue29492(TestDevice device)
: base(device)
{
}

public override string Issue => "CharacterSpacing should be applied";
public override string Issue => "CharacterSpacing should be applied";

[Test]
[Category(UITestCategories.Shell)]
public void CharacterSpacingShouldApply()
{
App.WaitForElement("Entertext");
App.Tap("Entertext");
VerifyScreenshot();
}
[Test]
[Category(UITestCategories.Shell)]
public void CharacterSpacingShouldApply()
{
App.WaitForElement("Entertext");
App.Tap("Entertext");
VerifyScreenshot();
}
}
#endif